Getting startedBeginnersUpdated

How can one API key configure Claude Code, Codex, and Gemini CLI?

The same key works in all three clients. The protocol, environment variables, and config file stay different. Do not copy one client's config into another.

Prepare

  1. Copy one key from API Keys.
  2. Save an endpoint for Claude, OpenAI, and Gemini on Endpoint selection.
  3. Install Node.js first if you need it: environment setup.

Fill each client

ClientWhere the key goesAddress fieldWatch out
Claude CodeANTHROPIC_AUTH_TOKENANTHROPIC_BASE_URLDo not set CLAUDE_CODE_ATTRIBUTION_HEADER=0
Codexauth.json, written by codex login --with-api-keybase_url in config.tomlDo not put the key in config.toml
Gemini CLIGEMINI_API_KEYGOOGLE_GEMINI_BASE_URLDomain only. Do not add /v1beta

Start every address at https://api.icodeeasy.cc. If one client is slow, change only that client's address to https://jp.icodeeasy.cc or https://sg.icodeeasy.cc.

Check model capabilities before you assume a model works in that client. After setup, send one short message from each client and confirm three separate rows in request logs.