Integrations
Codex CLI
Configure Codex CLI to call plaingateway.
toml
# ~/.codex/config.toml model = "openai/gpt-5.6-luna" model_provider = "plaingateway" [model_providers.plaingateway] name = "plaingateway" base_url = "https://api.plaingateway.com/api/v1" env_key = "PLAINGATEWAY_API_KEY" wire_api = "responses"
Then export the key and start Codex:
sh
export PLAINGATEWAY_API_KEY="sk-pg-v1-..." codex
wire_api = "responses" makes Codex call /responses. env_key names the environment variable that holds the key.