Yunhai AI platform · One API, multiple modelsView offers
Yunhai
DocsConsoleEN / 中Sign in
DocumentationClaude Code

Claude Code

Connect a configured Claude upstream through the Anthropic-compatible endpoint.

PowerShell

powershell
$env:ANTHROPIC_BASE_URL="http://localhost:3187"
$env:ANTHROPIC_AUTH_TOKEN="YOUR_API_KEY"
$env:ANTHROPIC_MODEL="YOUR_CLAUDE_MODEL_ID"
claude

The base URL does not include a trailing /v1; the client requests /v1/messages. Your key group must have an available Anthropic upstream.

macOS / Linux

bash
export ANTHROPIC_BASE_URL="http://localhost:3187"
export ANTHROPIC_AUTH_TOKEN="YOUR_API_KEY"
export ANTHROPIC_MODEL="YOUR_CLAUDE_MODEL_ID"
claude

Troubleshooting

If you already use another provider or login environment, confirm the launched client uses the intended base URL and authentication. Choose a model ID from the actual group, not just a public catalog name.