SDKs

Typed clients for TypeScript and Python.

Both SDKs wrap the REST API and the MCP server. Both follow the typed result and structured error pattern of the rest of Codexroom.

TypeScript

Node, Bun, and Edge runtime.

bash
pnpm add @codexroom/sdk
# or
npm install @codexroom/sdk

Tested against Node 20 and Bun 1.x. Works inside Next.js, Hono, and Express. Edge runtime supported for read-only operations.

Python

Async-first with a sync wrapper.

bash
pip install codexroom

Tested against Python 3.11 and 3.12. Async-first, with a sync wrapper for scripts.

What both SDKs ship

The same surface in two languages.

Typed methods for every resource. Tokens, slot types, templates, assets, decks, shares, analytics, exports.

Auth helpers for service tokens and OAuth. PKCE handled for you on the OAuth path.

A typed CodexroomError class. The structured envelope from the API, typed against the error codes documented in the OpenAPI spec.

Webhook signature verification. HMAC-SHA256 verification helper for the events POSTed to your webhook URLs.

See it work

Install the SDK.