Account and Credentials
base_url and Endpoint Choice
Use the correct API endpoint. The website homepage is not the API base URL.
Last updated 2026-05-12 | Maintained by TokenPool documentation team
base_url is the OpenAI-compatible API endpoint your coding tool calls. It is not the TokenPool homepage, not the console URL, and not a CDN URL.
Recommended endpoint
https://api.clawto.link
This is the recommended endpoint, optimized for access from China.
Standard endpoint
https://api.tokenpool.dev
Use this if it is more stable from your network.
Do not use these
https://tokenpool.dev
https://tokenpool.dev/console
https://cdn.tokenpool.dev
Those are not API endpoints.
Final request URL
Most tools only ask for base_url and append paths automatically. For example, the Responses API becomes:
https://api.clawto.link/v1/responses
Screenshot placeholder: endpoint selection.
Codex App and Codex CLI
For Codex App and Codex CLI, put the endpoint in ~/.codex/config.toml:
[model_providers.OpenAI]
name = "OpenAI"
base_url = "https://api.clawto.link"
wire_api = "responses"
requires_openai_auth = true
Your API Key goes in ~/.codex/auth.json, not in this endpoint field.
Troubleshooting endpoint errors
If the request fails, check these first:
- The value starts with
https://. - The value is exactly an API endpoint, not
https://tokenpool.dev. - Your tool appends
/v1/...automatically. - Your account has available quota.
- Your network can reach the endpoint.
FAQ
What is the TokenPool OpenAI-compatible API endpoint?
The recommended endpoint is https://api.clawto.link. The standard endpoint is https://api.tokenpool.dev.
Should I include /v1 in base_url?
Most supported tools only need the base endpoint and append /v1/... automatically. Follow the specific tool guide if it asks for a full URL.
Can I use the website URL as base_url?
No. https://tokenpool.dev is the website, not the API endpoint.