GreenTokens

Search

Search models, guides, docs and the FAQ.

Clients

Codex CLI

Add GreenTokens as a model provider in Codex CLI.

Add GreenTokens as a provider

Codex CLI supports custom model providers in its config file. Add GreenTokens and make it the default:

~/.codex/config.toml
model = "gpt-6-sol"
model_provider = "greentokens"

[model_providers.greentokens]
name = "GreenTokens"
base_url = "https://api.greentokens.io/v1"
env_key = "GREENTOKENS_API_KEY"
wire_api = "responses"
  • base_url includes /v1.
  • env_key names the environment variable Codex reads your key from, so the key never sits in the file.
  • wire_api = "responses" uses the OpenAI Responses API, which GreenTokens serves.

Run it

export GREENTOKENS_API_KEY="sk-gt-…"
codex

Choosing models

Set model in the config to any model ID from the models page, or override it for one session:

Shell
codex --model gpt-6-astra
Give Codex its own API key with a daily spend limit, so a long autonomous run can't exceed the budget you set.