Agents & CLIs

Codex CLI

Point OpenAI's Codex CLI at RouterPlex.

Add RouterPlex as a provider in ~/.codex/config.toml:

toml
model = "gpt-5.5"
model_provider = "routerplex"
 
[model_providers.routerplex]
name = "RouterPlex"
base_url = "https://api.routerplex.com/v1"
env_key = "ROUTERPLEX_API_KEY"

Export the key and run:

bash
export ROUTERPLEX_API_KEY="sk-..."
codex

Any model from the catalog works in the model field — including Claude and Gemini models, since Codex CLI just speaks the OpenAI wire format.