Codex subscription
Have a ChatGPT Plus or Pro plan? Use it as a model source through the Codex backend. routeplane providers login openai-codex runs the same OAuth flow OpenAI’s Codex CLI uses, stores the refreshing token, and attaches it to requests on the openai-codex provider — so your ChatGPT subscription covers the tokens, with no OPENAI_API_KEY.
Log in
Section titled “Log in”routeplane providers login openai-codexThis opens OpenAI’s authorize page in your browser (PKCE, on a pinned loopback port), and on approval stores the credential under $XDG_DATA_HOME/routeplane/oauth-tokens.json. The token auto-refreshes — log in once. To remove it:
routeplane providers logout openai-codexMultiple accounts
Section titled “Multiple accounts”Credentials are keyed by (provider, label). Use --label to keep more than one account:
routeplane providers login openai-codex --label workRoute to it
Section titled “Route to it”No routeplane.yaml block is required — openai-codex is built in, and the stored credential is found at request time. Address a model your plan exposes by its registry id:
routeplane route openai-codex:gpt-5-codexThen start Routeplane and send a request. Use the provider-qualified id openai-codex:<model> to pin the request to your subscription; see Models for the exact ids the Codex backend serves.
Learn more
Section titled “Learn more”- Codex — point the Codex CLI at Routeplane (a harness), distinct from using your plan as a model source here.
- Model fallback — fail over from your subscription to another source on overload.