FrogDino

Codex CLI with FrogDino: add a custom model provider

Codex defines how it connects to a model with a "model provider" in config.toml: base URL, wire API and authentication. The config below follows the official Codex custom-provider docs, with FrogDino's address and key.

Before you start: sign up and create a key

  1. Open the sign-up page and register with your email.
  2. Sign in and top up under Recharge. You pay for what you use; there is no monthly fee. Payment is by Alipay or WeChat Pay.
  3. Go to API Keys, click Create key and choose the GPT group. The full key is shown once, so save it right away.

After creating a key, click "Use key" in the console. It generates a complete config with your key filled in. This page explains the same settings.

Step 1: put the key in an environment variable

Bash / Zsh:

export FROGDINO_API_KEY="your-key"

PowerShell:

$env:FROGDINO_API_KEY = "your-key"

To make it permanent, add the line to your shell profile (such as ~/.zshrc) or your system environment variables.

Step 2: edit the user-level config.toml

Location: ~/.codex/config.toml on macOS and Linux, %USERPROFILE%\.codex\config.toml on Windows. Merge this in without redefining existing keys:

model = "gpt-6.1-sol"
model_provider = "frogdino"

[model_providers.frogdino]
name = "FrogDino"
base_url = "https://frogdino.com/v1"
env_key = "FROGDINO_API_KEY"
wire_api = "responses"
requires_openai_auth = false

Recent Codex CLI versions can do this without editing files: run /config, open Sessions > Model providers, choose Create a custom provider or gateway, then fill in Name, Base URL and API key variable.

Step 3: verify

Start codex, run /status to confirm the active model and provider, then send a message.

FAQ

Does base_url need /v1?

Yes. The Codex docs ask for the base URL including its API path; the OpenAI-protocol address of FrogDino is https://frogdino.com/v1.

What goes in wire_api?

responses. Per the configuration reference it is the only supported value and the default when omitted.

Can the provider ID be "openai"?

No. Codex reserves openai, ollama, lmstudio, amazon-bedrock, amazon-bedrock-runtime and gcp for built-in providers.

Why is my project-level .codex/config.toml ignored?

Per the docs, project config cannot set model_provider, model_providers or openai_base_url; Codex ignores them and prints a startup warning. Put these in the user-level ~/.codex/config.toml.

Where does "model" go?

model and model_provider must come before the first [table]. Keys after a table header belong to that table.

I get 401.

Check that the environment variable is set in the shell that starts codex, that the key is complete and in the GPT group, and that your balance is above zero.

Official documentation

Sign up and create a keyModels & pricing

Got an error? Look it up in the error code reference.