OpenAI Codex
codexAuthenticate with OpenAI's API using OAuth authorization code flow. Access GPT models and Codex for code generation and completion tasks.
🔐 Authentication Methods
authorization_code
authorize: https://auth.openai.com/oauth/authorize
token: https://auth.openai.com/oauth/token
Scope: openid profile email offline_access
Register at: https://chatgpt.com
- Sign up for a ChatGPT account at https://chatgpt.com if you don't have one
- A ChatGPT Plus, Pro, or Team subscription is required for Codex CLI access
🌐 APIs
rest
Base URL: https://api.openai.com/v1
Auth Header: Authorization: Bearer {token}
Spec Type: openapi
Methods: authorization_code
📦 Public Clients
These clients are bundled with the formula. Schlussel auto-selects the first available public client and its supported method. Just run the command below.
codex-cli
Client ID: app_EMoamEEZ73f0CkXaXp7hrann
Source: https://github.com/openai/codex
Methods: authorization_code
$ schlussel run codex