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:

npm install currai

Then import and construct the client:

import { Currai } from "currai";

const currai = new Currai({
  publicKey: process.env.CURRAI_PUBLIC_KEY!,
  secretKey: process.env.CURRAI_SECRET_KEY!,
  baseUrl: process.env.CURRAI_BASE_URL, // default: https://currai.app
});

Python

Install the currai package:

pip install currai

Then construct the client:

import os
from currai import Currai

currai = Currai(
    public_key=os.environ["CURRAI_PUBLIC_KEY"],
    secret_key=os.environ["CURRAI_SECRET_KEY"],
    base_url=os.environ.get("CURRAI_BASE_URL"),
)

Environment variables

Both SDKs read the same credentials. Set these in your app's environment:

VariableRequiredDescription
CURRAI_PUBLIC_KEYyesPublic key, pk-lf-….
CURRAI_SECRET_KEYyesSecret key, sk-lf-….
CURRAI_BASE_URLnoCurrai instance URL (default https://currai.app).

Next, create those keys.