Your agents, priced by the token
Connect any agent with one command or one config file. Call any model on the price list from any client protocol. Have a subscription sitting idle? Share it during the hours you pick.
One command to connect
curl -fsSL https://sub2tok.com/install.sh | shcurl -fsSL https://sub2tok.com/install.sh | shirm https://sub2tok.com/install.ps1 | iexOn macOS or Linux, run it in a terminal; on Windows, run it in PowerShell. The script opens your browser to sign you in, creates a token and sets up Claude Code and Codex CLI.
- Input tokens
- 1,248
- Cache reads
- 18,392
- Output tokens
- 52
- Request cost
- $0.001339
- Time to first token
- 182 ms
- Status
- Complete
This panel replays sample data. Live requests are metered the same way, and your recent calls show up in your console.
How it works
01
Connect in one command
Run one install command, or point your client's upstream URL at this site and paste in an API token issued here. Then call any model on the price list, with no protocol changes.
02
Routed by model
The gateway checks your token, balance and concurrency limit, then routes the request to an upstream that serves the model. Responses stream back as they're generated, and input, output and cache tokens are metered separately along the way.
03
Settled by the ledger
Each charge and its ledger entry commit in the same database transaction, so your balance can always be recomputed from the ledger.
Pricing
USD per million tokens
You pay the official price times the multiplier. For discounted models, the highlighted price on top is what you pay, and the struck-through price below is the official one.
Service status
Claude
7 models
Codex
7 models
Antigravity
1 model
Based on real calls per provider over the last 15 minutes. A provider isn't marked degraded or down with fewer than 3 failures. Failures on the caller's side (such as insufficient balance or cancelled requests) and sharers' calls on their own subscriptions don't count.
| Model | Served by | Multiplier | Input | Output | Cache read | Cache write (5 min / 1 hour) |
|---|---|---|---|---|---|---|
| claude-fable-5 | Served byClaude | Multiplier-75% 0.25x | InputYou pay $2.50 List price | OutputYou pay $12.50 List price | Cache readYou pay $0.25 List price | Cache write (5 min / 1 hour)You pay $3.125 / $5 List price |
| claude-fable-5-1 | Served byClaude | Multiplier-75% 0.25x | InputYou pay $2.50 List price | OutputYou pay $12.50 List price | Cache readYou pay $0.063 List price | Cache write (5 min / 1 hour)You pay $3.125 / $5 List price |
| claude-haiku-5-5 | Served byClaude | Multiplier-80% 0.2x | InputYou pay $0.02 List price | OutputYou pay $0.10 List price | Cache readYou pay $0.002 List price | Cache write (5 min / 1 hour)You pay $0.025 / $0.04 List price |
| claude-opus-5 | Served byClaude | Multiplier-80% 0.2x | InputYou pay $1 List price | OutputYou pay $5 List price | Cache readYou pay $0.10 List price | Cache write (5 min / 1 hour)You pay $1.25 / $2 List price |
| claude-opus-5-5 | Served byClaude | Multiplier-80% 0.2x | InputYou pay $0.80 List price | OutputYou pay $4 List price | Cache readYou pay $0.04 List price | Cache write (5 min / 1 hour)You pay $1 / $1.60 List price |
| claude-sonnet-5 | Served byClaude | Multiplier-80% 0.2x | InputYou pay $0.40 List price | OutputYou pay $2 List price | Cache readYou pay $0.04 List price | Cache write (5 min / 1 hour)You pay $0.50 / $0.80 List price |
| claude-sonnet-5-5 | Served byClaude | Multiplier-80% 0.2x | InputYou pay $0.40 List price | OutputYou pay $2 List price | Cache readYou pay $0.02 List price | Cache write (5 min / 1 hour)You pay $0.50 / $0.80 List price |
| gemini-3.8-flash | Served byAntigravity | Multiplier-90% 0.1x | InputYou pay $0.083 List price | OutputYou pay $0.413 List price | Cache readYou pay $0.008 List price | Cache write (5 min / 1 hour)You pay $0.004 / $0.15 List price |
| gpt-5.6-luna | Served byCodex | Multiplier-80% 0.2x | InputYou pay $0.04 List price | OutputYou pay $0.24 List price | Cache readYou pay $0.004 List price | Cache write (5 min / 1 hour)You pay $0.05 / $0.08 List price |
| gpt-5.6-sol | Served byCodex | Multiplier-80% 0.2x | InputYou pay $0.80 List price | OutputYou pay $4 List price | Cache readYou pay $0.08 List price | Cache write (5 min / 1 hour)You pay $1 / $0.80 List price |
| gpt-5.6-terra | Served byCodex | Multiplier-80% 0.2x | InputYou pay $0.40 List price | OutputYou pay $2.40 List price | Cache readYou pay $0.04 List price | Cache write (5 min / 1 hour)You pay $0.50 / $0.80 List price |
| gpt-6-astra | Served byCodex | Multiplier-75% 0.25x | InputYou pay $2.50 List price | OutputYou pay $12.50 List price | Cache readYou pay $0.25 List price | Cache write (5 min / 1 hour)You pay $3.125 / $5 List price |
| gpt-6-luna | Served byCodex | Multiplier-75% 0.25x | InputYou pay $0.025 List price | OutputYou pay $0.125 List price | Cache readYou pay $0.003 List price | Cache write (5 min / 1 hour)You pay $0.031 / $0.05 List price |
| gpt-6-sol | Served byCodex | Multiplier-75% 0.25x | InputYou pay $0.50 List price | OutputYou pay $2.50 List price | Cache readYou pay $0.05 List price | Cache write (5 min / 1 hour)You pay $0.625 / $1 List price |
| gpt-6.1-sol | Served byCodex | Multiplier-75% 0.25x | InputYou pay $0.50 List price | OutputYou pay $2.50 List price | Cache readYou pay $0.025 List price | Cache write (5 min / 1 hour)You pay $0.625 / $2.50 List price |
“Served by” lists the providers with subscriptions here that can serve each model. A model can have more than one.
List prices follow the official pricing pages. Prices that aren't struck through are exactly what you're billed. You can deposit with Alipay or with USDT or USDC, and 1 USDT or 1 USDC equals $1. New accounts get a $1 signup bonus once they verify their email.
Setup guide
The one-line command at the top sets up Claude Code and Codex CLI. To set it up by hand or connect another client, first create a token on the API tokens page in your console, then follow the steps below. On Windows, ~ in a path means %USERPROFILE%. For OpenClaw, Hermes Agent and other clients, change the upstream URL as shown under Call the API directly; they can call any model on the price list too.
sk-your-token below is a placeholder. Sign up, create a token in your console and use it instead.
Claude Code
Save this as ~/.claude/sub2tok.settings.json and start Claude Code with claude --settings ~/.claude/sub2tok.settings.json. Only sessions started this way use sub2tok; your usual settings stay as they are. The three DEFAULT_*_MODEL variables can be set to any model on the price list.
{
"env": {
"ANTHROPIC_BASE_URL": "https://api.sub2tok.com",
"ANTHROPIC_AUTH_TOKEN": "sk-your-token",
"ANTHROPIC_DEFAULT_OPUS_MODEL": "claude-opus-5-5",
"ANTHROPIC_DEFAULT_SONNET_MODEL": "claude-sonnet-5-5",
"ANTHROPIC_DEFAULT_HAIKU_MODEL": "claude-haiku-5-5",
"CLAUDE_CODE_ENABLE_GATEWAY_MODEL_DISCOVERY": "1",
"DISABLE_TELEMETRY": "1",
"DISABLE_ERROR_REPORTING": "1"
}
}Codex CLI
Save this as ~/.codex/sub2tok.config.toml and start Codex CLI with codex --profile sub2tok; no need to edit config.toml. model can be set to any model on the price list.
model_provider = "sub2tok"
model = "gpt-6.1-sol"
[model_providers.sub2tok]
name = "sub2tok"
base_url = "https://api.sub2tok.com/v1"
capabilities = { remote_compaction = "v2" }
experimental_bearer_token = "sk-your-token"Call the API directly
For other clients or your own code, set the base URL to https://api.sub2tok.com for Anthropic Messages, or https://api.sub2tok.com/v1 for OpenAI Chat Completions and Responses, and send the token as Authorization: Bearer. Any model on the price list works on any of them.
export SUB2TOK_API_KEY="sk-your-token"
curl https://api.sub2tok.com/v1/chat/completions \
-H "content-type: application/json" \
-H "authorization: Bearer $SUB2TOK_API_KEY" \
-d '{
"model": "claude-opus-5-5",
"messages": [{ "role": "user", "content": "Hi" }]
}'magpie
Install the sub2tok plugin and sign in with your token, then pick sub2tok models in magpie. The model list, prices and balance sync automatically; every charge is recorded in the ledger on the Balance page of your console.
magpie plugin add @sub2tok/magpie
magpie plugin login sub2tokClaude desktop app
The Claude desktop app doesn't read the config files above. Set it up once inside the app.
- From the menu bar, choose Help → Troubleshooting → Enable Developer Mode (on Windows, it's in the ☰ menu at the top left of the sign-in screen).
- Then choose Developer → Configure Third-Party Inference….
- Under Connection, set Inference provider to Gateway, Gateway base URL to
https://api.sub2tok.com, and Gateway API key tosk-your-token. Leave Gateway auth scheme on Bearer. - Click Apply Changes. The app restarts on sub2tok and lists the Claude models from the gateway.
Codex app
The Codex app ignores profiles and only reads config.toml. Install the sub2tok command with the one-line command at the top of the page, then run this. It backs up config.toml and adds the sub2tok settings at the top. To switch back to your original settings, run sub2tok codex-app off.
sub2tok codex-app on