#Telegram help

1 messages · Page 1 of 1 (latest)

wanton flint
#

Hey peeps. Little help - How do I enable exec/script execution for telegram sessions?

vast valeBOT
#

To help others find answers, you can mark your question as solved via Right click solution message -> Apps -> ✅ Mark Solution

leaden havenBOT
#

It’s not Telegram-specific — exec/script execution is controlled by tool policy + exec host settings, and then you can optionally use /exec inside a Telegram chat to set per-session defaults.

1) Make sure the exec tool is actually allowed

If you set a restrictive tool profile (common for “messaging-only” bots), exec will be blocked.

Easiest: use the coding profile (includes group:runtime = exec + process + bash):

// ~/.openclaw/openclaw.json
{
  tools: {
    profile: "coding",
  },
}

Docs: https://docs.openclaw.ai/tools (tool profiles + allow/deny)

#

2) Pick where exec runs (sandbox vs gateway vs node)

By default, exec is designed to run in a sandbox. If you’re not using Docker sandboxing, set exec to run on the gateway host:

{
  tools: {
    profile: "coding",
    exec: {
      host: "gateway",
      security: "allowlist",
      ask: "on-miss",
    },
  },
}

Docs: https://docs.openclaw.ai/tools/exec