CLI setup
Full guides for Claude Code, Codex, and Gemini CLI with APIMaster.ai (Windows / 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.
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) |
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).