Custom Models

YouClaw currently supports Claude-format custom model APIs only. You can use the official Anthropic endpoint directly, or any proxy or gateway that is compatible with the Claude Messages API.

Supported Scope

  • Claude-format APIs only
  • Use a Claude model ID such as claude-sonnet-4-6
  • OpenAI Chat Completions, Responses, and Gemini-style APIs are not supported yet

How to Fill Base URL

Fill in the Base URL prefix only. Do not include /v1/messages.

Correct examples:

  • https://api.anthropic.com
  • https://your-proxy.example.com

Incorrect examples:

  • https://api.anthropic.com/v1/messages
  • https://your-proxy.example.com/v1/messages

Configure It in YouClaw

  1. Open YouClaw Settings > Models
  2. Click Add Custom Model
  3. Enter a display name
  4. Enter a model ID such as claude-sonnet-4-6
  5. Enter your API Key
  6. Enter the Base URL prefix; if you use Anthropic directly, you can also leave it empty
  7. Save it and set it as the default model

Why /v1/messages Must Not Be Included

YouClaw automatically appends the Claude request path. If /v1/messages is already included in the Base URL, the final request URL becomes duplicated and the call will fail.

FAQ

Can I use OpenAI-compatible APIs?

Not at the moment. Custom models support Claude-format APIs only.

Can I use a proxy service?

Yes, as long as the service is compatible with the Claude Messages API and follows Anthropic's request format.