Guides
Guides for AI coding agents
Client setup for a lower-cost OpenAI-compatible API, plus calculators and usage notes for prepaid token billing.
Client setup
Use Codex with a custom API endpoint
Keep the Codex CLI, app, or VS Code extension you already use. Point the provider at Token Supply, set a plan key, and keep the Responses API.
Use Claude Code with a custom API endpoint
Keep Claude Code CLI or the VS Code extension. Replace the Anthropic base URL and auth token with Token Supply, then set reasoning effort.
OpenCode custom provider configuration
Keep OpenCode's OpenAI, Anthropic, Gemini, or Grok preset. Replace baseURL and apiKey, set context limits, and use variants for reasoning effort.
Configure Cursor with an OpenAI-compatible API
Keep Cursor's OpenAI preset. Paste a Token Supply key, turn on Override OpenAI Base URL, and choose a model from that key's plan.
Use the OpenAI SDK with a custom base URL
Keep the OpenAI SDK, curl, or any OpenAI-compatible client. Change the API key and base URL. The model must belong to the plan on that key.
Use the Anthropic SDK with a custom base URL
Keep the Anthropic SDK. Change the API key and base URL. Claude Code uses the same host; do not add /v1 to ANTHROPIC_BASE_URL.
Configure Hermes with an OpenAI-compatible API
Keep Hermes's custom endpoint setup. Replace the base URL, set the context window, and store the Token Supply key in .env.
Write client config files from the terminal
A setup CLI is coming soon. Until then, create a key in API Keys and paste the values from the matching client guide.
Costs and usage
AI API token cost calculator
Price a coding-agent workload here. The same calculator stays on the homepage. Change the model and monthly token mix, then keep the same client.
Reduce coding-agent API costs
Most coding-agent spend is model tokens. Keep Codex, Claude Code, OpenCode, or your SDK, compare listed rates with public list prices, and put a cap on the wallet.
Track AI API token usage
Prepaid billing only helps if you can see the debit. Token Supply records usage per request, rolls it up in the dashboard, and stops new calls when the wallet hits zero.
Directories
Related
- AI API token cost calculator — Compare listed Token Supply rates with public list prices.
- Reduce coding-agent API costs — Keep your client and lower token spend on the same workload.
- Track AI API token usage — Prepaid wallet, usage dashboard, and per-key spend.
- Codex custom endpoint — config.toml, auth.json, and the Responses API.
- Claude Code custom endpoint — ANTHROPIC_BASE_URL, auth token, and settings.json.