AI CLI API Key Setup — Claude Code, Codex, Gemini & Kimi Code CLI Guides
Complete guides for configuring API keys in AI CLI tools — Claude Code, OpenAI Codex, Gemini CLI, and Kimi Code CLI (Custom Registry) with APIMaster.ai on Windows and macOS.
CLI setup
Environment check → per-tool configuration for APIMaster.ai, including Windows / macOS paths and config files.
Complete Get API Key first. One console token usually works for all tools below unless you split keys in the console yourself.
DeepSeek setup guides
Pages
| Step | Topic |
|---|---|
| Environment check | Node.js, global CLI install, first-run config folders |
| Claude Code | ~/.claude/settings.json |
| Codex | ~/.codex/config.toml + auth.json |
| Gemini CLI | ~/.gemini/.env (when Gemini is enabled) |
| Kimi Code CLI | /provider → Custom registry → kimi/registry.json |
Endpoints
| Use case | URL |
|---|---|
| OpenAI-compatible (Codex) | https://apimaster.ai/v1 |
| Anthropic-compatible (Claude Code) | https://apimaster.ai |
| Gemini (if enabled) | https://apimaster.ai (see console for exact path) |
Models
See Supported models. Use marketplace model ids in CLI config (e.g. claude-sonnet-4-6, gpt-5.4).
Short guide
Env-only setup: Claude Code (short).
