- API key — usage-based billing के साथ सीधे Anthropic API access (
anthropic/*models) - Claude CLI — उसी host पर मौजूदा Claude Code login का पुनः उपयोग
शुरू करना
- API key
- Claude CLI
इसके लिए सर्वोत्तम: standard API access और usage-based billing.
अपनी API key प्राप्त करें
Anthropic Console में API key बनाएं।
Config example
Thinking defaults (Claude Fable 5, 4.8, और 4.6)
anthropic/claude-fable-5 हमेशा adaptive thinking का उपयोग करता है और default रूप से high
effort पर रहता है। क्योंकि Anthropic इस model के लिए thinking को disable करने की अनुमति नहीं देता,
/think off और /think minimal low effort का उपयोग करते हैं। OpenClaw Fable 5 requests के लिए custom
temperature values भी omit करता है।
Claude Opus 4.8 OpenClaw में default रूप से thinking off रखता है। जब आप /think high|xhigh|max से adaptive thinking को स्पष्ट रूप से enable करते हैं, OpenClaw Anthropic के Opus 4.8 effort values भेजता है; Claude 4.6 models default रूप से adaptive होते हैं।
Per-message override /think:<level> से करें या model params में:
संबंधित Anthropic docs:
Prompt caching
OpenClaw API-key auth के लिए Anthropic की prompt caching feature का समर्थन करता है।| Value | Cache duration | Description |
|---|---|---|
"short" (default) | 5 minutes | API-key auth के लिए automatically applied |
"long" | 1 hour | Extended cache |
"none" | No caching | prompt caching disable करें |
Per-agent cache overrides
Per-agent cache overrides
model-level params को baseline के रूप में उपयोग करें, फिर specific agents को Config merge order:
agents.list[].params के जरिए override करें:agents.defaults.models["provider/model"].paramsagents.list[].params(matchingid, key द्वारा overrides)
Bedrock Claude notes
Bedrock Claude notes
- Bedrock पर Anthropic Claude models (
amazon-bedrock/*anthropic.claude*) configured होने परcacheRetentionpass-through accept करते हैं। - Non-Anthropic Bedrock models runtime पर
cacheRetention: "none"पर forced होते हैं। - API-key smart defaults Claude-on-Bedrock refs के लिए भी
cacheRetention: "short"seed करते हैं, जब explicit value set नहीं है।
Advanced configuration
Fast mode
Fast mode
OpenClaw का shared
/fast toggle direct Anthropic traffic (API-key और OAuth to api.anthropic.com) का समर्थन करता है।| Command | Maps to |
|---|---|
/fast on | service_tier: "auto" |
/fast off | service_tier: "standard_only" |
- केवल direct
api.anthropic.comrequests के लिए injected। Proxy routesservice_tierको untouched छोड़ते हैं। - Explicit
serviceTierयाservice_tierparams/fastको override करते हैं जब दोनों set हों। - Priority Tier capacity के बिना accounts पर,
service_tier: "auto"standardपर resolve हो सकता है।
Media understanding (image and PDF)
Media understanding (image and PDF)
bundled Anthropic plugin image और PDF understanding register करता है। OpenClaw
configured Anthropic auth से media capabilities को auto-resolve करता है — कोई
अतिरिक्त config आवश्यक नहीं है।
जब किसी conversation में image या PDF attached होती है, OpenClaw automatically
उसे Anthropic media understanding provider के माध्यम से route करता है।
| Property | Value |
|---|---|
| Default model | claude-opus-4-8 |
| Supported input | Images, PDF documents |
1M context window
1M context window
Anthropic की 1M context window GA-capable Claude 4.x models पर उपलब्ध है,
जैसे Opus 4.8, Opus 4.7, Opus 4.6, और Sonnet 4.6। OpenClaw उन models को
automatically 1M पर size करता है:पुराने configs
params.context1m: true रख सकते हैं, लेकिन OpenClaw अब
retired context-1m-2025-08-07 beta header नहीं भेजता। उस value वाली पुरानी anthropicBeta config
entries request header resolution के दौरान ignore की जाती हैं और
unsupported पुराने Claude models अपने normal context window पर रहते हैं।params.context1m: true Claude CLI backend
(claude-cli/*) पर भी eligible GA-capable Opus और Sonnet models के लिए apply होता है, जिससे
उन CLI sessions के लिए runtime context window direct-API behavior से match करने के लिए preserve रहता है।Claude Opus 4.8 1M संदर्भ
Claude Opus 4.8 1M संदर्भ
anthropic/claude-opus-4-8 और इसके claude-cli वैरिएंट में डिफ़ॉल्ट रूप से 1M संदर्भ
विंडो होती है — params.context1m: true की आवश्यकता नहीं।समस्या निवारण
401 त्रुटियाँ / टोकन अचानक अमान्य
401 त्रुटियाँ / टोकन अचानक अमान्य
Anthropic टोकन प्रमाणीकरण समाप्त हो जाता है और निरस्त किया जा सकता है। नए सेटअप के लिए, इसके बजाय Anthropic API कुंजी का उपयोग करें।
प्रदाता "anthropic" के लिए कोई API कुंजी नहीं मिली
प्रदाता "anthropic" के लिए कोई API कुंजी नहीं मिली
Anthropic प्रमाणीकरण प्रति एजेंट होता है — नए एजेंट मुख्य एजेंट की कुंजियाँ इनहेरिट नहीं करते। उस एजेंट के लिए ऑनबोर्डिंग फिर से चलाएँ (या Gateway होस्ट पर API कुंजी कॉन्फ़िगर करें), फिर
openclaw models status से सत्यापित करें।प्रोफ़ाइल "anthropic:default" के लिए कोई क्रेडेंशियल नहीं मिले
प्रोफ़ाइल "anthropic:default" के लिए कोई क्रेडेंशियल नहीं मिले
कौन-सी प्रमाणीकरण प्रोफ़ाइल सक्रिय है, यह देखने के लिए
openclaw models status चलाएँ। ऑनबोर्डिंग फिर से चलाएँ, या उस प्रोफ़ाइल पथ के लिए API कुंजी कॉन्फ़िगर करें।कोई उपलब्ध प्रमाणीकरण प्रोफ़ाइल नहीं (सभी कूलडाउन में)
कोई उपलब्ध प्रमाणीकरण प्रोफ़ाइल नहीं (सभी कूलडाउन में)
auth.unusableProfiles के लिए openclaw models status --json देखें। Anthropic दर-सीमा कूलडाउन मॉडल-स्कोप्ड हो सकते हैं, इसलिए कोई संबद्ध Anthropic मॉडल अभी भी उपयोग योग्य हो सकता है। कोई अन्य Anthropic प्रोफ़ाइल जोड़ें या कूलडाउन की प्रतीक्षा करें।अधिक सहायता: समस्या निवारण और अक्सर पूछे जाने वाले प्रश्न।
संबंधित
मॉडल चयन
प्रदाता, मॉडल संदर्भ और फ़ेलओवर व्यवहार चुनना।
CLI बैकएंड
Claude CLI बैकएंड सेटअप और रनटाइम विवरण।
प्रॉम्प्ट कैशिंग
प्रदाताओं में प्रॉम्प्ट कैशिंग कैसे काम करती है।
OAuth और प्रमाणीकरण
प्रमाणीकरण विवरण और क्रेडेंशियल पुन: उपयोग नियम।