© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
Friends of the Crustacean 🦞🤝FotC�
Friends of the Crustacean 🦞🤝•3w ago•
8 replies
Kid Krule

Discord channel exec permissions

✅Solved
Trying to figure out how to best setup OpenClaw so it has all exec privileges if request came from my own discord user.

Right now, this config doesn't seem to help because often times, launching a task from Discord will require me to manually validate execs from the gateway UI.

--

// openclaw.json
"channels": {
    "discord": {
      "enabled": true,
      "configWrites": false,
      "token": "",
      "groupPolicy": "allowlist",
      "dmPolicy": "allowlist",
      "allowFrom": [
        "1437...5"
      ],
      "guilds": {
        "147...0": {
          "requireMention": true,
          "users": [
            "143...5"
          ],
          "channels": {
            "147...6": {
              "allow": true,
              "requireMention": true
            },
            "147...5": {
              "allow": true,
              "requireMention": true
            }
          }
        }
      }
    }
// openclaw.json
"channels": {
    "discord": {
      "enabled": true,
      "configWrites": false,
      "token": "",
      "groupPolicy": "allowlist",
      "dmPolicy": "allowlist",
      "allowFrom": [
        "1437...5"
      ],
      "guilds": {
        "147...0": {
          "requireMention": true,
          "users": [
            "143...5"
          ],
          "channels": {
            "147...6": {
              "allow": true,
              "requireMention": true
            },
            "147...5": {
              "allow": true,
              "requireMention": true
            }
          }
        }
      }
    }


// exec-approvals.json
{
  "version": 1,
  "socket": {
    "path": "/data/.openclaw/exec-approvals.sock",
    "token": "-4J...O"
  },
  "defaults": {
    "security": "allowlist",
    "ask": "off",
    "askFallback": "deny",
    "autoAllowSkills": false
  },
  "agents": {
    "main": {
      "security": "allowlist",
      "ask": "off",
      "askFallback": "deny",
      "autoAllowSkills": false,
      "allowlist": [
        {
          "id": "0aa73eb4-6f1c-4029-a27c-542155ec7bb7",
          "pattern": "/usr/local/bin/pnpm",
          "lastUsedAt": 1771507446696,
          "lastUsedCommand": "pnpm report --input runs/...",
          "lastResolvedPath": "/usr/local/bin/pnpm"
        },
       ...
        {
          "pattern": "/usr/bin/sox",
          "id": "3a820f06-ca47-49ab-bcdb-8144e40f4bd6"
        }
      ]
    }
  }
}
// exec-approvals.json
{
  "version": 1,
  "socket": {
    "path": "/data/.openclaw/exec-approvals.sock",
    "token": "-4J...O"
  },
  "defaults": {
    "security": "allowlist",
    "ask": "off",
    "askFallback": "deny",
    "autoAllowSkills": false
  },
  "agents": {
    "main": {
      "security": "allowlist",
      "ask": "off",
      "askFallback": "deny",
      "autoAllowSkills": false,
      "allowlist": [
        {
          "id": "0aa73eb4-6f1c-4029-a27c-542155ec7bb7",
          "pattern": "/usr/local/bin/pnpm",
          "lastUsedAt": 1771507446696,
          "lastUsedCommand": "pnpm report --input runs/...",
          "lastResolvedPath": "/usr/local/bin/pnpm"
        },
       ...
        {
          "pattern": "/usr/bin/sox",
          "id": "3a820f06-ca47-49ab-bcdb-8144e40f4bd6"
        }
      ]
    }
  }
}
Solution
Actually, adding this my discord config pretty much did it (now I'm getting the accept / deny UI in discord which basically solves my problem):

"execApprovals": {
"enabled": true,
"approvers": ["143...5"]
}

Pretty simple but couldn't find the info.
Jump to solution
Friends of the Crustacean 🦞🤝 banner
Friends of the Crustacean 🦞🤝Join
The AI that actually does things. Emails, calendar, home automation - all from your favorite chat app. New shell, ready to help. The lobster way.
129,194Members
Resources
Was this page helpful?

Similar Threads

Recent Announcements
Recent Announcements
Krill 🦐

## Freshbits — tidy fixes all around ### Fixes - [#39652](https://github.com/openclaw/openclaw/pull/39652) [f73778e](https://github.com/openclaw/openclaw/commit/f73778e9b2cc2c1621497292453a3af8f5fb5b55) fix: remove redundant root strip-ansi dependency - [#39374](https://github.com/openclaw/openclaw/pull/39374) [e5fdfec](https://github.com/openclaw/openclaw/commit/e5fdfec9dc1fee5a33775a10f47dc4ff90246737) fix(config): accept "openclaw" as browser profile driver in Zod schema - [#39027](https://github.com/openclaw/openclaw/pull/39027) [b38f371](https://github.com/openclaw/openclaw/commit/b38f37163030ebe1692500a48eac237de647cc56) fix: add @tloncorp/api to pnpm onlyBuiltDependencies allowlist - [#39158](https://github.com/openclaw/openclaw/pull/39158) [aedf3ee](https://github.com/openclaw/openclaw/commit/aedf3ee68f510af24b87fedf4fa3cf10848a6ca6) fix(skills): expand skill-creator description to cover edit/audit/review triggers Stats: +10 / -9 (files changed: 9)

Krill 🦐 · 1h ago

Krill 🦐

## Freshbits — quick polish pass ### Fixes - [#27744](https://github.com/openclaw/openclaw/pull/27744) [9425209](https://github.com/openclaw/openclaw/commit/9425209) fix(mattermost): pass payload.replyToId as root_id for threaded replies - [#38999](https://github.com/openclaw/openclaw/pull/38999) [c1b9140](https://github.com/openclaw/openclaw/commit/c1b9140) fix: add missing strip-ansi dep for pi-coding-agent Stats: +95 / -3 (files changed: 6)

Krill 🦐 · 2h ago

Krill 🦐

## Freshbits — Sunday morning housekeeping ### Fixes - [#38533](https://github.com/openclaw/openclaw/pull/38533) [92648f9](https://github.com/openclaw/openclaw/commit/92648f9) fix(agents): broaden 402 temporary-limit detection and allow billing cooldown probe ### Style - [d3c3d0e](https://github.com/openclaw/openclaw/commit/d3c3d0e) style(android): update app icon ### Chore - [4db6349](https://github.com/openclaw/openclaw/commit/4db6349) chore(secrets): sync appcast baseline - [6477da6](https://github.com/openclaw/openclaw/commit/6477da6) chore(secrets): sync detect-secrets baseline Stats: +360 / -43 (files changed: 19)

Krill 🦐 · 3h ago

Similar Threads

Exec permissions
Friends of the Crustacean 🦞🤝FotC�Friends of the Crustacean 🦞🤝 / help
2w ago
discord exec approval
Friends of the Crustacean 🦞🤝FotC�Friends of the Crustacean 🦞🤝 / help
2w ago
Discord Exec Approval
Friends of the Crustacean 🦞🤝FotC�Friends of the Crustacean 🦞🤝 / help
2mo ago
Discord Permissions
Friends of the Crustacean 🦞🤝FotC�Friends of the Crustacean 🦞🤝 / help
14h ago