Prerequisites
- Codex CLI installed (
npm install -g @openai/codex) - A TryPost Cloud account with an active trial or subscription (no card required to start)
Setup
Open the configuration file
Edit No
~/.codex/config.toml and add the TryPost server:Authorization header — Codex discovers OAuth from the URL.Sign in via codex mcp login
Run the OAuth flow so Codex caches the token:Codex opens your browser to TryPost; approve the request and return to the terminal.
Bearer token fallback
Bearer token fallback
For headless environments, use a Personal Access Token via environment variable:Create the key from Settings > API Keys on the TryPost dashboard.
bearer_token_env_var keeps the token out of the config file.
