Skip to main content
Claude Code and Claude CLI-style tools usually use the Anthropic Messages protocol. To connect them to Moxus AI, use the Anthropic-compatible endpoint and a compatible Claude-style model.

Values

FieldValue
API Keysk-your-key
Anthropic Base URLhttps://moxus.ai
ModelA Claude or Anthropic-compatible model from Models and pricing

Environment variables

If your tool supports environment variables, set:
export ANTHROPIC_API_KEY="sk-your-key"
export ANTHROPIC_BASE_URL="https://moxus.ai"
Then start Claude Code or the corresponding CLI.
Custom Base URL support depends on the Claude Code version. If your tool has no Base URL setting, it may not be able to connect directly to Moxus AI.

Request format

Anthropic-compatible requests usually use /v1/messages and the x-api-key header. Test with cURL first:
curl https://moxus.ai/v1/messages \
  -H "x-api-key: sk-your-key" \
  -H "anthropic-version: 2023-06-01" \
  -H "content-type: application/json" \
  -d '{
    "model": "claude-3-5-sonnet",
    "max_tokens": 512,
    "messages": [
      {"role": "user", "content": "Introduce Moxus AI in one sentence"}
    ]
  }'

When to use this path

  • Your project already uses Claude Messages prompts or tool calls.
  • You want Claude-style long-context code analysis.
  • Your team already has Claude CLI workflows and only needs to replace endpoint and key.

Troubleshooting

Usually no. Claude Code-style tools use Anthropic protocol, so use https://moxus.ai, not https://moxus.ai/v1.
Use the exact model name shown in Models and pricing. If the model does not support Anthropic Messages, use an OpenAI-compatible client or choose another model.
The current tool version may only support Anthropic’s official service. Use Continue, Cursor, the OpenAI SDK, or a proxy you maintain.

Next steps