AI Coding Tools Setup Guide

Direct access to Claude Code, CodeX, Gemini CLI from China, no VPN needed.
One API Key for all top-tier coding models.

✨ AIToken Advantages

Direct access from China, no VPN needed Top Up with USDT, no foreign credit card needed One Key for Claude, GPT, DeepSeek, Gemini Fully OpenAI API compatible Pay as you go, no minimum spend Get 20% extra Tokens on first purchase 1,000 free Tokens on Sign Up Supports ChatGPT Next Web, LobeChat and other clients

💻 System Requirements

🪟 Windows

  • Windows 10 / 11
  • Node.js 18+ (LTS Recommended)
  • CMD / PowerShell / Windows Terminal
  • Run as administrator recommended

🍎 macOS

  • macOS 10.15 (Catalina) or above
  • Node.js 18+
  • Terminal
  • Homebrew recommended

🐧 Linux

  • Ubuntu 18.04+ / Debian 9+ / CentOS 7+
  • Node.js 18+
  • Terminal
  • sudo may be required for global install

🔧 Claude Code Installation & Setup

Anthropic official CLI AI coding assistant with AIToken direct access from China.

Step 1: Install Node.js

Visit Node.js official site to download the LTS version (.msi), or use winget:

winget install OpenJS.NodeJS.LTS

Verify installation:

node --version
npm --version

Step 2: Install Claude Code CLI

as administratorrun command line:

npm install -g @anthropic-ai/claude-code

Step 3: Configure AIToken API

🔑 Get API Key: Visit aitoken.sbs and get your API Key (1,000 free Tokens on Sign Up).

In C:\Users\YourUsername\.claude\ directory, create settings.json

{
  "env": {
    "ANTHROPIC_AUTH_TOKEN": "Your AIToken API Key",
    "ANTHROPIC_BASE_URL": "https://aitoken.sbs/v1"
  }
}

Step 4: Start Using

Open command line,cd to your project directory:

cd your-project-folder
claude

Step 1: Install Node.js

Using Homebrew:

brew install node

Step 2: Install Claude Code CLI

npm install -g @anthropic-ai/claude-code

Step 3: Configure AIToken API

🔑 Get API Key: Visit aitoken.sbs Sign Up to get it.

Create ~/.claude/settings.json

{
  "env": {
    "ANTHROPIC_AUTH_TOKEN": "Your AIToken API Key",
    "ANTHROPIC_BASE_URL": "https://aitoken.sbs/v1"
  }
}

Step 4: Start Using

cd your-project-folder && claude

Step 1: Install Node.js

For Ubuntu/Debian, using NodeSource:

curl -fsSL https://deb.nodesource.com/setup_lts.x | sudo -E bash -
sudo apt-get install -y nodejs

Step 2: Install Claude Code CLI

sudo npm install -g @anthropic-ai/claude-code

Step 3: Configure AIToken API

Create ~/.claude/settings.json,Same content as above。

Step 4: Start Using

cd your-project-folder && claude

🚀 CodeX Installation & Setup

OpenAI GPT-based code assistant, configured to use AIToken service.

Step 1: Install CodeX CLI

as administratorRun:

npm install -g @openai/codex@latest

Step 2: Configure AIToken API

🔑 Get API Key: Visit aitoken.sbs Sign Up to get it.

In C:\Users\YourUsername\.codex\ create two files:

config.toml

model_provider = "aitoken"
model = "gpt-4o"
model_reasoning_effort = "high"
network_access = "enabled"

[model_providers.aitoken]
name = "AIToken"
base_url = "https://aitoken.sbs/v1"
wire_api = "responses"
requires_openai_auth = true

auth.json

{
  "OPENAI_API_KEY": "Your AIToken API Key"
}

Step 3: Start Using

cd your-project-folder
codex

Step 1: Install CodeX CLI

npm install -g @openai/codex@latest

Step 2: Configure AIToken API

In ~/.codex/ create config.toml and auth.json(Same as Windows)。

Step 3: Start Using

cd your-project-folder && codex

Step 1: Install CodeX CLI

sudo npm install -g @openai/codex@latest

Step 2: Configure AIToken API

In ~/.codex/ create config.toml and auth.json(Same as Windows)。

Step 3: Start Using

cd your-project-folder && codex

💎 Gemini CLI Installation & Setup

Google official CLI tool with AIToken direct access from China.

Step 1: Install Gemini CLI

npm install -g @google/gemini-cli

Step 2: Configure AIToken API

🔑 Get API Key: Visit aitoken.sbs Sign Up to get it.

In C:\Users\YourUsername\.gemini\ create two files:

.env

GOOGLE_GEMINI_BASE_URL=https://aitoken.sbs/v1
GEMINI_API_KEY=Your AIToken API Key
GEMINI_MODEL=gemini-2.5-pro

settings.json

{
  "ide": { "enabled": true },
  "security": {
    "auth": { "selectedType": "gemini-api-key" }
  }
}

Step 3: Start Using

cd your-project-folder
gemini

Step 1: Install Gemini CLI

npm install -g @google/gemini-cli

Step 2: Configure AIToken API

In ~/.gemini/ create .env and settings.json(Same as Windows)。

Step 3: Start Using

cd your-project-folder && gemini

Step 1: Install Gemini CLI

sudo npm install -g @google/gemini-cli

Step 2: Configure AIToken API

In ~/.gemini/ create .env and settings.json(Same as Windows)。

Step 3: Start Using

cd your-project-folder && gemini

🔧 VSCode / Cursor Universal Setup (1 Minute)

Universal setup for VSCode, Cursor, Trae and other editors.

Method 1: Install AI Coding Plugins

Open VSCode → Extensions (Ctrl+Shift+X) → Search and install:

Claude Code Codex - OpenAI Continue.dev Cline

Method 2: OpenAI-Compatible API Setup

Works with Continue.dev, Cline, Tongyi Lingma, and other plugins supporting OpenAI API format:

// API Base URL
https://aitoken.sbs/v1

// API Key
Your AIToken API Key

// Recommended Models
deepseek-ai/DeepSeek-V3    ← Best value, top Chinese performance
deepseek-ai/DeepSeek-R1    ← Deep reasoning, math/code
deepseek-ai/DeepSeek-V4-Flash  ← Ultra-fast response

Available Models

DeepSeek V3         → deepseek-ai/DeepSeek-V3            ¥7/M Token
DeepSeek R1         → deepseek-ai/DeepSeek-R1            ¥14/M Token
DeepSeek V4 Flash   → deepseek-ai/DeepSeek-V4-Flash      ¥7/M Token
DeepSeek V3.1       → deepseek-ai/DeepSeek-V3.1-Terminus ¥14/M Token
Qwen 3.5 27B        → Qwen/Qwen3.5-27B                  ¥7/M Token
MiniMax M2.5        → MiniMaxAI/MiniMax-M2.5             ¥7/M Token

Ready to Get Started?

Sign up and get 1,000 free Tokens. Connect to top-tier AI coding tools in 3 minutes.
One Key for all models. Pay-as-you-go, zero management overhead.

🚀 Sign Up Free for API Key