Documentation
Set up Claude Code
Point Claude Code to your GrowMoon base URL, paste your API key, and use the same Claude-style model names you already know.
Get your API key
Contact your administrator to receive your API key. Your key will look like:
sk-growmoon-xxxxxxxxxxxxxxxxxxxxConfigure Claude Code
Export these variables in the same terminal where you launch Claude Code:
export ANTHROPIC_BASE_URL=https://claudeapi.growmoon.top export ANTHROPIC_API_KEY=sk-growmoon-xxxxxxxxxxxxxxxxxxxx export ANTHROPIC_AUTH_TOKEN=$ANTHROPIC_API_KEY export ANTHROPIC_MODEL=opus export ANTHROPIC_DEFAULT_OPUS_MODEL=opus export ANTHROPIC_DEFAULT_SONNET_MODEL=sonnet export ANTHROPIC_DEFAULT_HAIKU_MODEL=haiku claude --model opus
Note: Replace the base URL with your actual domain in production, or use http://127.0.0.1:3000 for localhost testing.
Verify the setup
Run Claude Code and verify it's using your custom endpoint:
claude --model opusAvailable Models
The following Claude model aliases are available. Use them just like you would use the official Claude API.
claude-opus-4-6Most capable modelclaude-sonnet-4-6Balanced performanceclaude-haiku-4-5Fast and affordableopusShort alias for opussonnetShort alias for sonnethaikuShort alias for haikuTroubleshooting
Getting 'Invalid API key' error
Double-check that your API key is correct. Keys start with 'sk-growmoon-' and are case-sensitive.
Getting 'Plan limit exceeded' error
You've reached your token limit for the current time window. Check /usage to see your consumption, or contact your administrator.
Model not found error
Make sure you're using one of the supported model aliases. Check the model list above.