Configure the provider
Add Deepshi to~/.codex/config.toml:
model and model_provider keys must come before the [model_providers.deepshi] block. In TOML, any keys written after a table header belong to that table.
Set your key in the environment:
Run it
wire_api = "responses" tells Codex to use the OpenAI Responses API.
Current Codex versions speak only the Responses API, which Deepshi supports at
https://api.deepshi.ai/v1. See Authentication for keys.