OpenClaw 白皮书
SecretRef 凭证覆盖面
本页面定义了规范的 SecretRef 凭证覆盖面。
范围意图:
- ✦在范围内:严格由用户提供的、OpenClaw 不生成或轮换的凭证。
- ✦在范围外:运行时生成或轮换的凭证、OAuth 刷新材料和类会话工件。
已支持的凭证
openclaw.json 目标(secrets configure + secrets apply + secrets audit)
- ✦
models.providers.*.apiKey - ✦
models.providers.*.headers.* - ✦
skills.entries.*.apiKey - ✦
agents.defaults.memorySearch.remote.apiKey - ✦
agents.list[].memorySearch.remote.apiKey - ✦
talk.apiKey - ✦
talk.providers.*.apiKey - ✦
messages.tts.elevenlabs.apiKey - ✦
messages.tts.openai.apiKey - ✦
tools.web.fetch.firecrawl.apiKey - ✦
tools.web.search.apiKey - ✦
tools.web.search.gemini.apiKey - ✦
tools.web.search.grok.apiKey - ✦
tools.web.search.kimi.apiKey - ✦
tools.web.search.perplexity.apiKey - ✦
gateway.auth.password - ✦
gateway.auth.token - ✦
gateway.remote.token - ✦
gateway.remote.password - ✦
cron.webhookToken - ✦
channels.telegram.botToken - ✦
channels.telegram.webhookSecret - ✦
channels.telegram.accounts.*.botToken - ✦
channels.telegram.accounts.*.webhookSecret - ✦
channels.slack.botToken - ✦
channels.slack.appToken - ✦
channels.slack.userToken - ✦
channels.slack.signingSecret - ✦
channels.slack.accounts.*.botToken - ✦
channels.slack.accounts.*.appToken - ✦
channels.slack.accounts.*.userToken - ✦
channels.slack.accounts.*.signingSecret - ✦
channels.discord.token - ✦
channels.discord.pluralkit.token - ✦
channels.discord.voice.tts.elevenlabs.apiKey - ✦
channels.discord.voice.tts.openai.apiKey - ✦
channels.discord.accounts.*.token - ✦
channels.discord.accounts.*.pluralkit.token - ✦
channels.discord.accounts.*.voice.tts.elevenlabs.apiKey - ✦
channels.discord.accounts.*.voice.tts.openai.apiKey - ✦
channels.irc.password - ✦
channels.irc.nickserv.password - ✦
channels.irc.accounts.*.password - ✦
channels.irc.accounts.*.nickserv.password - ✦
channels.bluebubbles.password - ✦
channels.bluebubbles.accounts.*.password - ✦
channels.feishu.appSecret - ✦
channels.feishu.verificationToken - ✦
channels.feishu.accounts.*.appSecret - ✦
channels.feishu.accounts.*.verificationToken - ✦
channels.msteams.appPassword - ✦
channels.mattermost.botToken - ✦
channels.mattermost.accounts.*.botToken - ✦
channels.matrix.password - ✦
channels.matrix.accounts.*.password - ✦
channels.nextcloud-talk.botSecret - ✦
channels.nextcloud-talk.apiPassword - ✦
channels.nextcloud-talk.accounts.*.botSecret - ✦
channels.nextcloud-talk.accounts.*.apiPassword - ✦
channels.zalo.botToken - ✦
channels.zalo.webhookSecret - ✦
channels.zalo.accounts.*.botToken - ✦
channels.zalo.accounts.*.webhookSecret - ✦
channels.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")
说明:
- ✦认证配置计划目标需要
agentId。 - ✦计划条目目标
profiles.*.key/profiles.*.token并写入同级引用(keyRef/tokenRef)。 - ✦认证配置引用包含在运行时解析和审计覆盖中。
- ✦对于 SecretRef 管理的模型提供商,生成的
agents/*/agent/models.json条目为apiKey/header 覆盖面持久化非密钥标记(而非解析后的密钥值)。 - ✦对于网页搜索:
- ✦在显式提供商模式下(
tools.web.search.provider已设置),仅所选提供商键是活跃的。 - ✦在自动模式下(
tools.web.search.provider未设置),仅按优先级解析的第一个提供商键是活跃的。 - ✦在自动模式下,未选中的提供商引用被视为非活跃,直到被选中。
- ✦在显式提供商模式下(
未支持的凭证
范围外的凭证包括:
- ✦
commands.ownerDisplaySecret - ✦
channels.matrix.accessToken - ✦
channels.matrix.accounts.*.accessToken - ✦
hooks.token - ✦
hooks.gmail.pushToken - ✦
hooks.mappings[].sessionKey - ✦
auth-profiles.oauth.* - ✦
discord.threadBindings.*.webhookToken - ✦
whatsapp.creds.json
理由:
- ✦这些凭证是运行时生成的、轮换的、带会话性质的,或属于 OAuth 持久类别,不适合只读的外部 SecretRef 解析。