Run Shell Commands Like a Pro: Discord /exec Gets Native Slash Command Support
If you've ever used OpenClaw's /exec command in Discord, you know the drill: type the command, hope you remember the exact syntax for the options, and cross your fingers. With OpenClaw 2026.2.17, that friction just disappeared.
What Changed
The /exec command now exposes its options as native Discord slash command parameters. Instead of typing out raw text and hoping for the best, you get Discord's built-in autocomplete for:
- host โ Choose where the command runs (sandbox, gateway, or node)
- security โ Set the execution security mode (deny, allowlist, or full)
- ask โ Control approval behavior (off, on-miss, or always)
- node โ Select a specific paired node by id or name
Why This Matters
1. No More Guessing Syntax
Before, you'd need to remember the exact format:
/exec command:ls -la host:sandbox security:allowlist
Now Discord shows you the available options as you type. Start typing /exec and the interface guides you through each parameter with descriptions and valid values.
2. Fewer Mistakes, Faster Execution
With structured inputs, you can't accidentally typo securtiy:allowlist and wonder why your command failed. Discord validates the option names before you even submit.
3. Discoverability
New users (or those who don't live in the docs) can explore what's possible right from the Discord interface. The autocomplete shows all available options without needing to check documentation.
How to Use It
Just type /exec in any channel where your OpenClaw bot has slash command permissions:
- Type
/exec - Start filling in the
commandparameter with your shell command - Tab through the optional parameters โ Discord shows each one with autocomplete suggestions
- Hit enter to run
For example, to run a sandboxed directory listing:
/exec command:ls -la host:sandbox
Discord's autocomplete will suggest sandbox, gateway, and node as you type in the host field.
Security Note
This change is purely UX โ the underlying security model remains the same. The security parameter still respects your gateway configuration, and dangerous commands still require appropriate permissions. You're just getting a nicer interface to control those settings.
Credits
Thanks to @thewilloftheshadow for this contribution.
Reference: OpenClaw Release 2026.2.17
If you're running Discord as your primary OpenClaw interface, this small change makes shell execution feel native rather than bolted-on. Upgrade to 2026.2.17 and give it a spin.
Comments (0)
No comments yet. Be the first to comment!