2026-03-02 20:58:20 -06:00
---
summary: "Canonical supported vs unsupported SecretRef credential surface"
read_when:
- Verifying SecretRef credential coverage
- Auditing whether a credential is eligible for `secrets configure` or `secrets apply`
- Verifying why a credential is outside the supported surface
title: "SecretRef Credential Surface"
---
# SecretRef credential surface
This page defines the canonical SecretRef credential surface.
Scope intent:
- In scope: strictly user-supplied credentials that OpenClaw does not mint or rotate.
- Out of scope: runtime-minted or rotating credentials, OAuth refresh material, and session-like artifacts.
## Supported credentials
### `openclaw.json` targets (`secrets configure` + `secrets apply` + `secrets audit`)
2026-03-03 14:00:09 -06:00
[//]: # "secretref-supported-list-start"
2026-03-02 20:58:20 -06:00
- `models.providers.*.apiKey`
2026-03-07 11:28:39 -06:00
- `models.providers.*.headers.*`
2026-04-03 19:00:06 +09:00
- `models.providers.*.request.auth.token`
- `models.providers.*.request.auth.value`
- `models.providers.*.request.headers.*`
2026-04-03 23:25:11 +09:00
- `models.providers.*.request.proxy.tls.ca`
- `models.providers.*.request.proxy.tls.cert`
- `models.providers.*.request.proxy.tls.key`
- `models.providers.*.request.proxy.tls.passphrase`
- `models.providers.*.request.tls.ca`
- `models.providers.*.request.tls.cert`
- `models.providers.*.request.tls.key`
- `models.providers.*.request.tls.passphrase`
2026-03-02 20:58:20 -06:00
- `skills.entries.*.apiKey`
- `agents.defaults.memorySearch.remote.apiKey`
- `agents.list[].memorySearch.remote.apiKey`
- `talk.providers.*.apiKey`
2026-03-26 22:46:26 +00:00
- `messages.tts.providers.*.apiKey`
2026-03-09 22:57:03 -05:00
- `tools.web.fetch.firecrawl.apiKey`
2026-03-17 23:59:17 -05:00
- `plugins.entries.brave.config.webSearch.apiKey`
- `plugins.entries.google.config.webSearch.apiKey`
- `plugins.entries.xai.config.webSearch.apiKey`
- `plugins.entries.moonshot.config.webSearch.apiKey`
- `plugins.entries.perplexity.config.webSearch.apiKey`
- `plugins.entries.firecrawl.config.webSearch.apiKey`
2026-03-25 18:41:35 -04:00
- `plugins.entries.minimax.config.webSearch.apiKey`
2026-03-20 01:06:26 -04:00
- `plugins.entries.tavily.config.webSearch.apiKey`
2026-03-18 15:33:33 +00:00
- `tools.web.search.apiKey`
2026-03-02 20:58:20 -06:00
- `gateway.auth.password`
2026-03-05 12:53:56 -06:00
- `gateway.auth.token`
2026-03-02 20:58:20 -06:00
- `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`
2026-03-26 22:46:26 +00:00
- `channels.discord.voice.tts.providers.*.apiKey`
2026-03-02 20:58:20 -06:00
- `channels.discord.accounts.*.token`
- `channels.discord.accounts.*.pluralkit.token`
2026-03-26 22:46:26 +00:00
- `channels.discord.accounts.*.voice.tts.providers.*.apiKey`
2026-03-02 20:58:20 -06:00
- `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`
2026-03-12 08:18:13 -07:00
- `channels.feishu.encryptKey`
2026-03-02 20:58:20 -06:00
- `channels.feishu.verificationToken`
- `channels.feishu.accounts.*.appSecret`
2026-03-12 08:18:13 -07:00
- `channels.feishu.accounts.*.encryptKey`
2026-03-02 20:58:20 -06:00
- `channels.feishu.accounts.*.verificationToken`
- `channels.msteams.appPassword`
- `channels.mattermost.botToken`
- `channels.mattermost.accounts.*.botToken`
2026-03-28 12:21:57 +08:00
- `channels.matrix.accessToken`
2026-03-02 20:58:20 -06:00
- `channels.matrix.password`
2026-03-28 12:21:57 +08:00
- `channels.matrix.accounts.*.accessToken`
2026-03-02 20:58:20 -06:00
- `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` via sibling `serviceAccountRef` (compatibility exception)
- `channels.googlechat.accounts.*.serviceAccount` via sibling `serviceAccountRef` (compatibility exception)
### `auth-profiles.json` targets (`secrets configure` + `secrets apply` + `secrets audit`)
2026-03-31 02:37:31 -05:00
- `profiles.*.keyRef` (`type: "api_key"` ; unsupported when `auth.profiles.<id>.mode = "oauth"` )
- `profiles.*.tokenRef` (`type: "token"` ; unsupported when `auth.profiles.<id>.mode = "oauth"` )
2026-03-03 15:08:41 -06:00
[//]: # "secretref-supported-list-end"
2026-03-02 20:58:20 -06:00
Notes:
- Auth-profile plan targets require `agentId` .
- Plan entries target `profiles.*.key` / `profiles.*.token` and write sibling refs (`keyRef` / `tokenRef` ).
- Auth-profile refs are included in runtime resolution and audit coverage.
2026-03-31 02:37:31 -05:00
- OAuth policy guard: `auth.profiles.<id>.mode = "oauth"` cannot be combined with SecretRef inputs for that profile. Startup/reload and auth-profile resolution fail fast when this policy is violated.
2026-03-07 11:28:39 -06:00
- For SecretRef-managed model providers, generated `agents/*/agent/models.json` entries persist non-secret markers (not resolved secret values) for `apiKey` /header surfaces.
2026-03-12 02:22:52 -05:00
- Marker persistence is source-authoritative: OpenClaw writes markers from the active source config snapshot (pre-resolution), not from resolved runtime secret values.
2026-03-02 20:58:20 -06:00
- For web search:
- In explicit provider mode (`tools.web.search.provider` set), only the selected provider key is active.
2026-03-09 22:57:03 -05:00
- In auto mode (`tools.web.search.provider` unset), only the first provider key that resolves by precedence is active.
- In auto mode, non-selected provider refs are treated as inactive until selected.
2026-03-17 23:59:17 -05:00
- Legacy `tools.web.search.*` provider paths still resolve during the compatibility window, but the canonical SecretRef surface is `plugins.entries.<plugin>.config.webSearch.*` .
2026-03-02 20:58:20 -06:00
## Unsupported credentials
Out-of-scope credentials include:
2026-03-03 14:00:09 -06:00
[//]: # "secretref-unsupported-list-start"
2026-03-02 20:58:20 -06:00
- `commands.ownerDisplaySecret`
- `hooks.token`
- `hooks.gmail.pushToken`
- `hooks.mappings[].sessionKey`
- `auth-profiles.oauth.*`
2026-03-31 02:37:31 -05:00
- `channels.discord.threadBindings.webhookToken`
- `channels.discord.accounts.*.threadBindings.webhookToken`
- `channels.whatsapp.creds.json`
- `channels.whatsapp.accounts.*.creds.json`
2026-03-03 15:08:41 -06:00
[//]: # "secretref-unsupported-list-end"
2026-03-02 20:58:20 -06:00
Rationale:
- These credentials are minted, rotated, session-bearing, or OAuth-durable classes that do not fit read-only external SecretRef resolution.