Account and Credentials
OpenAI-compatible API
Use TokenPool as an OpenAI-compatible API endpoint for supported Codex and GPT-style coding workflows.
Last updated 2026-05-12 | Maintained by TokenPool documentation team
TokenPool provides an OpenAI-compatible API gateway for supported Codex and GPT-style coding workflows. In practice, your tool uses a TokenPool API Key and a TokenPool base_url instead of calling the TokenPool website or console directly.
What OpenAI-compatible means
OpenAI-compatible means the client is configured with familiar OpenAI-style fields:
| Field | What it does | TokenPool value |
|---|---|---|
OPENAI_API_KEY | Personal credential used by your tool | Your TokenPool API Key |
base_url | API endpoint your tool calls | https://api.clawto.link or https://api.tokenpool.dev |
| wire format | Request and response protocol | Use the tool-specific guide |
| model | Model selected by the client | Check the current TokenPool product and setup docs |
This does not mean TokenPool is the OpenAI official website. It means supported tools can use TokenPool through an OpenAI-compatible configuration pattern.
Recommended endpoint
Use this endpoint first:
https://api.clawto.link
If your network reaches the standard TokenPool API endpoint more reliably, use:
https://api.tokenpool.dev
Do not use these as API endpoints:
https://tokenpool.dev
https://tokenpool.dev/console
https://cdn.tokenpool.dev
API key setup
Create or view your API Key in the console:
https://tokenpool.dev/console/api-keys
Then pass it to your tool as an OpenAI-compatible API key. For Codex App and Codex CLI, the key usually lives in:
~/.codex/auth.json
Example:
{
"OPENAI_API_KEY": "<your TokenPool API Key>"
}
Codex configuration
For Codex CLI, configure the provider in ~/.codex/config.toml:
model_provider = "OpenAI"
model = "gpt-5.5"
review_model = "gpt-5.5"
disable_response_storage = true
[model_providers.OpenAI]
name = "OpenAI"
base_url = "https://api.clawto.link"
wire_api = "responses"
requires_openai_auth = true
See the Codex CLI guide and Codex App guide for the complete setup.
Common mistakes
- Using
https://tokenpool.devas the APIbase_url. - Putting the API key in
config.tomlinstead ofauth.json. - Copying an incomplete key.
- Using a model name that is not available in the current product flow.
- Testing with an account that has no available quota.
- Committing
auth.jsonor secrets to Git.
FAQ
Is TokenPool an OpenAI-compatible API?
Yes. TokenPool is designed to work as an OpenAI-compatible API gateway for supported Codex and GPT-style workloads.
Is TokenPool the OpenAI official API?
No. TokenPool is not the OpenAI official website and does not claim official reseller status. Use the direct official API when you need provider-only features or direct provider billing.
Which endpoint should I use?
Start with https://api.clawto.link. If your network is more stable with the standard endpoint, use https://api.tokenpool.dev.
Where do I go next?
Read API Key, base_url and Endpoint Choice, Codex CLI, or Troubleshooting.