Openclaw命令集

1257 字

openclaw命令集

Session
/session - Manage session-level settings (for example /session idle).
/stop - Stop the current run.
/reset - Reset the current session.
/new - Start a new session.
/compact - Compact the session context.

Options
/usage - Usage footer or cost summary.
/think (/thinking, /t) - Set thinking level.
/verbose (/v) - Toggle verbose mode.

Options
/reasoning (/reason) - Toggle reasoning visibility.
/elevated (/elev) - Toggle elevated mode.
/exec - Set exec defaults for this session.
/model - Show or set the model.
/models - List model providers or provider models.
/queue - Adjust queue settings.

Status
/help - Show available commands.
/commands - List all slash commands.

Status
/status - Show current status.
/context - Explain how context is built and used.
/export-session (/export) - Export current session to HTML file with full system prompt.
/whoami (/id) - Show your sender id.

Management
/allowlist [text] - List/add/remove allowlist entries.
/approve - Approve or deny exec requests.
/subagents - List, kill, log, spawn, or steer subagent runs for this session.
/acp - Manage ACP sessions and runtime options.
Management
/focus - Bind this thread (Discord) or topic/conversation (Telegram) to a session target.
/unfocus - Remove the current thread (Discord) or topic/conversation (Telegram) binding.
/agents - List thread-bound agents for this session.
/kill - Kill a running subagent (or all).
/steer (/tell) - Send guidance to a running subagent.
/activation - Set group activation mode.
/send - Set send policy.

