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 --versionOption 2: Install per project
# Run in your project root
npm install --save-dev @anthropic-ai/claude-code
# Use npx
npx claude --versionCommon 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:$PATH2. Network issues
# Use npm mirror
npm config set registry https://registry.npmmirror.com
npm install -g @anthropic-ai/claude-codePart 2: Meteor API setup
Register and authenticate
Step 1: Visit the site
Open: https://routin.ai
Step 2: Sign in with Gitee
- Click “Gitee 登录” at bottom right
- Authorize your Gitee account
- After login, a Meteor account is created automatically
Step 3: Top up your account
- After login, click “Wallet/Personal”
- Choose “Top up balance”
Get an API key
Step 1: Create the key
- Click “API 密钥” in the nav
- Select “Create new API Key”
- Configure the token with unlimited quota and no expiry
- Note: leave group settings empty for now
- Submit and copy the generated token
Step 2: Configure the key
Linux / macOS
# Edit settings
nano ~/.claude/settings.jsonContent:
{
"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 ~/.claudeEdit the config file
Option 1: nano (Linux/macOS)
nano ~/.claude/settings.jsonOption 2: VS Code
code ~/.claude/settings.jsonBase 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
claudeIn interactive mode, try:
Hello, please introduce yourselfFAQ
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:
- Install Git for Windows: https://gitforwindows.org/
- 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:
- Create
~/.claude/config.json - Add:
{
"primaryApiKey": "Meteor"
}Get Help
- Web: https://routin.ai
- API docs: https://api.routin.ai/scalar