SecretRef 憑證介面
本頁面定義正規的 SecretRef 憑證介面。
範圍意圖:
- 範圍內:嚴格由使用者提供、OpenClaw 不鑄造或輪換的憑證。
- 範圍外:執行時鑄造或輪換的憑證、OAuth 更新材料,以及類 session 的產出物。
已支援的憑證
openclaw.json 目標(secrets configure + secrets apply + secrets audit)
models.providers.*.apiKeymodels.providers.*.headers.*skills.entries.*.apiKeyagents.defaults.memorySearch.remote.apiKeyagents.list[].memorySearch.remote.apiKeytalk.apiKeytalk.providers.*.apiKeymessages.tts.elevenlabs.apiKeymessages.tts.openai.apiKeytools.web.fetch.firecrawl.apiKeytools.web.search.apiKeytools.web.search.gemini.apiKeytools.web.search.grok.apiKeytools.web.search.kimi.apiKeytools.web.search.perplexity.apiKeygateway.auth.passwordgateway.auth.tokengateway.remote.tokengateway.remote.passwordcron.webhookTokenchannels.telegram.botTokenchannels.telegram.webhookSecretchannels.telegram.accounts.*.botTokenchannels.telegram.accounts.*.webhookSecretchannels.slack.botTokenchannels.slack.appTokenchannels.slack.userTokenchannels.slack.signingSecretchannels.slack.accounts.*.botTokenchannels.slack.accounts.*.appTokenchannels.slack.accounts.*.userTokenchannels.slack.accounts.*.signingSecretchannels.discord.tokenchannels.discord.pluralkit.tokenchannels.discord.voice.tts.elevenlabs.apiKeychannels.discord.voice.tts.openai.apiKeychannels.discord.accounts.*.tokenchannels.discord.accounts.*.pluralkit.tokenchannels.discord.accounts.*.voice.tts.elevenlabs.apiKeychannels.discord.accounts.*.voice.tts.openai.apiKeychannels.irc.passwordchannels.irc.nickserv.passwordchannels.irc.accounts.*.passwordchannels.irc.accounts.*.nickserv.passwordchannels.bluebubbles.passwordchannels.bluebubbles.accounts.*.passwordchannels.feishu.appSecretchannels.feishu.encryptKeychannels.feishu.verificationTokenchannels.feishu.accounts.*.appSecretchannels.feishu.accounts.*.encryptKeychannels.feishu.accounts.*.verificationTokenchannels.msteams.appPasswordchannels.mattermost.botTokenchannels.mattermost.accounts.*.botTokenchannels.matrix.passwordchannels.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")profiles.*.tokenRef(type: "token")
說明:
- Auth-profile 計畫目標需要
agentId。 - 計畫項目以
profiles.*.key/profiles.*.token為目標,並寫入同級的 ref(keyRef/tokenRef)。 - Auth-profile ref 包含在執行時解析和稽核覆蓋中。
- 對 SecretRef 管理的模型供應商,產生的
agents/*/agent/models.json項目持久化非密鑰標記(非解析後的密鑰值)用於apiKey/header 介面。 - 標記持久化以來源為權威:OpenClaw 從活躍來源設定快照(解析前)寫入標記,而非從解析後的執行時密鑰值。
- 網頁搜尋:
- 在明確供應商模式(
tools.web.search.provider已設定)中,僅選定的供應商金鑰為活躍。 - 在自動模式(
tools.web.search.provider未設定)中,僅依優先順序首先解析的供應商金鑰為活躍。 - 在自動模式中,未選定的供應商 ref 視為非活躍直到被選定。
- 在明確供應商模式(
不支援的憑證
範圍外的憑證包含:
commands.ownerDisplaySecretchannels.matrix.accessTokenchannels.matrix.accounts.*.accessTokenhooks.tokenhooks.gmail.pushTokenhooks.mappings[].sessionKeyauth-profiles.oauth.*discord.threadBindings.*.webhookTokenwhatsapp.creds.json
理由:
- 這些憑證為鑄造的、輪換的、帶 session 的或 OAuth 持久類別,不適合唯讀的外部 SecretRef 解析。