Docs

Claude Code

Claude Code reads its endpoint and key from environment variables. Set them once in your shell profile.

1. Set the environment variables

# ~/.zshrc or ~/.bashrc
export ANTHROPIC_BASE_URL="https://api.bgyhub.com"
export ANTHROPIC_AUTH_TOKEN="YOUR_API_KEY"
export ANTHROPIC_MODEL="claude-sonnet-5"

2. Start Claude Code

source ~/.zshrc
claude

3. Verify

Run a short prompt. If the request succeeds, your usage appears in the Customer Portal within a minute.

Every request must include your API key as a Bearer token. Keep your key secret. Never commit it to source control or ship it in client-side code.

Back to docs