स्लैश कमांड्स
Commands are handled by the Gateway. Most commands must be sent as a standalone message that starts with/.
The host-only bash chat command uses ! <cmd> (with /bash <cmd> as an alias).
दो संबंधित प्रणालियाँ हैं:
- Commands: स्वतंत्र
/...संदेश। - Directives:
/think,/verbose,/reasoning,/elevated,/exec,/model,/queue।- मॉडल के संदेश देखने से पहले directives को संदेश से हटा दिया जाता है।
- सामान्य चैट संदेशों में (directive-only नहीं), इन्हें “inline hints” के रूप में माना जाता है और ये सत्र सेटिंग्स को स्थायी नहीं करतीं।
- directive-only संदेशों में (संदेश में केवल directives हों), ये सत्र में स्थायी होती हैं और एक acknowledgement के साथ उत्तर देती हैं।
- Directives केवल authorized senders के लिए लागू किए जाते हैं। यदि
commands.allowFromसेट है, तो वही एकमात्र allowlist उपयोग की जाती है; अन्यथा प्राधिकरण channel allowlists/pairing औरcommands.useAccessGroupsसे आता है। Unauthorized senders see directives treated as plain text.
/help, /commands, /status, /whoami (/id).
They run immediately, are stripped before the model sees the message, and the remaining text continues through the normal flow.
कॉन्फ़िगरेशन
commands.text(डिफ़ॉल्टtrue) चैट संदेशों में/...के पार्सिंग को सक्षम करता है।- जिन सतहों पर नेटिव कमांड नहीं हैं (WhatsApp/WebChat/Signal/iMessage/Google Chat/MS Teams), वहाँ इसे
falseपर सेट करने पर भी टेक्स्ट कमांड काम करते हैं।
- जिन सतहों पर नेटिव कमांड नहीं हैं (WhatsApp/WebChat/Signal/iMessage/Google Chat/MS Teams), वहाँ इसे
commands.native(डिफ़ॉल्ट"auto") नेटिव कमांड पंजीकृत करता है।- Auto: Discord/Telegram के लिए चालू; Slack के लिए बंद (जब तक आप स्लैश कमांड नहीं जोड़ते); जिन प्रदाताओं में नेटिव सपोर्ट नहीं है, उनके लिए अनदेखा।
- प्रति-प्रदाता ओवरराइड करने के लिए
channels.discord.commands.native,channels.telegram.commands.native, याchannels.slack.commands.nativeसेट करें (bool या"auto")। falseclears previously registered commands on Discord/Telegram at startup. Slack commands are managed in the Slack app and are not removed automatically.
commands.nativeSkills(डिफ़ॉल्ट"auto") समर्थित होने पर skill कमांड को नेटिव रूप से पंजीकृत करता है।- Auto: Discord/Telegram के लिए चालू; Slack के लिए बंद (Slack में प्रति-skill एक स्लैश कमांड बनाना आवश्यक है)।
- प्रति-प्रदाता ओवरराइड के लिए
channels.discord.commands.nativeSkills,channels.telegram.commands.nativeSkills, याchannels.slack.commands.nativeSkillsसेट करें (bool या"auto")।
commands.bash(defaultfalse) enables! <cmd>to run host shell commands (/bash <cmd>is an alias; requirestools.elevatedallowlists).commands.bashForegroundMs(डिफ़ॉल्ट2000) यह नियंत्रित करता है कि बैकग्राउंड मोड में स्विच करने से पहले bash कितनी देर प्रतीक्षा करे (0तुरंत बैकग्राउंड करता है)।commands.config(डिफ़ॉल्टfalse)/configको सक्षम करता है (openclaw.jsonपढ़ता/लिखता है)।commands.debug(डिफ़ॉल्टfalse)/debugको सक्षम करता है (केवल रनटाइम ओवरराइड)।commands.allowFrom(वैकल्पिक) कमांड प्राधिकरण के लिए प्रति-प्रदाता allowlist सेट करता है। जब कॉन्फ़िगर किया जाता है, तो यह कमांड और निर्देशों के लिए एकमात्र प्राधिकरण स्रोत होता है (channel allowlists/pairing औरcommands.useAccessGroupsको अनदेखा किया जाता है)। वैश्विक डिफ़ॉल्ट के लिए"*"का उपयोग करें; प्रदाता-विशिष्ट कुंजियाँ इसे ओवरराइड करती हैं।commands.useAccessGroups(डिफ़ॉल्टtrue) तब कमांड के लिए allowlists/policies लागू करता है जबcommands.allowFromसेट नहीं होता।
Command list
टेक्स्ट + नेटिव (जब सक्षम हो):/help/commands/skill <name> [input](नाम से एक skill चलाएँ)/status(वर्तमान स्थिति दिखाएँ; उपलब्ध होने पर वर्तमान मॉडल प्रदाता के लिए प्रदाता उपयोग/कोटा शामिल)/allowlist(allowlist प्रविष्टियाँ सूचीबद्ध/जोड़ें/हटाएँ)/approve <id> allow-once|allow-always|deny(exec अनुमोदन प्रॉम्प्ट का समाधान)/context [list|detail|json](“context” समझाएँ;detailप्रति-फ़ाइल + प्रति-टूल + प्रति-skill + सिस्टम प्रॉम्प्ट आकार दिखाता है)/whoami(आपका sender id दिखाएँ; उपनाम:/id)/subagents list|stop|log|info|send(वर्तमान सत्र के लिए sub-agent रन का निरीक्षण, रोकें, लॉग देखें, या संदेश भेजें)/config show|get|set|unset(कॉन्फ़िग को डिस्क पर स्थायी करें, owner-only;commands.config: trueआवश्यक)/debug show|set|unset|reset(रनटाइम ओवरराइड, owner-only;commands.debug: trueआवश्यक)/usage off|tokens|full|cost(प्रति-उत्तर उपयोग फ़ुटर या स्थानीय लागत सारांश)/tts off|always|inbound|tagged|status|provider|limit|summary|audio(TTS नियंत्रित करें; देखें /tts)/debug show|set|unset|reset(रनटाइम ओवरराइड, owner-only;commands.debug: trueआवश्यक)/usage off|tokens|full|cost(प्रति-उत्तर उपयोग फ़ुटर या स्थानीय लागत सारांश)/dock-telegram(उपनाम:/dock_telegram) (उत्तर Telegram पर स्विच करें)- Discord: नेटिव कमांड
/voiceहै (Discord/ttsआरक्षित करता है); टेक्स्ट/ttsअब भी काम करता है।
- Discord: नेटिव कमांड
/stop/restart/activation mention|always(केवल समूह)/dock-discord(उपनाम:/dock_discord) (उत्तर Discord पर स्विच करें)/resetया/new [model](वैकल्पिक मॉडल संकेत; शेष पाठ आगे भेजा जाता है)/think <off|minimal|low|medium|high|xhigh>(मॉडल/प्रदाता के अनुसार डायनेमिक विकल्प; उपनाम:/thinking,/t)/send on|off|inherit(owner-only)/reasoning on|off|stream(उपनाम:/reason; चालू होने परReasoning:से प्रीफ़िक्स किया हुआ अलग संदेश भेजता है;stream= केवल Telegram ड्राफ्ट)/elevated on|off|ask|full(उपनाम:/elev;fullexec अनुमोदन छोड़ देता है)/exec host=<sandbox|gateway|node> security=<deny|allowlist|full> ask=<off|on-miss|always> node=<id>(वर्तमान दिखाने के लिए/execभेजें)/model <name>(उपनाम:/models; याagents.defaults.models.*.aliasसे/<alias>)/queue <mode>(जैसेdebounce:2s cap:25 drop:summarizeजैसे विकल्प; वर्तमान सेटिंग देखने के लिए/queueभेजें)/exec host=<sandbox|gateway|node> security=<deny|allowlist|full> ask=<off|on-miss|always> node=<id>(वर्तमान दिखाने के लिए/execभेजें)/model <name>(उपनाम:/models; याagents.defaults.models.*.aliasसे/<alias>)/queue <mode>(जैसेdebounce:2s cap:25 drop:summarizeजैसे विकल्प; वर्तमान सेटिंग देखने के लिए/queueभेजें)/bash <command>(host-only; alias for! <command>; requirescommands.bash: true+tools.elevatedallowlists)
/compact [instructions](देखें /concepts/compaction)! <command>(host-only; one at a time; use!poll+!stopfor long-running jobs)!poll(आउटपुट/स्थिति जाँचें; वैकल्पिकsessionIdस्वीकार करता है;/bash pollभी काम करता है)!stop(चल रहे bash जॉब को रोकें; वैकल्पिकsessionIdस्वीकार करता है;/bash stopभी काम करता है)
- Commands accept an optional
:between the command and args (e.g./think: high,/send: on,/help:). /new <model>एक मॉडल उपनाम,provider/model, या प्रदाता नाम (फ़ज़ी मैच) स्वीकार करता है; यदि कोई मैच न मिले, तो पाठ को संदेश बॉडी माना जाता है।- पूर्ण प्रदाता उपयोग विवरण के लिए
openclaw status --usageका उपयोग करें। /allowlist add|removeके लिएcommands.config=trueआवश्यक है और यह चैनलconfigWritesका सम्मान करता है।/usageप्रति-उत्तर उपयोग फ़ुटर नियंत्रित करता है;/usage costOpenClaw सत्र लॉग से स्थानीय लागत सारांश प्रिंट करता है।/restartडिफ़ॉल्ट रूप से अक्षम है; इसे सक्षम करने के लिएcommands.restart: trueसेट करें।/verboseडीबगिंग और अतिरिक्त दृश्यता के लिए है; सामान्य उपयोग में इसे बंद रखें।/reasoning(and/verbose) are risky in group settings: they may reveal internal reasoning or tool output you did not intend to expose. Prefer leaving them off, especially in group chats.- Fast path: allowlisted प्रेषकों से केवल-कमांड संदेश तुरंत संभाले जाते हैं (क्यू + मॉडल को बायपास करते हैं)।
- Group mention gating: allowlisted प्रेषकों से केवल-कमांड संदेश में मेंशन आवश्यकताओं को बायपास किया जाता है।
- Inline shortcuts (केवल allowlisted senders): कुछ कमांड सामान्य संदेश में एम्बेड होने पर भी काम करते हैं और मॉडल के शेष पाठ देखने से पहले हटा दिए जाते हैं।
- उदाहरण:
hey /statusएक स्टेटस उत्तर ट्रिगर करता है, और शेष पाठ सामान्य प्रवाह से गुजरता रहता है।
- उदाहरण:
- वर्तमान में:
/help,/commands,/status,/whoami(/id)। - अनधिकृत केवल-कमांड संदेश चुपचाप अनदेखा कर दिए जाते हैं, और inline
/...टोकन साधारण पाठ की तरह माने जाते हैं। - Skill commands:
user-invocableskills are exposed as slash commands. Names are sanitized toa-z0-9_(max 32 chars); collisions get numeric suffixes (e.g._2)./skill <name> [input]नाम से एक skill चलाता है (जब नेटिव कमांड सीमाएँ प्रति-skill कमांड को रोकती हों, तब उपयोगी)।- डिफ़ॉल्ट रूप से, skill कमांड मॉडल को एक सामान्य अनुरोध के रूप में फ़ॉरवर्ड किए जाते हैं।
- Skills वैकल्पिक रूप से
command-dispatch: toolघोषित कर सकती हैं ताकि कमांड सीधे किसी टूल पर रूट हो (निर्धारित, बिना मॉडल)। - उदाहरण:
/prose(OpenProse प्लगइन) — देखें OpenProse।
- Native command arguments: Discord uses autocomplete for dynamic options (and button menus when you omit required args). Telegram and Slack show a button menu when a command supports choices and you omit the arg.
Usage surfaces (क्या कहाँ दिखता है)
- Provider usage/quota (उदा.: “Claude 80% left”)
/statusमें वर्तमान मॉडल प्रदाता के लिए दिखता है, जब उपयोग ट्रैकिंग सक्षम हो। - Per-response tokens/cost को
/usage off|tokens|fullनियंत्रित करता है (सामान्य उत्तरों में जोड़ा जाता है)। /model statusmodels/auth/endpoints के बारे में है, उपयोग के बारे में नहीं।
Model selection (/model)
/model को एक directive के रूप में लागू किया गया है।
Examples:
/modelऔर/model listएक संक्षिप्त, क्रमांकित picker दिखाते हैं (मॉडल परिवार + उपलब्ध प्रदाता)।/model <#>उसी picker से चयन करता है (और संभव होने पर वर्तमान प्रदाता को प्राथमिकता देता है)।/model statusविस्तृत दृश्य दिखाता है, जिसमें विन्यस्त प्रदाता endpoint (baseUrl) और API मोड (api) शामिल हैं, जब उपलब्ध हों।
Debug overrides
/debug lets you set runtime-only config overrides (memory, not disk). Owner-only. Disabled by default; enable with commands.debug: true.
Examples:
- Overrides नए config reads पर तुरंत लागू होते हैं, लेकिन
openclaw.jsonमें लिखे नहीं जाते। - सभी overrides साफ़ करने और डिस्क पर मौजूद config पर लौटने के लिए
/debug resetका उपयोग करें।
Config updates
/config writes to your on-disk config (openclaw.json). Owner-only. Disabled by default; enable with commands.config: true.
Examples:
- लिखने से पहले config का सत्यापन किया जाता है; अमान्य बदलाव अस्वीकार कर दिए जाते हैं।
/configअपडेट्स रीस्टार्ट के बाद भी बने रहते हैं।
Surface notes
- Text commands सामान्य चैट सत्र में चलते हैं (DMs
mainसाझा करते हैं; समूहों के अपने सत्र होते हैं)। - Native commands अलग-थलग सत्रों का उपयोग करते हैं:
- Discord:
agent:<agentId>:discord:slash:<userId> - Slack:
agent:<agentId>:slack:slash:<userId>(प्रिफ़िक्सchannels.slack.slashCommand.sessionPrefixके माध्यम से कॉन्फ़िगर करने योग्य) - Telegram:
telegram:slash:<userId>(CommandTargetSessionKeyके माध्यम से चैट सत्र को लक्षित करता है)
- Discord:
/stopसक्रिय चैट सत्र को लक्षित करता है ताकि वर्तमान रन को abort किया जा सके।- Slack:
channels.slack.slashCommandis still supported for a single/openclaw-style command. If you enablecommands.native, you must create one Slack slash command per built-in command (same names as/help). Command argument menus for Slack are delivered as ephemeral Block Kit buttons.