Connect to Messages
The HTTP endpoint is POST https://api.anyllm.space/v1/messages. A client that appends /v1/messages needs the origin https://api.anyllm.space as its base. An extra /v1 produces an invalid path. Pass your project key as x-api-key or a bearer token. See the Messages example first.
Verify the features you need
Claude Code may require capabilities beyond simple text messages, including streaming, tool calls and token counting. A model in the catalog does not establish support for all of them. Use a dedicated test project. Record the request ID and endpoint if a call fails before trying another client. See Anthropic's gateway documentation.
Tested version
On 3 December 2026 Claude Code 2.1.191 sent POST /v1/messages to a local gateway instance with --bare, --tools "" and --model demo-text. The gateway rejected messages.0.content.1.cache_control with HTTP 400 unsupported_parameter. This configuration did not complete a CLI chat. A basic HTTP Messages request uses a smaller payload.