BeeRoute logoBeeRoute.

🚀 BeeRoute - AI Coding Tools Setup Guide

Welcome to BeeRoute! We are committed to providing developers with a stable and efficient AI model gateway service. This guide walks you through configuring popular AI coding tools so you can seamlessly access powerful AI models through our service.

✨ Why BeeRoute

  • Stable and reliable: global node deployment, low latency and high availability
  • Rich model selection: supports Claude, GPT, Gemini, and other leading models
  • Dedicated groups: dedicated token groups for Claude Code and CodeX
  • Efficient caching: exclusive high cache-hit rates make your tokens last longer
  • Developer friendly: complete documentation and technical support
  • Affordable pricing: more economical plans than official pricing

💻 System Requirements

To ensure tools like Claude Code and CodeX run stably and efficiently, make sure your development environment meets the following basic requirements. These tools are all built on Node.js, so the core requirements are the same across platforms.

✅ Core Requirements (All Platforms)

  • Node.js: version 18+ is required. Installing the LTS (Long Term Support) version is recommended for the best stability and compatibility.
  • Network connection: the tools need a stable network connection to access the BeeRoute service.
  • BeeRoute account: register an account at beeroute.ai and obtain an API key.

📋 Platform-Specific Requirements

🪟Windows

  • Operating system: Windows 10 or Windows 11
  • Environment dependencies:
    • Node.js 18+
    • An available command-line tool such as CMD, PowerShell, or Windows Terminal
    • (Recommended) Run the command line as administrator for global installs to avoid permission issues

🍎macOS

  • Operating system: macOS 10.15 (Catalina) or later
  • Environment dependencies:
    • Node.js 18+
    • Terminal
    • (Recommended) Install and use the Homebrew package manager to simplify installing and managing Node.js

🐧Linux

  • Operating system: mainstream Linux distributions are supported, including but not limited to:
    • Ubuntu 18.04+
    • Debian 9+
    • CentOS 7+
  • Environment dependencies:
    • Node.js 18+
    • Terminal
    • Global installs may require sudo privileges

🔧 Claude Code Installation and Configuration

Claude Code is a powerful command-line AI coding assistant officially released by Anthropic. Follow the steps below to connect it to the BeeRoute service. BeeRoute provides a dedicated token group for Claude Code, supporting the following latest models:

📌 Supported Model Versions

  • claude-sonnet-5-5 - mainstream Sonnet version
  • claude-opus-5-5 - latest Opus version
  • claude-haiku-5-5 - Haiku 5.5 version (lightweight)

Quick Start Workflow

  1. Install Node.js: Make sure your system environment is ready.
  2. Install the Claude Code CLI: Install the command-line tool globally via npm.
  3. Configure BeeRoute: Create a configuration file and fill in your personal API key and our service URL.
  4. Launch and Use: Start Claude Code in your project directory and begin AI-powered coding.

🪟Windows Installation Guide

Step 1: Install Node.js

  • Recommended: Visit the Node.js website, then download and install the LTS (Long Term Support) Windows installer (.msi).
  • Alternative: Install with a package manager such as winget.
    # Install with Winget
    winget install OpenJS.NodeJS.LTS
  • Verify the installation: Once installed, open a new command-line window (CMD or PowerShell) and run:
    node --version
    npm --version

Step 2: Install the Claude Code CLI

Run a command-line window as Administrator and execute the following command to install globally:

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

After installation, verify it succeeded with the claude --version command.

Step 3: Configure BeeRoute

  1. Get an API key:
    • Visit the BeeRoute console and log in.
    • Select the Claude Code dedicated group.
    • Create a new token.
    • Copy the generated key.
  2. Create the configuration file:
    • Locate or create the configuration file at the following path: %USERPROFILE%\.claude\settings.json.
    • Fill the following content into the settings.json file:
      {
          "env": {
          "ANTHROPIC_AUTH_TOKEN": "your API key from beeroute.ai",
          "ANTHROPIC_BASE_URL": "https://beeroute.ai",
          "CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS": "1",
          "CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS": "1"
        }
      }
    • One-click setup script: click to download, then double-click to run.
