Skip to content
Secnd

SDKs

Use a thin typed client or call the HTTP API directly.

The Python SDK imports as secnd; the TypeScript package is @secnd/sdk. Both send the same request object to /v1/decide, expose typed errors, and retry 429 and server errors with bounded backoff.

These are local workspace packages. Registry publication is not assumed. The Python distribution is currently named secnd-sdk; its import name remains secnd.

Build the TypeScript workspace from the repository root before installing its local package:

npm run build --workspace @secnd/sdk
npm install ./packages/sdk-ts

Install Python from the repository root into your project’s environment:

uv pip install ./packages/sdk-python

Use the language-specific pages for constructor options, asynchronous calls, and error handling. Model weights are not part of either package.

See Python for sync and async clients, or TypeScript for cancellation and typed requests.