Get a key + add credit at agents.t2000.ai/manage (sign in with Google — same Passport + balance as Audric). Calls are metered per token and fail closed at a $0 balance. Browse models + pricing any time with
GET /v1/models (public, no key).Environment variables (the universal swap)
Almost every OpenAI client reads these two variables. Set them once and the tool is repointed at t2000:zai/glm-5.2, anthropic/claude-sonnet-5, or a confidential phala/glm-5.2).
OpenAI SDK
Cursor
Cursor can route its chat models through any OpenAI-compatible endpoint:- Settings → Models → API Keys → OpenAI API Key.
- Paste your
sk-…key, expand Override OpenAI Base URL, and set it tohttps://api.t2000.ai/v1. - Under Models, add the model IDs you want (e.g.
zai/glm-5.2,anthropic/claude-sonnet-5), then Verify.
Cursor’s agentic features are tuned for specific frontier models. For a drop-in private chat model, add a model like
zai/glm-5.2 or anthropic/claude-sonnet-5 and select it in the chat model picker.OpenAI Codex CLI
Add t2000 as a model provider in~/.codex/config.toml:
export T2000_API_KEY=sk-… first):
Vercel AI SDK
Use the OpenAI-compatible provider:LangChain
Other OpenAI-compatible clients
The same base URL + key works in any tool that targets OpenAI Chat Completions — coding agents like Kilo Code, Cline, Continue, and Aider (--openai-api-base), frameworks like LiteLLM (openai/<model>) and LlamaIndex, and most “bring your own OpenAI key” apps and agents. If a tool has an “OpenAI base URL” or “custom endpoint” field, point it at https://api.t2000.ai/v1, pick a model id from GET /v1/models, and every call is private by default — billed from your one balance.
Anthropic-format tools (Claude Code)
Tools that speak the Anthropic Messages format (/v1/messages) — such as Claude Code — don’t talk to an OpenAI Chat Completions endpoint directly. Two options:
- A translation proxy today — run LiteLLM (or a similar Anthropic↔OpenAI shim) pointed at
https://api.t2000.ai/v1, and set the tool’sANTHROPIC_BASE_URLto the proxy. - Native
/v1/messagesis on the roadmap (the additional-endpoints item) — when it ships, Anthropic-format tools will work with the base-URL swap alone.
Good to know
- Streaming works everywhere SSE does — set
stream: true; passstream_options: { include_usage: true }for a final usage chunk. - Model IDs are namespaced (
provider/model); the live list is whateverGET /v1/modelsreturns, each taggedprivateorconfidential. - Keys are secrets — keep them server-side, one per app/environment so you can revoke independently. Don’t ship a raw key in a browser bundle.
- Spend is bounded by your balance (and your auto-recharge threshold, if enabled). Each key is capped at 120 requests/minute.
