Installation
Add the Currai SDK to a TypeScript or Python app, and set the environment variables the client reads.
Currai ships first-party SDKs for TypeScript and Python. Both expose the same surface and emit the same wire format, so you can mix them across services and they land in the same backend.
TypeScript
Install the currai package:
Then import and construct the client:
Python
Install the currai package:
Then construct the client:
Environment variables
Both SDKs read the same credentials. Set these in your app's environment:
| Variable | Required | Description |
|---|---|---|
CURRAI_PUBLIC_KEY | yes | Public key, pk-lf-…. |
CURRAI_SECRET_KEY | yes | Secret key, sk-lf-…. |
CURRAI_BASE_URL | no | Currai instance URL (default https://currai.app). |
Next, create those keys.
currai