Caricamento in corso...
Caricamento in corso...
Last synced: Today, 22:00
Technical reference for the OpenClaw framework. Real-time synchronization with the official documentation engine.
Use this file to discover all available pages before exploring further.
Cloudflare AI Gateway sits in front of provider APIs and lets you add analytics, caching, and controls. For Anthropic, OpenClaw uses the Anthropic Messages API through your Gateway endpoint.
| Property | Value |
|---|---|
| Provider | text cloudflare-ai-gateway |
| Base URL | text https://gateway.ai.cloudflare.com/v1/<account_id>/<gateway_id>/anthropic |
| Default model | text cloudflare-ai-gateway/claude-sonnet-4-6 |
| API key | text CLOUDFLARE_AI_GATEWAY_API_KEY |
When thinking is enabled for Anthropic Messages models, OpenClaw strips trailing assistant prefill turns before sending the payload through Cloudflare AI Gateway. Anthropic rejects response prefilling with extended thinking, while ordinary non-thinking prefill remains available.
text```bash} openclaw onboard --auth-choice cloudflare-ai-gateway-api-key ``` This prompts for your account ID, gateway ID, and API key.
text```json5} { agents: { defaults: { model: { primary: "cloudflare-ai-gateway/claude-sonnet-4-6" }, }, }, } ```
For scripted or CI setups, pass all values on the command line:
bashopenclaw onboard --non-interactive \ --mode local \ --auth-choice cloudflare-ai-gateway-api-key \ --cloudflare-ai-gateway-account-id "your-account-id" \ --cloudflare-ai-gateway-gateway-id "your-gateway-id" \ --cloudflare-ai-gateway-api-key "$CLOUDFLARE_AI_GATEWAY_API_KEY"
© 2024 TaskFlow Mirror
Powered by TaskFlow Sync Engine