Codex CLI
Set up sivcloud in Codex CLI: a ready-to-copy configuration snippet.
Codex CLI uses the Responses format, so the model must open the /v1/responses endpoint. The list of models and the endpoints each one opens is on the Models page in the console.
Set up
~/.codex/config.toml
model = "deepseek-v4.1-flash"
model_provider = "sivcloud"
[model_providers.sivcloud]
name = "sivcloud"
base_url = "https://ai.sivcloud.com/v1"
env_key = "SIVCLOUD_API_KEY"
wire_api = "responses"
Export SIVCLOUD_API_KEY with your API key before running codex.
Check
- Save the configuration, then restart Codex CLI if needed.
- Send a short message. The usage shows on the Usage page within moments.
- Seeing
invalid_api_key? Check the API key. Seeingmodel_not_found? Check the model id. Full list: Error codes.
The request format is explained on the endpoint page. Never write the API key into a file that goes into a repository.