Skip to content

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

Pick your client and OS to generate a ready-to-copy config using this site’s live API Base URL.
API: https://YOUR_API_DOMAIN
Bash / Zsh — Claude Code
# 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
claude

Use 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):

ClientUpstream ProtocolBase URL FormatPrimary Config TargetGuide
Claude CodeAnthropic Messages (/v1/messages)https://api.zwwbai.com (no /v1)ANTHROPIC_BASE_URL / ~/.claude/settings.jsonClaude Code Guide
Codex CLIOpenAI Responses (/v1/responses)https://api.zwwbai.com/v1~/.codex/config.toml & ~/.codex/auth.jsonCodex CLI Guide
Kimi CodeAnthropic Messages or OpenAI Chathttps://api.zwwbai.com (Anthropic) or https://api.zwwbai.com/v1 (OpenAI)~/.kimi/config.toml / env varsKimi Code Guide
Grok Build CLIxAI / OpenAI-compatiblehttps://api.zwwbai.com/v1XAI_BASE_URL / CLI configGrok 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.

  1. 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.
  2. Prepare Your Local Environment: Verify Node.js LTS (v20+), shell PATH, Git (including Git Bash on Windows), and basic connectivity to https://api.zwwbai.com/v1/models using the Environment Preparation checklist.
  3. Configure Your CLI Tool: Follow the dedicated guide for your preferred terminal agent:
  4. 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? ​