/approve says unauthorized and /elevated full failsIn Telegram control flow, admin commands fail with errors like:
/approve → unauthorized / device token mismatch/elevated full → blocked by provider gate/approve: confirms a device/session is allowed to run protected actions./elevated full: temporarily allows high-risk shell/tool actions.If either is broken, admin actions will be denied.
Usually it is one (or both) of these:
(WSL networking/proxy issues can add noise during debugging, but they are not the main auth cause.)
openclaw status
openclaw gateway status
openclaw channels status --probe
If gateway is unhealthy:
openclaw gateway restart
/approve token mismatchList devices:
openclaw devices list
If you see a pending request:
openclaw devices approve <request-id>
If there is no pending request and token looks stale, revoke old operator device:
openclaw devices revoke --device <device-id> --role operator
openclaw gateway restart
Then trigger a fresh approval flow from Telegram.
/elevated full allowlistCheck current setting:
openclaw config get tools.elevated
Set a minimal allowlist in ~/.openclaw/openclaw.json (replace IDs with your own):
{
"tools": {
"elevated": {
"enabled": true,
"allowFrom": {
"telegram": ["<telegram-user-id>", "tg:<telegram-user-id>"],
"*": ["<telegram-user-id>", "tg:<telegram-user-id>"]
}
}
}
}
Restart gateway:
openclaw gateway restart
Retest in Telegram:
/elevated full
openclaw sandbox explain --session <session-key>
This command shows exactly which policy gate failed and what to change.
/elevated full available after allowlist fix + gateway restarttools.elevated behavior mismatch with approval settingsunknown approval id)OPENCLAW_GATEWAY_TOKEN in service unitopenclaw status, openclaw gateway status, openclaw channels status --probeopenclaw sandbox explain --session <session-key>