Media
/tts - Control text-to-speech (TTS).
Tools
/skill - Run a skill by name.
/restart - Restart OpenClaw.
/feishu_doc - Feishu document read/write operations. Activate when user mentions Feishu docs, cloud docs, or docx…
/feishu_drive - Feishu cloud storage file management. Activate when user mentions cloud space, folders, drive.
/feishu_perm - Feishu permission management for documents and files. Activate when user mentions sharing, permissi…
/feishu_wiki - Feishu knowledge base navigation. Activate when user mentions knowledge base, wiki, or wiki links.
/qqbot_cron - QQ Bot 智能提醒技能。支持一次性提醒、周期性任务、自动降级确保送达。可设置、查询、取消提醒。
/qqbot_media - QQ Bot 媒体发送指南。教 AI 如何发送图片给用户。【重要】当用户要求发送图片时必须使用 标签。
Tools
/clawhub - Use the ClawHub CLI to search, install, update, and publish agent skills from clawhub.com. Use when…
/coding_agent - Delegate coding tasks to Codex, Claude Code, or Pi agents via background process. Use when: (1) bui…
/github - Interact with GitHub using the gh CLI. Use gh issue, gh pr, gh run, and gh api for issues…
/gog - Google Workspace CLI for Gmail, Calendar, Drive, Contacts, Sheets, and Docs.
/healthcheck - Host security hardening and risk-tolerance configuration for OpenClaw deployments. Use when a user …
/notion - Notion API for creating and managing pages, databases, and blocks.
/obsidian - Work with Obsidian vaults (plain Markdown notes) and automate via obsidian-cli.
/skill_creator - Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, re…
Tools
/summarize - Summarize URLs or files with the summarize CLI (web, PDFs, images, audio, YouTube).
/video_frames - Extract frames or short clips from videos using ffmpeg.
/weather - Get current weather and forecasts (no API key required).
/ocr_document_processor - Extract text from images and scanned PDFs using OCR. Supports 100+ languages, table detection, stru…
/agent_browser - A fast Rust-based headless browser automation CLI with Node.js fallback that enables AI agents to n…
/brave_web_search - Searches the web and returns ranked results or AI-generated summarized answers using the Brave Sear…
/capability_evolver - A self-evolution engine for AI agents. Analyzes runtime history to identify improvements and applie…
/china_weather - 获取中国城市天气信息,支持当前天气、未来预报、生活指数。当用户问中国城市的天气、温度、下雨、穿衣建议时使用。支持城市名或城市代码查询。Use when user asks about weather…
Tools
/find_skills - Helps users discover and install agent skills when they ask questions like "how do I do X", "find a…
/jina_reader - Web content extraction via Jina AI Reader API. Three modes: read (URL to markdown), search (web sea…
/skill_vetter - Security-first skill vetting for AI agents. Use before installing any skill from ClawdHub, GitHub, …
/tavily - AI-optimized web search via Tavily API. Returns concise, relevant results for AI agents.

Docks
/dock_telegram (/dock-telegram) - Switch to telegram for replies.
/dock_discord (/dock-discord) - Switch to discord for replies.
/dock_slack (/dock-slack) - Switch to slack for replies.

Plugins
/pair (device-pair) - Generate setup codes and approve device pairing requests.
Plugins
/phone (phone-control) - Arm/disarm high-risk phone node commands (camera/screen/writes).
/voice (talk-voice) - List/set ElevenLabs Talk voice (affects iOS Talk playback).

Usage: openclaw [options] [command]

Options:
--dev Dev profile: isolate state under ~/.openclaw-dev, default gateway port 19001, and shift derived ports (browser/canvas)
-h, --help Display help for command
--log-level Global log level override for file + console (silent|fatal|error|warn|info|debug|trace)
--no-color Disable ANSI colors
--profile Use a named profile (isolates OPENCLAW_STATE_DIR/OPENCLAW_CONFIG_PATH under ~/.openclaw-)
-V, --version output the version number

Commands:
Hint: commands suffixed with * have subcommands. Run --help for details.
acp * Agent Control Protocol tools
agent Run one agent turn via the Gateway
agents * Manage isolated agents (workspaces, auth, routing)
approvals * Manage exec approvals (gateway or node host)
browser * Manage OpenClaw's dedicated browser (Chrome/Chromium)
channels * Manage connected chat channels (Telegram, Discord, etc.)
clawbot * Legacy clawbot command aliases
completion Generate shell completion script
config * Non-interactive config helpers (get/set/unset/file/validate). Default: starts setup wizard.
configure Interactive setup wizard for credentials, channels, gateway, and agent defaults
cron * Manage cron jobs via the Gateway scheduler
daemon * Gateway service (legacy alias)
dashboard Open the Control UI with your current token
devices * Device pairing + token management
directory * Lookup contact and group IDs (self, peers, groups) for supported chat channels
dns * DNS helpers for wide-area discovery (Tailscale + CoreDNS)
docs Search the live OpenClaw docs
doctor Health checks + quick fixes for the gateway and channels
gateway * Run, inspect, and query the WebSocket Gateway
health Fetch health from the running gateway
help Display help for command
hooks * Manage internal agent hooks
logs Tail gateway file logs via RPC
memory * Search and reindex memory files
message * Send, read, and manage messages
models * Discover, scan, and configure models
node * Run and manage the headless node host service
nodes * Manage gateway-owned node pairing and node commands
onboard Interactive onboarding wizard for gateway, workspace, and skills
pairing * Secure DM pairing (approve inbound requests)
plugins * Manage OpenClaw plugins and extensions
qr Generate iOS pairing QR/setup code
reset Reset local config/state (keeps the CLI installed)
sandbox * Manage sandbox containers for agent isolation
secrets * Secrets runtime reload controls
security * Security tools and local config audits
sessions * List stored conversation sessions
setup Initialize local config and agent workspace
skills * List and inspect available skills
status Show channel health and recent session recipients
system * System events, heartbeat, and presence
tui Open a terminal UI connected to the Gateway
uninstall Uninstall the gateway service + local data (CLI remains)
update * Update OpenClaw and inspect update channel status
webhooks * Webhook helpers and integrations

Examples:
openclaw models --help
Show detailed help for the models command.
openclaw channels login --verbose
Link personal WhatsApp Web and show QR + connection logs.
openclaw message send --target +15555550123 --message "Hi" --json
Send via your web session and print JSON result.
openclaw gateway --port 18789
Run the WebSocket Gateway locally.
openclaw --dev gateway
Run a dev Gateway (isolated state/config) on ws://127.0.0.1:19001.
openclaw gateway --force
Kill anything bound to the default gateway port, then start it.
openclaw gateway ...
Gateway control via WebSocket.
openclaw agent --to +15555550123 --message "Run summary" --deliver
Talk directly to the agent using the Gateway; optionally send the WhatsApp reply.
openclaw message send --channel telegram --target @mychat --message "Hi"
Send via your Telegram bot.