Interactive Setup Wizard & CLI Overview
Connect your terminal coding agents to RKAPI in under two minutes. Use the interactive generator below to pick your CLI client and operating system, preview a ready-to-paste configuration with this site's dedicated API endpoint, and jump straight into the full setup guide.
Interactive Setup Generator
# 1. Install Claude Code
npm install -g @anthropic-ai/claude-code
# 2. Configure API endpoint & key
export ANTHROPIC_BASE_URL="https://YOUR_API_DOMAIN"
export ANTHROPIC_AUTH_TOKEN="sk-your-api-key"
# 3. Launch in your project
claudeUse the Dedicated API Domain Only
Always configure CLI tools and SDKs with the API endpoint https://api.zwwbai.com (or https://api.zwwbai.com/v1 for OpenAI-compatible protocols). Do not point clients to the web console domain https://s2pbxm0xv5y.adtyai-fz.top—requests sent to the console domain are rejected with HTTP 403. See Quick Start & Dual Domains for details.
Supported CLI Clients
Different CLI tools speak different upstream wire protocols. Pay close attention to whether a client expects the root API origin (https://api.zwwbai.com) or the /v1 suffix (https://api.zwwbai.com/v1):
| Client | Upstream Protocol | Base URL Format | Primary Config Target | Guide |
|---|---|---|---|---|
| Claude Code | Anthropic Messages (/v1/messages) | https://api.zwwbai.com (no /v1) | ANTHROPIC_BASE_URL / ~/.claude/settings.json | Claude Code Guide |
| Codex CLI | OpenAI Responses (/v1/responses) | https://api.zwwbai.com/v1 | ~/.codex/config.toml & ~/.codex/auth.json | Codex CLI Guide |
| Kimi Code | Anthropic Messages or OpenAI Chat | https://api.zwwbai.com (Anthropic) or https://api.zwwbai.com/v1 (OpenAI) | ~/.kimi/config.toml / env vars | Kimi Code Guide |
| Grok Build CLI | xAI / OpenAI-compatible | https://api.zwwbai.com/v1 | XAI_BASE_URL / CLI config | Grok Build CLI Guide |
Manage Multiple CLI Profiles Visually
If you switch frequently between multiple API keys, token groups, or CLI tools (Claude Code, Codex CLI, Codex Desktop, Claude Desktop), consider using CC Switch to manage provider profiles from a single GUI or CLI without hand-editing config files.
Recommended Setup Path
- Create an API Key: Sign in at https://s2pbxm0xv5y.adtyai-fz.top, open API Tokens, create a token bound to the appropriate group for your models, and copy the
sk-...key. Review Channel Availability if you are unsure which token group to select. - Prepare Your Local Environment: Verify Node.js LTS (
v20+), shellPATH, Git (including Git Bash on Windows), and basic connectivity tohttps://api.zwwbai.com/v1/modelsusing the Environment Preparation checklist. - Configure Your CLI Tool: Follow the dedicated guide for your preferred terminal agent:
- Optimize Cost & Latency: If you run long Claude Code sessions and notice low prompt-cache reuse or rising token spend, walk through Claude Code Prompt Cache Hit Rate Diagnostics & Fix.
Looking for Desktop Clients, Agents, or SDKs?
- Need GUI apps, autonomous agents, or official Python/TypeScript SDKs? Browse Desktop, Agents & SDKs.
- Want to route non-Claude models through Claude Code or Codex? Check ChatGPT via Claude Code, DeepSeek via Claude Code, and DeepSeek via Codex.
- Hitting connection, authentication, or model errors? Visit the General FAQ, Claude Code FAQ, or Codex FAQ.