Install Codex CLI
Install Codex CLI globally withnpm:
Configure ClawApiGo API
Important: clear OpenAI environment variables before use Before configuring, clear the following OpenAI-related environment variables so they do not override your ClawApiGo settings:
OPENAI_BASE_URLOPENAI_API_KEY
Configuration steps
- Edit Codex’s config file at
.codex/config.tomland add:
- Launch Codex CLI with the configured profile:
