Background Info
- OpenClaw in Ubuntu VM
- configured a Discord bot as channel
- running the default main agent
- used
SecretRefto keep all the API keys and tokens stored in a JSON file outside the OpenClaw directory
Issue
As I want to create another agent with another Discord bot, I modified the "id" of the original running Discord bot in both secrets.json and openclaw.json.
The bot is still running and responding to my message. However, the CLI shows error message when I try to use doctor, update, add agents.
Command: openclaw doctor
Output:
๐ฆ OpenClaw 2026.3.13 (61d171a) โ Somewhere between 'hello world' and 'oh god what have I built.'
โ Gateway auth โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ
โ โ
โ Gateway token is managed via SecretRef and is currently unavailable. โ
โ Doctor will not overwrite gateway.auth.token with a plaintext value. โ
โ Resolve/rotate the external secret source, then rerun doctor. โ
โ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ
Error: channels.discord.token: unresolved SecretRef "file:default:/channels/discord/RayClaw/botToken". Resolve this command against an active gateway runtime snapshot before reading it.
Command: openclaw agents add
Output:
Error: channels.discord.token: unresolved SecretRef "file:default:/channels/discord/RayClaw/botToken". Resolve this command against an active gateway runtime snapshot before reading it.
Command: openclaw secrets audit
Output:
Secrets audit: clean. plaintext=0, unresolved=0, shadowed=0, legacy=0.
