Skip to main content

Claude Code Deployment

When Claude Code connects to MuskAI, it is necessary to write the API address and Key into the configuration method supported by the client. Client configuration items may be slightly different in different versions.

Environment variable method​

export ANTHROPIC_AUTH_TOKEN="Your MuskAI API Key"
export ANTHROPIC_BASE_URL="Base URL copied from the official website User Center - [API Key] page"

verify​

After configuration, initiate a simple conversation. If authentication failure is returned, check whether the Key has been copied completely; if a model error is returned, check whether the client's default model is available on the console.