Codex CLI
Codex CLI connects through the FUNCD Responses API. Configure the API URL, model ID, and environment variable name.
Configure the FUNCD provider
Save the following in your user-level ~/.codex/config.toml:
toml
model = "tokener-gpt-5-6-luna"
model_provider = "funcd"
[model_providers.funcd]
name = "FUNCD"
base_url = "https://api.funcd.org/v1"
env_key = "FUNCD_API_KEY"
wire_api = "responses"Provide the key through an environment variable:
bash
export FUNCD_API_KEY="pk_live_..."
codexChoose another model for one run:
bash
codex -m tokener-gpt-5-6-lunaBase URL
Set base_url to https://api.funcd.org/v1. Codex appends POST /responses; do not add /responses yourself.
Requirements
- The key must allow the selected model.
- The account balance and key spending limit must be sufficient.
- The selected upstream model must support the Responses API.
- Keep the token in
FUNCD_API_KEY, not inconfig.toml.
FUNCD has verified standard Responses, streaming output, and function tools with tokener-gpt-5-6-luna. Test other models with the Responses example first.