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.
- Select the client you want to configure, then add a custom provider named Zashmodel.
- Paste your Zashmodel key from API Keys and enter the endpoint shown below. API Keys โ
- Choose an exact accessible model ID, save the provider, activate it, and restart the CLI.
| Provider | Zashmodel |
|---|---|
| Protocol | OpenAI Responses |
| API base URL | https://zashmodel.com/v1 |
| Model | YOUR_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.
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 = falseStart 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 โ