Meteor AI
Developer Tools

Use Claude Code

Claude Code integration guide - call AI models through the Meteor API platform

Overview

This guide walks you through installing and configuring Claude Code locally so it can call AI models via the Meteor API platform. Whether you are an experienced developer or a beginner, you can get started quickly.

Requirements

  • OS: macOS 10.15+ / Ubuntu 18.04+ / Windows 10+
  • Node.js: 18.0.0+
  • npm: 8.0.0+
  • Git: 2.20.0+

Part 1: Install Claude Code

Option 1: Install globally with npm

# Check Node.js version
node --version

# Install Claude Code globally
npm install -g @anthropic-ai/claude-code

# Verify installation
claude --version

Option 2: Install per project

# Run in your project root
npm install --save-dev @anthropic-ai/claude-code

# Use npx
npx claude --version

Common install issues

1. Permission issues

# macOS/Linux with sudo
sudo npm install -g @anthropic-ai/claude-code

# Or change npm default prefix
npm config set prefix ~/.npm-global
export PATH=~/.npm-global/bin:$PATH

2. Network issues

# Use npm mirror
npm config set registry https://registry.npmmirror.com
npm install -g @anthropic-ai/claude-code

Part 2: Meteor API setup

Register and authenticate

Step 1: Visit the site

Open: https://routin.ai

Step 2: Sign in with Gitee

  1. Click “Gitee 登录” at bottom right
  2. Authorize your Gitee account
  3. After login, a Meteor account is created automatically

Step 3: Top up your account

  1. After login, click “Wallet/Personal”
  2. Choose “Top up balance”

Get an API key

Step 1: Create the key

  1. Click “API 密钥” in the nav
  2. Select “Create new API Key”
  3. Configure the token with unlimited quota and no expiry
    • Note: leave group settings empty for now
  4. Submit and copy the generated token

Step 2: Configure the key

Linux / macOS

# Edit settings
nano ~/.claude/settings.json

Content:

{
  "env": {
    "ANTHROPIC_AUTH_TOKEN": "sk-your-api-key-here",
    "ANTHROPIC_BASE_URL": "https://api.routin.ai/",
    "ANTHROPIC_MODEL": "claude-sonnet-4-5-20250929",
    "ANTHROPIC_SMALL_FAST_MODEL": "claude-sonnet-4-5-20250929",
    "ANTHROPIC_DEFAULT_SONNET_MODEL": "claude-sonnet-4-5-20250929",
    "ANTHROPIC_DEFAULT_OPUS_MODEL": "claude-sonnet-4-5-20250929",
    "ANTHROPIC_DEFAULT_HAIKU_MODEL": "claude-sonnet-4-5-20250929"
  },
  "alwaysThinkingEnabled": true
}

Windows

# Go to config directory
cd ~/.claude/

# Open with VS Code
code .

Create settings.json with:

{
  "env": {
    "ANTHROPIC_AUTH_TOKEN": "sk-your-api-key-here",
    "ANTHROPIC_BASE_URL": "https://api.routin.ai/",
    "ANTHROPIC_MODEL": "claude-sonnet-4-5-20250929",
    "ANTHROPIC_SMALL_FAST_MODEL": "claude-sonnet-4-5-20250929",
    "ANTHROPIC_DEFAULT_SONNET_MODEL": "claude-sonnet-4-5-20250929",
    "ANTHROPIC_DEFAULT_OPUS_MODEL": "claude-sonnet-4-5-20250929",
    "ANTHROPIC_DEFAULT_HAIKU_MODEL": "claude-sonnet-4-5-20250929"
  },
  "alwaysThinkingEnabled": true
}

Part 3: Claude Code configuration

Create the config directory

# Create Claude config dir
mkdir -p ~/.claude

# Set permissions (Linux/macOS)
chmod 700 ~/.claude

Edit the config file

Option 1: nano (Linux/macOS)

nano ~/.claude/settings.json

Option 2: VS Code

code ~/.claude/settings.json

Base config template

{
  "env": {
    "ANTHROPIC_AUTH_TOKEN": "sk-your-api-key-here",
    "ANTHROPIC_BASE_URL": "https://api.routin.ai/",
    "ANTHROPIC_MODEL": "claude-sonnet-4-5-20250929",
    "ANTHROPIC_SMALL_FAST_MODEL": "claude-sonnet-4-5-20250929",
    "ANTHROPIC_DEFAULT_SONNET_MODEL": "claude-sonnet-4-5-20250929",
    "ANTHROPIC_DEFAULT_OPUS_MODEL": "claude-sonnet-4-5-20250929",
    "ANTHROPIC_DEFAULT_HAIKU_MODEL": "claude-sonnet-4-5-20250929"
  },
  "alwaysThinkingEnabled": true
}

Part 4: Verify and test

Connectivity test

# Basic check
claude --version

# Test API call
claude

In interactive mode, try:

Hello, please introduce yourself

FAQ

Windows error: shell environment

If you see:

Error: No suitable shell found. Claude CLI requires a Posix shell environment.
Please ensure you have a valid shell installed and the SHELL environment variable set.

Fix:

  1. Install Git for Windows: https://gitforwindows.org/
  2. Set the env var CLAUDE_CODE_GIT_BASH_PATH:
    CLAUDE_CODE_GIT_BASH_PATH="C:\\Program Files\\Git\\bin\\bash.exe"

Plugin forces login

Fix:

  1. Create ~/.claude/config.json
  2. Add:
{
  "primaryApiKey": "Meteor"
}

Get Help