Codex CLI

Connect Codex to the Zashmodel Responses endpoint.

Set up with CC Switch

If you use a configuration manager, add Zashmodel as a custom provider and keep the fields below consistent with the manual configuration.

Download CC Switch โ†—

  1. Select the client you want to configure, then add a custom provider named Zashmodel.
  2. Paste your Zashmodel key from API Keys and enter the endpoint shown below. API Keys โ†’
  3. Choose an exact accessible model ID, save the provider, activate it, and restart the CLI.
Connection fields
ProviderZashmodel
ProtocolOpenAI Responses
API base URLhttps://zashmodel.com/v1
ModelYOUR_MODEL_ID

Manual setup

Install Codex CLI ยท Set your environment variables

After setting ZASHMODEL_API_KEY, merge these fields into your user-level ~/.codex/config.toml. Keep your other settings, avoid duplicate TOML keys and choose a model that supports Responses and the tools your task needs.

~/.codex/config.toml
model_provider = "zashmodel"
model = "YOUR_MODEL_ID"

[model_providers.zashmodel]
name = "Zashmodel"
base_url = "https://zashmodel.com/v1"
env_key = "ZASHMODEL_API_KEY"
wire_api = "responses"
requires_openai_auth = false

Start codex from the same terminal. This configuration reads the Zashmodel key from the environment; existing configurations using another credential source must be updated consistently.

Official Codex configuration reference โ†—