⚠️ Important:
  • Be sure to replace the value of ANTHROPIC_AUTH_TOKEN with your own key.
  • When creating a token, select the Claude Code dedicated group to ensure compatibility.

Step 4: Launch and Use

  1. Open a command-line window and navigate to your project folder.
    cd your-project-folder
  2. Run the claude command to launch the tool, then follow the first-run prompts to complete the initial setup.

🍎macOS Installation Guide

Step 1: Install Node.js

  • Recommended: Install with Homebrew.
    # If Homebrew is not installed, install it first
    /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
    
    # Install Node.js
    brew install node
  • Alternative: Go to the Node.js website and download the .pkg installer.
  • Verify the installation: node --version and npm --version.

Step 2: Install the Claude Code CLI

Open a terminal and run:

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

Step 3: Configure BeeRoute

  1. Get an API key:
    • Visit the BeeRoute console.
    • Select the Claude Code dedicated group.
    • Create a token and copy the key.
  2. Create the configuration file:
    • Locate or create the configuration file in your home directory: ~/.claude/settings.json.
    • Fill in the following content:
      {
        "env": {
          "ANTHROPIC_AUTH_TOKEN": "your API key from beeroute.ai",
          "ANTHROPIC_BASE_URL": "https://beeroute.ai",
          "CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS": "1",
          "CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS": "1"
        }
      }
    • One-click setup script:
      bash <(curl -fsSL https://beeroute.ai/static/cli/linux_claude_setup.sh)

Step 4: Launch and Use

  1. Open a terminal and cd into your project directory.
  2. Run the claude command to get started.

🐧Linux Installation Guide

Step 1: Install Node.js

Install with your distribution package manager. Using Ubuntu/Debian as an example:

# Recommended: use NodeSource to get a newer version
curl -fsSL https://deb.nodesource.com/setup_lts.x | sudo -E bash -
sudo apt-get install -y nodejs

Verify the installation: node --version and npm --version.

Step 2: Install the Claude Code CLI

Open a terminal and run:

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

Step 3: Configure BeeRoute

  1. Get an API key:
    • Visit the BeeRoute console.
    • Select the Claude Code dedicated group.
    • Create a token and copy the key.
  2. Create the configuration file:
    • Locate or create the configuration file in your home directory: ~/.claude/settings.json.
    • Fill in the following content:
      {
        "env": {
          "ANTHROPIC_AUTH_TOKEN": "your API key from beeroute.ai",
          "ANTHROPIC_BASE_URL": "https://beeroute.ai",
          "CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS": "1",
          "CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS": "1"
        }
      }
    • One-click setup script:
      bash <(curl -fsSL https://beeroute.ai/static/cli/linux_claude_setup.sh)

Step 4: Launch and Use

  1. Open a terminal and cd into your project directory.
  2. Run the claude command to get started.

🚀 CodeX Installation and Configuration

CodeX is a powerful coding assistant built on OpenAI's GPT models. Follow the steps below to configure it to use the BeeRoute service.

📌 Important Note

When creating an API token, be sure to select the CodeX dedicated group to ensure the best compatibility and performance.

Step 1: Install Node.js

💡 Tip: This step is identical to the Claude Code installation guide. Skip it if Node.js is already installed.

Step 2: Install the CodeX CLI

Open a command prompt or terminal and run the following command to install it globally:

# Windows users: run as Administrator
# macOS/Linux users may need to prepend sudo
npm install -g @openai/codex@latest

After installation, verify it succeeded with the codex --version command.

Step 3: Configure BeeRoute

CodeX configuration consists of two files: config.toml and auth.json.

  1. Get an API key:
    • Visit the BeeRoute console.
    • Select the CodeX dedicated group.
    • Create a new token.
    • Copy the generated key.
  2. Create the config files:
    • In your user home directory, create a folder named .codex.
      • Windows: %USERPROFILE%\.codex
      • macOS/Linux: ~/.codex
    • Inside that folder, create the following two files:

config.toml

model_provider = "beeroute"
model = "gpt-6.2-sol"
model_reasoning_effort = "high"
network_access = "enabled"
disable_response_storage = true

[model_providers.beeroute]
name = "beeroute"
base_url = "https://beeroute.ai/v1"
wire_api = "responses"
requires_openai_auth = true

auth.json

{
  "OPENAI_API_KEY": "paste the key you obtained from beeroute.ai"
}

Windows one-click setup script: click to download, then double-click to run.

Linux / MacOS one-click setup script:

bash <(curl -fsSL https://beeroute.ai/static/cli/linux_codex_setup.sh)

⚠️ Important:
  • Make sure you selected the CodeX dedicated group when creating the token in the console.
  • The base_url in the config file must be https://beeroute.ai/v1.

Step 4: Launch and Use

  1. Open a terminal and cd into your project directory.
  2. Run the codex command to start.

🔧 Visual Studio Code (VSCode) Universal Setup (1-Minute Quick Version)

Works with VSCode, Cursor, Trae, and all similar editors — set up your AI coding environment in just 1 minute.

Cursor now restricts third-party API usage! Please install an extension instead.

Step 1: Install an Extension

  • Open VSCode (same for Cursor and Trae) → Extensions Marketplace (Ctrl+Shift+X)
  • Search for and install any of the following extensions:
    • Claude Code
    • Codex – OpenAI

Step 2: Run the One-Click Setup Script (Recommended)

Claude Code

Windows one-click setup:

Click to download claude_setup.bat, then double-click to run

Linux / macOS one-click setup:

bash <(curl -fsSL https://beeroute.ai/static/cli/linux_claude_setup.sh)

CodeX

Windows one-click setup:

Click to download codex_setup.bat, then double-click to run

Linux / macOS one-click setup:

bash <(curl -fsSL https://beeroute.ai/static/cli/linux_codex_setup.sh)

If you prefer not to use the script, you can enter the API settings manually (optional)

Open the VSCode settings JSON:

  • Ctrl+Shift+P → type “Preferences: Open Settings (JSON)”

Fill in the fields for your extension, for example:

{
  "chatgpt.apiBase": "https://beeroute.ai/v1",
  "chatgpt.config": {
    "preferred_auth_method": "apikey"
  }
}
Tips:
  • Create the key in the BeeRoute console (using the dedicated group for the corresponding tool)
  • The script completes the configuration automatically — no need to edit JSON by hand

❓ FAQ

Q1: Stuck on the login page after installing Claude Code?

Claude Code 2.0.65+ enforces a mandatory login check

Windows one-click setup:

Download skip_claude_login.bat and double-click to run it

Linux / macOS one-click setup:

bash <(curl -fsSL https://beeroute.ai/static/cli/skip_claude_login.sh)

If the one-click script fails, configure manually by opening the config file

Windows: %USERPROFILE%\.claude.json

Linux/macOS: ~/.claude.json

Add "hasCompletedOnboarding": true at the end Do not copy the example below to replace your entire config

{
  "installMethod": "unknown",
  "autoUpdates": true,
  "firstStartTime": "2025-07-14T06:11:03.877Z",
  "userID": "f5afdd05117c901a4a5a0761d08230bfcbb76f9fd380ff7bc144cc12c52e55aa",
  "projects": {
    "/home/nassi": {
      "allowedTools": [],
      "history": [],
      "mcpContextUris": [],
      "mcpServers": {},
      "enabledMcpjsonServers": [],
      "disabledMcpjsonServers": [],
      "hasTrustDialogAccepted": false,
      "projectOnboardingSeenCount": 0,
      "hasClaudeMdExternalIncludesApproved": false,
      "hasClaudeMdExternalIncludesWarningShown": false
    }
  },  //add a comma here, make sure it is an ASCII comma
  "hasCompletedOnboarding": true  // add the new field here, mind the position
}

Q2: Getting a 400 error "ValidationException: invalid beta flag" when using the API in Claude Code?

Open the config file

Windows: %USERPROFILE%\.claude\settings.json

Linux/macOS: ~/.claude/settings.json

Add the environment variable "CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS": "1" as shown below:
{
  "env": {
    "ANTHROPIC_AUTH_TOKEN": "sk-xxx",
    "ANTHROPIC_BASE_URL": "https://beeroute.ai",
    "CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS": "1",
    "CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS": "1"
  }
}

Q3: Claude Code configured but not responding?

1. First, make sure your platform account has sufficient balance

2. Check whether your token key has model restrictions set, and remove them

3. Turn off your VPN/proxy and test over a mobile data network

3. Open the config file

Windows: %USERPROFILE%\.claude\settings.json

Linux/macOS: ~/.claude/settings.json

Make sure the config file is clean and matches the example below; replace sk-xxx with your own API key

{
  "env": {
    "ANTHROPIC_AUTH_TOKEN": "sk-xxx",
    "ANTHROPIC_BASE_URL": "https://beeroute.ai",
    "CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS": "1",
    "CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS": "1"
  }
}

Q4: How do I specify a model in Claude Code?

Type /model in the CLI prompt to pick a specific model

Q5: How do I use non-Claude models in Claude Code?

Windows: %USERPROFILE%\.claude\settings.json

Linux/macOS: ~/.claude/settings.json

Use the configuration below as a reference and replace values as needed.

{
  "env": {
    "ANTHROPIC_AUTH_TOKEN": "sk-xxx",
    "ANTHROPIC_BASE_URL": "https://beeroute.ai",
    "ANTHROPIC_MODEL": "deepseek-flash",
    "ANTHROPIC_DEFAULT_OPUS_MODEL": "deepseek-flash",
    "ANTHROPIC_DEFAULT_SONNET_MODEL": "deepseek-flash",
    "ANTHROPIC_DEFAULT_HAIKU_MODEL": "deepseek-flash"
  }
}

When using non-Claude models, choose the default group for your token (the ClaudeCode group only includes Claude models).

Q6: Claude Code configuration conflicts?

If environment variables conflict on Windows, run the following two commands in PowerShell:

[Environment]::SetEnvironmentVariable("ANTHROPIC_BASE_URL", "https://beeroute.ai", "User")
[Environment]::SetEnvironmentVariable("ANTHROPIC_AUTH_TOKEN", "sk-xxx", "User")

Replace sk-xxx with your own API key

Q7: Why do I need to select a dedicated group?

A: Different tools (Claude Code, CodeX) call the API in different ways and have different parameter requirements. BeeRoute provides a specially optimized group for each tool to ensure the best compatibility and performance. Using the wrong group may cause connection failures or unexpected behavior.

Q8: How do I check my API usage?

A: Log in to the BeeRoute Console; the dashboard shows detailed usage statistics and billing information.

Q9: What should I do if I can't connect after configuring?

A: Please check the following:

  • Make sure the API key was copied correctly (no extra spaces)
  • Make sure you selected the correct dedicated group
  • Make sure the config file path is correct
  • Check that your network connection is working
  • Check the tool's log output for error messages

Q10: Which models are supported?

A: BeeRoute supports a variety of mainstream AI models:

  • Claude series: claude-opus-5-5, claude-sonnet-5-5, claude-haiku-5-5
  • GPT series: gpt-6.2-sol
  • Gemini series: gemini-4-neon, gemini-4-hydrogen

Q10: How is pricing calculated?

A: BeeRoute uses pay-as-you-go billing. For details, see the pricing page. We offer better prices than the official rates while maintaining service quality.


💬 Get Support

If you run into any issues while using the service, contact us at the email below for support:

📧 Email Support

service@beeroute.ai

Online support on weekdays, 9:00-22:00

↑