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.

1

Get your API key

Contact your administrator to receive your API key. Your key will look like:

sk-growmoon-xxxxxxxxxxxxxxxxxxxx
2

Configure 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.

3

Verify the setup

Run Claude Code and verify it's using your custom endpoint:

claude --model opus

Available Models

The following Claude model aliases are available. Use them just like you would use the official Claude API.

claude-opus-4-6Most capable model
claude-sonnet-4-6Balanced performance
claude-haiku-4-5Fast and affordable
opusShort alias for opus
sonnetShort alias for sonnet
haikuShort alias for haiku

Troubleshooting

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.