Use CCTQ in Codex

Prices and modelsEndpoint verified 2026-11-09

Generate a Codex config from the Responses-compatible endpoint in CCTQ's docs. The API key in the config is a placeholder; replace it with a key you create at CCTQ.

Endpoints

  • Pay as you gohttps://www.cctq.ai/v1Docs · verified 2026-11-09

Generate the config

Pick from the 22 models this provider sells, or type another model name.

Save to ~/.codex/config.toml; merge it in if the file already exists
model = "gpt-6-astra"
model_provider = "cctq"

[model_providers.cctq]
name = "CCTQ"
base_url = "https://www.cctq.ai/v1"
env_key = "CCTQ_API_KEY"
wire_api = "responses"

Models and prices

ModelInputOutputRatio
Claude Fable 5.2claude-fable-5-2ClaudeCode-MAXSubscription pool$1.80$8.990.22×
GPT-6.1 Terragpt-6.1-terraCodex-PlusMixed$0.030$0.150.030×
Claude Haiku 5.5claude-haiku-5-5ClaudeCode-MAXSubscription pool$0.022$0.1120.22×
GPT-6.1 Solgpt-6.1-solCodex-PlusMixed$0.060$0.300.030×
Claude Sonnet 5.5claude-sonnet-5-5ClaudeCode-MAXSubscription pool$0.45$2.250.22×
Claude Opus 5.5claude-opus-5-5ClaudeCode-MAXSubscription pool$0.899$4.500.22×
GPT-6 Lunagpt-6-lunaCodex-PlusMixed$0.0030$0.0150.030×
GPT-6 Solgpt-6-solCodex-PlusMixed$0.060$0.300.030×
GPT-6 Astragpt-6-astraCodex-PlusMixed$0.30$1.500.030×
Claude Fable 5.1claude-fable-5-1ClaudeCode-MAXSubscription pool$2.25$11.240.22×
GLM-5.3glm-5.3CN-Model$0.839$2.940.70×
Claude Opus 5claude-opus-5ClaudeCode-MAXSubscription pool$1.12$5.620.22×
Kimi K3kimi-k3CN-Model$2.10$10.490.70×
GPT-5.6 Lunagpt-5.6-lunaCodex-PlusMixed$0.0060$0.0360.030×
GPT-5.6 Solgpt-5.6-solCodex-PlusMixed$0.15$0.8990.045×
GPT-5.6 Terragpt-5.6-terraCodex-PlusMixed$0.060$0.360.030×
Claude Sonnet 5claude-sonnet-5ClaudeCode-MAXSubscription pool$0.45$2.250.22×
Claude Fable 5claude-fable-5ClaudeCode-MAXSubscription pool$2.25$11.240.22×
Claude Opus 4.8claude-opus-4-8ClaudeCode-MAXSubscription pool$1.12$5.620.22×
Claude Opus 4.7claude-opus-4-7ClaudeCode-MAXSubscription pool$1.12$5.620.22×
Claude Sonnet 4.6claude-sonnet-4-6ClaudeCode-MAXSubscription pool$0.675$3.370.22×
Claude Opus 4.6claude-opus-4-6ClaudeCode-MAXSubscription pool$1.12$5.620.22×
$ per 1M tokens. Each model uses the provider's cheapest group; the ratio uses the output price

How to check it works

Restart Codex and send a message. If it replies and the request shows up in CCTQ's console, it is using this endpoint.

FAQ

Why is the key in an environment variable?

config.toml only holds the variable's name, so the key never goes into the config file and does not leak when you share or sync it. To keep it, add the export line to ~/.zshrc or ~/.bashrc.

How do I switch back to OpenAI?

Remove the model_provider line from config.toml, then restart Codex.

Does my key pass through this site?

No. The page only generates config text and never asks for your key; the key only goes into the terminal or environment variables on your own machine.

Codex configs for other providers