- Trong phạm vi: chỉ các thông tin xác thực do người dùng cung cấp mà OpenClaw không phát hành hoặc xoay vòng.
- Ngoài phạm vi: thông tin xác thực do runtime phát hành hoặc xoay vòng, dữ liệu làm mới OAuth, và các hiện vật giống phiên.
Thông tin xác thực được hỗ trợ
Đích 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.*.apiKeyagents.defaults.memorySearch.remote.apiKeyagents.list[].tts.providers.*.apiKeyagents.list[].memorySearch.remote.apiKeytalk.providers.*.apiKeytalk.realtime.providers.*.apiKeymessages.tts.providers.*.apiKeytools.web.fetch.firecrawl.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.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.authTokentools.web.search.*.apiKeytools.web.search.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.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.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.serviceAccountthông qua mục cùng cấpserviceAccountRef(ngoại lệ tương thích)channels.googlechat.accounts.*.serviceAccountthông qua mục cùng cấpserviceAccountRef(ngoại lệ tương thích)
Đích auth-profiles.json (secrets configure + secrets apply + secrets audit)
profiles.*.keyRef(type: "api_key"; không được hỗ trợ khiauth.profiles.<id>.mode = "oauth")profiles.*.tokenRef(type: "token"; không được hỗ trợ khiauth.profiles.<id>.mode = "oauth")
- Đích kế hoạch hồ sơ xác thực yêu cầu
agentId. - Các mục kế hoạch nhắm tới
profiles.*.key/profiles.*.tokenvà ghi các tham chiếu cùng cấp (keyRef/tokenRef). - Các tham chiếu hồ sơ xác thực được bao gồm trong quá trình phân giải runtime và phạm vi audit.
- Trong
openclaw.json, SecretRefs phải dùng các đối tượng có cấu trúc như{"source":"env","provider":"default","id":"DISCORD_BOT_TOKEN"}. Các chuỗi đánh dấu cũsecretref-env:<ENV_VAR>bị từ chối trên đường dẫn thông tin xác thực SecretRef; chạyopenclaw doctor --fixđể di trú các marker hợp lệ. - Chốt chặn chính sách OAuth:
auth.profiles.<id>.mode = "oauth"không thể được kết hợp với đầu vào SecretRef cho hồ sơ đó. Khởi động/tải lại và phân giải hồ sơ xác thực sẽ thất bại ngay khi chính sách này bị vi phạm. - Với các nhà cung cấp mô hình do SecretRef quản lý, các mục
agents/*/agent/models.jsonđược tạo sẽ lưu các marker không phải bí mật (không phải giá trị bí mật đã phân giải) cho các bề mặtapiKey/header. - Việc lưu marker lấy nguồn làm thẩm quyền: OpenClaw ghi marker từ ảnh chụp cấu hình nguồn đang hoạt động (trước phân giải), không phải từ các giá trị bí mật runtime đã phân giải.
- Đối với tìm kiếm web:
- Ở chế độ nhà cung cấp rõ ràng (
tools.web.search.providerđược đặt), chỉ khóa của nhà cung cấp đã chọn là hoạt động. - Ở chế độ tự động (
tools.web.search.providerchưa đặt), chỉ khóa nhà cung cấp đầu tiên phân giải được theo thứ tự ưu tiên là hoạt động. - Ở chế độ tự động, các tham chiếu nhà cung cấp không được chọn được xem là không hoạt động cho đến khi được chọn.
- Các đường dẫn nhà cung cấp cũ
tools.web.search.*vẫn phân giải trong giai đoạn tương thích, nhưng bề mặt SecretRef chuẩn làplugins.entries.<plugin>.config.webSearch.*.
- Ở chế độ nhà cung cấp rõ ràng (
Thông tin xác thực không được hỗ trợ
Thông tin xác thực ngoài phạm vi bao gồm:commands.ownerDisplaySecrethooks.tokenhooks.gmail.pushTokenhooks.mappings[].sessionKeyauth-profiles.oauth.*channels.discord.threadBindings.webhookTokenchannels.discord.accounts.*.threadBindings.webhookTokenchannels.whatsapp.creds.jsonchannels.whatsapp.accounts.*.creds.json
- Các thông tin xác thực này thuộc các lớp được phát hành, xoay vòng, mang phiên, hoặc bền vững OAuth, không phù hợp với phân giải SecretRef bên ngoài chỉ đọc.