Before You Start
5-Minute Quick Start
Sign in, get an API Key, pick an endpoint, configure Codex, and run one test request.
Last updated 2026-05-12 | Maintained by TokenPool documentation team
This page is for first-time users. The goal is to make one tool work before you learn every detail.
Requirements
- Node.js and npm are installed.
- You are signed in to TokenPool.
- You have a TokenPool API Key.
- You can open a terminal.
Console URL:
https://tokenpool.dev/console/api-keys
Recommended: automatic Codex setup
macOS / Linux:
TOKENPOOL_API_KEY="<your TokenPool API Key>" \
TOKENPOOL_BASE_URL="https://api.clawto.link" \
bash -c "$(curl -fsSL 'https://cdn.tokenpool.dev/scripts/codex-install-config.sh')"
Windows PowerShell:
$env:TOKENPOOL_API_KEY='<your TokenPool API Key>'; $env:TOKENPOOL_BASE_URL='https://api.clawto.link'; irm 'https://cdn.tokenpool.dev/scripts/codex-install-config.ps1' | iex
The script installs Codex CLI if needed, backs up existing files, and writes:
~/.codex/config.toml~/.codex/auth.json
Use CC Switch
In the API Key list, click CC Switch to import your TokenPool provider into CC Switch. The import contains the API Key, endpoint, and default model.
Screenshot placeholder: CC Switch button in the API Key list.
Verify
codex "Say hello in one short sentence"
If you get a normal response, Codex is now using TokenPool.