Guides
1. Where will you use it?
2. Operating system
Add a provider to ~/.codex/config.toml, then set the key in your shell:
config.toml
# ~/.codex/config.toml model = "gpt-6-sol" model_provider = "aisubs" [model_providers.aisubs] name = "AISUBS" base_url = "https://api.aisubs.id/v1" env_key = "AISUBS_API_KEY" wire_api = "responses"
Terminal
export AISUBS_API_KEY="sk-..." codex