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.
LiteLLM is an open-source LLM gateway that provides a unified API to 100+ model providers. Route OpenClaw through LiteLLM to get centralized cost tracking, logging, and the flexibility to switch backends without changing your OpenClaw config.
text<Steps> <Step title="Run onboarding"> ```bash} openclaw onboard --auth-choice litellm-api-key ``` For non-interactive setup against a remote proxy, pass the proxy URL explicitly: ```bash} openclaw onboard --non-interactive --auth-choice litellm-api-key --litellm-api-key "$LITELLM_API_KEY" --custom-base-url "https://litellm.example/v1" ``` </Step> </Steps>
text<Steps> <Step title="Start LiteLLM Proxy"> ```bash} pip install 'litellm[proxy]' litellm --model claude-opus-4-6 ``` </Step> <Step title="Point OpenClaw to LiteLLM"> ```bash} export LITELLM_API_KEY="your-litellm-key" openclaw ``` That's it. OpenClaw now routes through LiteLLM. </Step> </Steps>
bashexport LITELLM_API_KEY="sk-litellm-key"
json5{ models: { providers: { litellm: { baseUrl: "http://localhost:4000", apiKey: "${LITELLM_API_KEY}", api: "openai-completions", models: [ { id: "claude-opus-4-6", name: "Claude Opus 4.6", reasoning: true, input: ["text", "image"], contextWindow: 200000, maxTokens: 64000, }, { id: "gpt-4o", name: "GPT-4o", reasoning: false, input: ["text", "image"], contextWindow: 128000, maxTokens: 8192, }, ], }, }, }, agents: { defaults: { model: { primary: "litellm/claude-opus-4-6" }, }, }, }
LiteLLM can also back the
image_generate/images/generations/images/editsagents.defaults.imageGenerationModeljson5{ models: { providers: { litellm: { baseUrl: "http://localhost:4000", apiKey: "${LITELLM_API_KEY}", }, }, }, agents: { defaults: { imageGenerationModel: { primary: "litellm/gpt-image-2", timeoutMs: 180_000, }, }, }, }
Loopback LiteLLM URLs such as
http://localhost:4000models.providers.litellm.request.allowPrivateNetwork: true© 2024 TaskFlow Mirror
Powered by TaskFlow Sync Engine