SecretRef (env/file/exec-समर्थित संदर्भ) स्वीकार करते हैं।
दायरा:
- दायरे में: केवल उपयोगकर्ता द्वारा दिए गए वे क्रेडेंशियल, जिन्हें OpenClaw जारी या रोटेट नहीं करता।
- दायरे से बाहर: रनटाइम द्वारा जारी या रोटेट किए जाने वाले क्रेडेंशियल, OAuth रीफ़्रेश सामग्री और सत्र-जैसी कलाकृतियाँ।
docs/reference/secretref-user-supplied-credentials-matrix.json के विरुद्ध जाँची जाती हैं; प्रविष्टियों को हाथ से संपादित न करें।
समर्थित क्रेडेंशियल
openclaw.json लक्ष्य (secrets configure + secrets apply + secrets audit)
models.providers.*.apiKeymodels.providers.*.headers.*models.providers.*.request.auth.tokenmodels.providers.*.request.auth.valuemodels.providers.*.request.headers.*models.providers.*.request.proxy.tls.camodels.providers.*.request.proxy.tls.certmodels.providers.*.request.proxy.tls.keymodels.providers.*.request.proxy.tls.passphrasemodels.providers.*.request.tls.camodels.providers.*.request.tls.certmodels.providers.*.request.tls.keymodels.providers.*.request.tls.passphraseskills.entries.*.apiKeymemory.search.remote.apiKeyagents.entries.*.tts.providers.*.apiKeyagents.entries.*.memory.search.remote.apiKeytalk.providers.*.apiKeytalk.realtime.providers.*.apiKeytts.providers.*.apiKeyplugins.entries.acpx.config.mcpServers.*.env.*plugins.entries.brave.config.webSearch.apiKeyplugins.entries.codex.config.appServer.authTokenplugins.entries.codex.config.appServer.headers.*plugins.entries.exa.config.webSearch.apiKeyplugins.entries.firecrawl.config.webFetch.apiKeyplugins.entries.google-meet.config.realtime.providers.*.apiKeyplugins.entries.google.config.webSearch.apiKeyplugins.entries.xai.config.webSearch.apiKeyplugins.entries.moonshot.config.webSearch.apiKeyplugins.entries.perplexity.config.webSearch.apiKeyplugins.entries.firecrawl.config.webSearch.apiKeyplugins.entries.minimax.config.webSearch.apiKeyplugins.entries.tavily.config.webSearch.apiKeyplugins.entries.parallel.config.webSearch.apiKeyplugins.entries.voice-call.config.realtime.providers.*.apiKeyplugins.entries.voice-call.config.streaming.providers.*.apiKeyplugins.entries.voice-call.config.tts.providers.*.apiKeyplugins.entries.voice-call.config.twilio.authTokenplugins.entries.webhooks.config.routes.*.secretgateway.auth.passwordgateway.auth.tokengateway.remote.tokengateway.remote.passwordcron.webhookTokenchannels.telegram.botTokenchannels.telegram.webhookSecretchannels.telegram.accounts.*.botTokenchannels.telegram.accounts.*.webhookSecretchannels.slack.botTokenchannels.slack.appTokenchannels.slack.relay.authTokenchannels.slack.userTokenchannels.slack.signingSecretchannels.slack.accounts.*.botTokenchannels.slack.accounts.*.appTokenchannels.slack.accounts.*.relay.authTokenchannels.slack.accounts.*.userTokenchannels.slack.accounts.*.signingSecretchannels.sms.authTokenchannels.sms.accounts.*.authTokenchannels.clickclack.tokenchannels.clickclack.accounts.*.tokenchannels.discord.tokenchannels.discord.pluralkit.tokenchannels.discord.voice.tts.providers.*.apiKeychannels.discord.accounts.*.tokenchannels.discord.accounts.*.pluralkit.tokenchannels.discord.accounts.*.voice.tts.providers.*.apiKeychannels.irc.passwordchannels.irc.nickserv.passwordchannels.irc.accounts.*.passwordchannels.irc.accounts.*.nickserv.passwordchannels.feishu.appSecretchannels.feishu.encryptKeychannels.feishu.verificationTokenchannels.feishu.accounts.*.appSecretchannels.feishu.accounts.*.encryptKeychannels.feishu.accounts.*.verificationTokenchannels.qqbot.clientSecretchannels.qqbot.accounts.*.clientSecretchannels.msteams.appPasswordchannels.mattermost.botTokenchannels.mattermost.accounts.*.botTokenchannels.matrix.accessTokenchannels.matrix.passwordchannels.matrix.accounts.*.accessTokenchannels.matrix.accounts.*.passwordchannels.nextcloud-talk.botSecretchannels.nextcloud-talk.apiPasswordchannels.nextcloud-talk.accounts.*.botSecretchannels.nextcloud-talk.accounts.*.apiPasswordchannels.zalo.botTokenchannels.zalo.webhookSecretchannels.zalo.accounts.*.botTokenchannels.zalo.accounts.*.webhookSecretchannels.googlechat.serviceAccountसहोदरserviceAccountRefके माध्यम से (संगतता अपवाद)channels.googlechat.accounts.*.serviceAccountसहोदरserviceAccountRefके माध्यम से (संगतता अपवाद)
auth-profiles.json लक्ष्य (secrets configure + secrets apply + secrets audit)
profiles.*.keyRef(type: "api_key";auth.profiles.<id>.mode = "oauth"होने पर असमर्थित)profiles.*.tokenRef(type: "token";auth.profiles.<id>.mode = "oauth"होने पर असमर्थित)
- ऑथ-प्रोफ़ाइल योजना लक्ष्यों के लिए
agentIdआवश्यक है; योजना प्रविष्टियाँprofiles.*.key/profiles.*.tokenको लक्षित करती हैं और सहोदर संदर्भ (keyRef/tokenRef) लिखती हैं। ऑथ-प्रोफ़ाइल संदर्भ रनटाइम रिज़ॉल्यूशन और ऑडिट कवरेज में शामिल हैं। openclaw.jsonमें, SecretRefs को{"source":"env","provider":"default","id":"DISCORD_BOT_TOKEN"}जैसी संरचित ऑब्जेक्ट का उपयोग करना आवश्यक है। पुरानेsecretref-env:<ENV_VAR>मार्कर स्ट्रिंग SecretRef क्रेडेंशियल पथों पर अस्वीकार कर दिए जाते हैं; मान्य मार्करों को माइग्रेट करने के लिएopenclaw doctor --fixचलाएँ।- OAuth नीति सुरक्षा: उस प्रोफ़ाइल के लिए
auth.profiles.<id>.mode = "oauth"को SecretRef इनपुट के साथ संयोजित नहीं किया जा सकता। इस नीति का उल्लंघन होने पर स्टार्टअप/रीलोड और ऑथ-प्रोफ़ाइल रिज़ॉल्यूशन तुरंत विफल हो जाते हैं। - SecretRef-प्रबंधित मॉडल प्रदाताओं के लिए, जनरेट की गई
agents/*/agent/models.jsonप्रविष्टियाँapiKey/हेडर सतहों हेतु गैर-सीक्रेट मार्कर (रिज़ॉल्व किए गए सीक्रेट मान नहीं) बनाए रखती हैं। मार्कर स्थायित्व स्रोत-प्रामाणिक है: OpenClaw मार्करों को सक्रिय स्रोत कॉन्फ़िगरेशन स्नैपशॉट (रिज़ॉल्यूशन से पहले) से लिखता है, न कि रिज़ॉल्व किए गए रनटाइम सीक्रेट मानों से। - Gateway का कोल्ड स्टार्टअप मैप किए गए, गैर-Gateway स्वामियों के लिए पुनः प्रयास योग्य रिज़ॉल्यूशन विफलताओं को अलग कर सकता है। वर्तमान मैप की गई श्रेणियों में मॉडल प्रदाता और स्किल, मीडिया/TTS/cron प्रदाता, पात्र ऑथ प्रोफ़ाइल, प्रति-एजेंट मेमोरी, सैंडबॉक्स SSH, चैनल खाते और मैनिफ़ेस्ट में घोषित Plugin रूट शामिल हैं। स्टार्टअप प्रत्येक विफल स्वामी के स्पष्ट संदर्भों को रनटाइम स्नैपशॉट में रखता है, स्थिति और डॉक्टर के माध्यम से स्वामी की रिपोर्ट करता है, और निम्न-प्राथमिकता वाले क्रेडेंशियल आज़माए बिना उस स्वामी के अनुरोधों को अस्वीकार करता है। रीलोड और कॉन्फ़िगरेशन-लेखन प्रीफ़्लाइट समान स्वामी-सजग नीति का उपयोग करते हैं: स्वस्थ स्वामी रीफ़्रेश होते हैं; कोई पात्र विफल स्वामी केवल तभी पुरानी स्थिति में रहता है, जब उसकी संदर्भ पहचानें, प्रदाता परिभाषाएँ और पूर्ण गैर-सीक्रेट स्वामी अनुबंध अपरिवर्तित हों; नई या परिवर्तित विफलता कोल्ड हो जाती है। Gateway इनग्रेस प्रमाणीकरण, संरचनात्मक रूप से अमान्य संदर्भ या मान, विफलता पर बंद होने वाले स्वामी और वर्तमान में मैप न किए गए स्वामी सख्त बने रहते हैं।
- वेब खोज के लिए: स्पष्ट प्रदाता मोड (
tools.web.search.providerसेट) में केवल चयनित प्रदाता कुंजी सक्रिय होती है। स्वचालित मोड (tools.web.search.providerअनसेट) में केवल प्राथमिकता के अनुसार रिज़ॉल्व होने वाली पहली प्रदाता कुंजी सक्रिय होती है, और अचयनित प्रदाता संदर्भों को चुने जाने तक निष्क्रिय माना जाता है। प्रदाता क्रेडेंशियलplugins.entries.<plugin>.config.webSearch.*का उपयोग करते हैं। - Slack
identity: "user", Socket Mode के लिएchannels.slack.appTokenया HTTP मोड के लिएchannels.slack.signingSecretके साथchannels.slack.userTokenका उपयोग करता है। यही युग्मनchannels.slack.accounts.*के अंतर्गत भी लागू होता है; इस पहचान के लिए किसी बॉट टोकन की आवश्यकता नहीं है।
असमर्थित क्रेडेंशियल
ये क्रेडेंशियल जारी किए जाने वाले, रोटेट किए जाने वाले, सत्र-धारी या OAuth-स्थायी श्रेणियों के हैं, जो केवल-पठन बाहरी SecretRef रिज़ॉल्यूशन के अनुकूल नहीं हैं:hooks.tokenhooks.gmail.pushTokenhooks.mappings[].sessionKeyauth-profiles.oauth.*channels.discord.threadBindings.webhookTokenchannels.discord.accounts.*.threadBindings.webhookTokenchannels.whatsapp.creds.jsonchannels.whatsapp.accounts.*.creds.json