SDK Overview
Choose the right SDK or integration for your stack.
OpenAI compatibility
Any OpenAI-compatible SDK works with AllToken. Change two settings and you're done:
- Set the base URL to
https://api.alltoken.ai/v1 - Set the API key to your AllToken API key
No custom SDK needed. Use whichever OpenAI SDK you prefer.
Quick reference
- OpenAI SDK — official TypeScript and Python SDKs
- Python (requests) — raw HTTP with the requests library
- cURL / HTTP — direct API calls from the terminal
- Claude Code — use AllToken as Claude Code's model provider
- Codex CLI — OpenAI Codex CLI integration
- OpenClaw — terminal multiplexer with AllToken models
- OpenCode — Vercel AI SDK compatible provider