Skip to main content
Codex CLI lets you add any OpenAI-compatible provider. Point it at Deepshi and you can code with Deepshi’s models from your terminal.

Configure the provider

Add Deepshi to ~/.codex/config.toml:
[model_providers.deepshi]
name = "Deepshi"
base_url = "https://api.deepshi.ai/v1"
env_key = "DEEPSHI_API_KEY"
wire_api = "chat"

# Make Deepshi the default
model_provider = "deepshi"
model = "deepshi-3.0"
Set your key in the environment:
export DEEPSHI_API_KEY="sk-bf-..."

Run it

codex
Or select the provider and model inline for a single run:
codex --config model_provider=deepshi --model deepshi-3.0
Use a model with the tools capability (e.g. deepshi-3.0 or a frontier model) for agentic coding, since Codex relies on tool calling. See Text models.
wire_api = "chat" tells Codex to use the OpenAI Chat Completions API, which is the surface Deepshi exposes. See Authentication for keys.