快速开始和首次运行设置
I am stuck, fastest way to get unstuck
I am stuck, fastest way to get unstuck
- Claude Code: https://www.anthropic.com/claude-code/
- OpenAI Codex: https://openai.com/codex/
Heartbeat keeps skipping. What do the skip reasons mean?
Heartbeat keeps skipping. What do the skip reasons mean?
tasks: blocks migrate to independently scheduled cron jobs with openclaw doctor --fix.Docs: Heartbeat, Automation.Recommended way to install and set up OpenClaw
Recommended way to install and set up OpenClaw
pnpm openclaw onboard instead. If Control UI assets are
missing, onboarding tries to build them itself, falling back to pnpm ui:build.How do I open the dashboard after onboarding?
How do I open the dashboard after onboarding?
我在 localhost 和远程环境下该如何认证仪表盘?
我在 localhost 和远程环境下该如何认证仪表盘?
- Open
http://127.0.0.1:18789/. - If it asks for shared-secret auth, paste the configured token or password into Control UI settings.
- Token source:
gateway.auth.token(orOPENCLAW_GATEWAY_TOKEN). - Password source:
gateway.auth.password(orOPENCLAW_GATEWAY_PASSWORD). - No shared secret configured yet? Run
openclaw doctor --generate-gateway-token(oropenclaw doctor --fix --generate-gateway-token).
- Tailscale Serve (recommended): keep bind loopback, run
openclaw gateway --tailscale serve, openhttps://<magicdns>/. Withgateway.auth.allowTailscale: true, identity headers satisfy Control UI/WebSocket auth (no pasted shared secret, assumes a trusted gateway host); HTTP APIs still need shared-secret auth unless you deliberately use private-ingressnoneor trusted-proxy HTTP auth. Concurrent bad-auth Serve attempts from the same client are serialized before the failed-auth limiter records them, so a second bad retry can already showretry later. - Identity-aware reverse proxy: keep the Gateway behind a trusted proxy, set
gateway.auth.mode: "trusted-proxy", open the proxy URL. Same-host loopback proxies need explicitgateway.auth.trustedProxy.allowLoopback: true. - SSH tunnel:
ssh -N -L 18789:127.0.0.1:18789 user@gateway-host, then openhttp://127.0.0.1:18789/. Shared-secret auth still applies over the tunnel; paste the configured token or password if prompted.
为什么聊天审批会有两个 exec approval 配置?
为什么聊天审批会有两个 exec approval 配置?
approvals.exec- forwards approval prompts to chat destinations.channels.<channel>.execApprovals- makes that channel a native approval client for exec approvals.
- If the chat already supports commands and replies, same-chat
/approveworks through the shared path. - When a supported native channel can infer approvers safely, OpenClaw auto-enables DM-first native approvals if
channels.<channel>.execApprovals.enabledis unset or"auto". - When native approval cards/buttons are available, that UI is primary; only mention a manual
/approvecommand if the tool result says chat approvals are unavailable. - Use
approvals.execonly when prompts must also reach other chats or explicit ops rooms. - Use
channels.<channel>.execApprovals.target: "channel"or"both"only when you want approval prompts posted back into the originating room/topic. - Plugin approvals are separate: same-chat
/approveby default, optionalapprovals.pluginforwarding, and only some native channels keep native handling for those too.
What runtime do I need?
What runtime do I need?
pnpm is the repo package manager.
Bun can install dependencies and run package scripts, but it cannot run the OpenClaw CLI or Gateway because it lacks node:sqlite.Does it run on Raspberry Pi?
Does it run on Raspberry Pi?
Any tips for Raspberry Pi installs?
Any tips for Raspberry Pi installs?
- Use a 64-bit OS; do not use 32-bit Raspberry Pi OS.
- Add swap on 2 GB or smaller boards.
- Prefer a USB SSD over an SD card for performance and longevity.
- Prefer the hackable (git) install so you can see logs and update fast.
- Start without channels/skills, add them one by one.
- Weird binary failures (“exec format error”) are usually a missing ARM64 build for an optional skill tool.
It is stuck on wake up my friend / onboarding will not hatch. What now?
It is stuck on wake up my friend / onboarding will not hatch. What now?
openclaw configure --section model.
If you see the wake-up line with no reply and tokens stay at 0, the agent never ran.- 重启 Gateway:
- 检查状态和认证:
- Still hanging? Run:
Can I migrate my setup to a new machine without redoing onboarding?
Can I migrate my setup to a new machine without redoing onboarding?
- 在新机器上安装 OpenClaw。
- 从旧机器复制
$OPENCLAW_STATE_DIR(默认:~/.openclaw)。 - 复制你的工作区(默认:
~/.openclaw/workspace)。 - 运行
openclaw doctor并重启 Gateway 服务。
~/.openclaw/ (for example ~/.openclaw/agents/<agentId>/agent/openclaw-agent.sqlite).相关: 迁移、磁盘上的文件存放位置、
代理工作区、Doctor、
远程模式。我在哪里查看最新版本的新内容?
我在哪里查看最新版本的新内容?
Cannot access docs.openclaw.ai (SSL error)
Cannot access docs.openclaw.ai (SSL error)
docs.openclaw.ai via Xfinity
Advanced Security. Disable it or allowlist docs.openclaw.ai, then retry. Help us
get it unblocked: https://spa.xfinity.com/check_url_status.Still blocked? Docs are mirrored on GitHub:
https://github.com/openclaw/openclaw/tree/main/docs稳定版和 beta 有什么区别
稳定版和 beta 有什么区别
latest= stablebeta= early build for testing (falls back tolatestwhen beta is missing or older than the current stable release)
latest without changing the version number. Maintainers
can also publish straight to latest. That is why beta and stable can point at the
same version after promotion.See what changed: CHANGELOG.md.For install one-liners and the difference between beta and dev, see the next accordion.How do I install the beta version and what is the difference between beta and dev?
How do I install the beta version and what is the difference between beta and dev?
我怎样尝试最新内容?
我怎样尝试最新内容?
- Dev channel (existing install):
main, rebases on upstream, builds, and installs
the CLI from that checkout.- Hackable (git) install (fresh machine):
安装和引导通常要多久?
安装和引导通常要多久?
- Install: 2-5 minutes.
- QuickStart onboarding: a few minutes (loopback gateway, auto token, default workspace).
- Advanced/full onboarding: longer when provider sign-in, channel pairing, daemon install, network downloads, or skills need extra setup.
openclaw configure.Hanging? See I am stuck above.Installer stuck? How do I get more feedback?
Installer stuck? How do I get more feedback?
--verbose:install.ps1 has no dedicated verbose switch; wrap it in Set-PSDebug -Trace 1 /
-Trace 0 instead. Full flag reference: Installer flags.Windows 安装提示 git 找不到或 openclaw 未被识别
Windows 安装提示 git 找不到或 openclaw 未被识别
- Install Git for Windows, make sure
gitis on PATH. - Close and reopen PowerShell, then re-run the installer.
- Your npm global bin folder is not on PATH.
- Check it:
npm config get prefix. - Add that directory to your user PATH (no
\binsuffix needed; on most systems it is%AppData%\npm). - Close and reopen PowerShell.
Windows exec output shows garbled Chinese text - what should I do?
Windows exec output shows garbled Chinese text - what should I do?
system.run/exec output renders Chinese as mojibake; the same command
looks fine in another terminal profile.Workaround in PowerShell:The docs did not answer my question - how do I get a better answer?
The docs did not answer my question - how do I get a better answer?
How do I install OpenClaw on Linux?
How do I install OpenClaw on Linux?
- Linux quick path + service install: Linux.
- Full walkthrough: Getting Started.
- Installer + updates: Install & updates.
How do I install OpenClaw on a VPS?
How do I install OpenClaw on a VPS?
Where are the cloud/VPS install guides?
Where are the cloud/VPS install guides?
Can I ask OpenClaw to update itself?
Can I ask OpenClaw to update itself?
What does onboarding actually do?
What does onboarding actually do?
openclaw onboard is the recommended setup path. In local mode it walks through:- Model/Auth - provider OAuth, API keys, or manual auth (including local options like LM Studio); pick a default model.
- Workspace - location + bootstrap files.
- Gateway - port, bind address, auth mode, Tailscale exposure.
- Channels - built-in and official plugin chat channels: iMessage, Discord, Feishu, Google Chat, Mattermost, Microsoft Teams, QQ Bot, Signal, Slack, Telegram, WhatsApp, and more.
- Daemon - LaunchAgent (macOS), systemd user unit (Linux/WSL2), or native Windows Scheduled Task.
- Health check - starts the Gateway and verifies it is running.
- Skills - installs recommended skills and optional dependencies.
Do I need a Claude or OpenAI subscription to run this?
Do I need a Claude or OpenAI subscription to run this?
claude -p path as Agent SDK/programmatic usage that
still draws from your subscription’s plan limits - check current Anthropic billing
docs before relying on subscription behavior. For long-lived gateway hosts and shared
automation, an Anthropic API key is the more predictable choice.OpenAI Codex OAuth (ChatGPT/Codex subscription) is fully supported for agent models.
OpenClaw also supports hosted subscription-style options including Qwen Cloud
Coding Plan, MiniMax Coding Plan, and Z.AI / GLM Coding Plan.Docs: Anthropic, OpenAI,
Qwen Cloud, MiniMax, Z.AI (GLM),
Local models, Models.Can I use Claude Max subscription without an API key?
Can I use Claude Max subscription without an API key?
claude -p path OpenClaw uses as subscription-plan usage subject
to your plan’s limits, not a separate free allowance - see
Anthropic for the current billing detail and links to
Anthropic’s own support articles. For the most predictable server-side setup, use an
Anthropic API key instead.Do you support Claude subscription auth (Claude Pro or Max)?
Do you support Claude subscription auth (Claude Pro or Max)?
claude -p/Agent SDK usage
has changed over time; see Anthropic for the current state and
dated links to Anthropic’s support articles before relying on specific billing
behavior.Anthropic setup-token auth is also still a supported token path, but OpenClaw prefers
Claude CLI reuse and claude -p when available. For production or multi-user
workloads, an Anthropic API key remains the safer, more predictable choice. Other
subscription-style hosted options: OpenAI, Qwen Cloud,
MiniMax, Z.AI (GLM).Why am I seeing HTTP 429 rate_limit_error from Anthropic?
Why am I seeing HTTP 429 rate_limit_error from Anthropic?
Extra usage is required for long context requests,
the request is trying to use Anthropic’s 1M context window (a GA-capable 1M Claude 4.x
model, or legacy params.context1m: true config), and your current credential is not
eligible for long-context billing.Set a fallback model so OpenClaw keeps replying while a provider is rate-limited.
See Models, OAuth, and
Anthropic 429 extra usage required for long context.Is AWS Bedrock supported?
Is AWS Bedrock supported?
AWS_ACCESS_KEY_ID, AWS_PROFILE, AWS_BEARER_TOKEN_BEDROCK),
OpenClaw auto-enables the implicit Bedrock provider for model discovery; otherwise
set plugins.entries.amazon-bedrock.config.discovery.enabled: true or add a manual
provider entry. See Amazon Bedrock and Model providers.
An OpenAI-compatible proxy in front of Bedrock is still a valid option if you prefer a managed key flow.How does Codex auth work?
How does Codex auth work?
openai/gpt-5.6-sol for
ChatGPT/Codex subscription auth plus native Codex app-server execution.
Reauthentication preserves an existing explicit model, including
openai/gpt-5.5. If the Codex workspace does not expose GPT-5.6, select
openai/gpt-5.5 explicitly; OpenClaw does not silently downgrade. Legacy
Codex-prefixed model refs are legacy config repaired by openclaw doctor --fix. Direct OpenAI API-key access remains available for non-agent OpenAI
API surfaces and, through an ordered openai API-key profile, for agent
models too. See Model providers and
Onboarding (CLI).Why does OpenClaw still mention legacy OpenAI Codex prefix?
Why does OpenClaw still mention legacy OpenAI Codex prefix?
openai is the current provider and auth-profile id for both OpenAI API keys and
ChatGPT/Codex OAuth - OpenAI Codex is folded into it. You may still see a legacy
openai-codex prefix in older config and migration warnings:openai/gpt-5.6-sol= fresh ChatGPT/Codex subscription setup with the native Codex runtime for agent turns.openai/gpt-5.5= explicit supported selection for existing config or accounts without GPT-5.6 access.- Legacy
openai-codex/*model refs = legacy route repaired byopenclaw doctor --fix. openai/gpt-5.5plus an orderedopenaiAPI-key profile = API-key auth for an OpenAI agent model.- Legacy
openai-codexauth profile ids = legacy ids migrated byopenclaw doctor --fix.
OPENAI_API_KEY. Want ChatGPT/Codex
subscription auth? Run openclaw models auth login --provider openai. Keep
model refs under the canonical openai/* provider. Fresh subscription
setup uses exact openai/gpt-5.6-sol; doctor repairs legacy Codex-prefixed
refs without upgrading an explicit openai/gpt-5.5 selection.Why can Codex OAuth limits differ from ChatGPT web?
Why can Codex OAuth limits differ from ChatGPT web?
openclaw models status shows the currently visible provider usage/quota windows, but
does not invent or normalize ChatGPT-web entitlements into direct API access. For the
direct OpenAI Platform billing/limit path, use openai/* with an API key.Do you support OpenAI subscription auth (Codex OAuth)?
Do you support OpenAI subscription auth (Codex OAuth)?
Can I use Gemini CLI or Antigravity OAuth?
Can I use Gemini CLI or Antigravity OAuth?
google-gemini-cli runtime remains available for advanced
setups using a supported Google API-key profile. Existing valid legacy
Gemini CLI OAuth profiles remain executable for compatibility, but OpenClaw
cannot create or repair them.Details: Google, Model providers.Is a local model OK for casual chats?
Is a local model OK for casual chats?
How do I keep hosted model traffic in a specific region?
How do I keep hosted model traffic in a specific region?
models.mode: "merge" so fallbacks stay
available while respecting the regioned provider you select.Do I have to buy a Mac Mini to install this?
Do I have to buy a Mac Mini to install this?
imsg on any Mac signed into Messages - if the Gateway runs on Linux or elsewhere,
set channels.imessage.cliPath to an SSH wrapper that runs imsg on that Mac. For other
macOS-only tools, run the Gateway on a Mac or pair a macOS node.Docs: iMessage, Nodes, Mac remote mode.Do I need a Mac mini for iMessage support?
Do I need a Mac mini for iMessage support?
imsg; the Gateway can run on that
Mac, or elsewhere with an SSH wrapper cliPath.常见方案:- Gateway on Linux/VPS,
channels.imessage.cliPathset to an SSH wrapper that runsimsgon a Mac signed into Messages. - Everything on one Mac for the simplest single-machine setup.
If I buy a Mac mini to run OpenClaw, can I connect it to my MacBook Pro?
If I buy a Mac mini to run OpenClaw, can I connect it to my MacBook Pro?
system.run on that device.Common pattern: Gateway on the always-on Mac mini; MacBook Pro runs the macOS app or a
node host and pairs to the Gateway. Check with openclaw nodes status / openclaw nodes list.文档:节点、节点 CLI。Can I use Bun?
Can I use Bun?
node:sqlite; Bun does
not provide that API.Telegram: what goes in allowFrom?
Telegram: what goes in allowFrom?
channels.telegram.allowFrom is the human sender’s Telegram user ID (numeric),
not the bot username. Setup asks for numeric user IDs only; openclaw doctor --fix
can try to resolve legacy @username entries.Safer (no third-party bot): DM your bot, run openclaw logs --follow, read from.id.Official Bot API: DM your bot, call https://api.telegram.org/bot<bot_token>/getUpdates, read message.from.id.Third-party (less private): DM @userinfobot or @getidsbot.See Telegram access control.Can multiple people use one WhatsApp number with different OpenClaw instances?
Can multiple people use one WhatsApp number with different OpenClaw instances?
peer: { kind: "direct", id: "+15551234567" }) to a different agentId, giving each person their own workspace and session store. Replies still come from the same WhatsApp account; DM access control (channels.whatsapp.dmPolicy / channels.whatsapp.allowFrom) is global per account. See Multi-Agent Routing and WhatsApp.Can I run a "fast chat" agent and an "Opus for coding" agent?
Can I run a "fast chat" agent and an "Opus for coding" agent?
Does Homebrew work on Linux?
Does Homebrew work on Linux?
/home/linuxbrew/.linuxbrew/bin (or your brew prefix) so brew-installed tools
resolve in non-login shells. Recent builds also prepend common user bin dirs on Linux
systemd services (for example ~/.local/bin, ~/.npm-global/bin,
~/.local/share/pnpm, ~/.bun/bin) and honor PNPM_HOME, NPM_CONFIG_PREFIX,
BUN_INSTALL, VOLTA_HOME, ASDF_DATA_DIR, NVM_DIR, and FNM_DIR when set.Difference between the hackable git install and npm install
Difference between the hackable git install and npm install
Can I switch between npm and git installs later?
Can I switch between npm and git installs later?
openclaw update --channel ... on an existing install. This does not
delete your data - only the OpenClaw code install changes. State (~/.openclaw) and
workspace (~/.openclaw/workspace) stay untouched.npm to git:--dry-run to preview the planned mode switch first. The updater runs Doctor
follow-ups, refreshes plugin sources for the target channel, and restarts the gateway
unless you pass --no-restart.安装器也可以强制任一模式:Should I run the Gateway on my laptop or a VPS?
Should I run the Gateway on my laptop or a VPS?
- Pros: no server cost, direct access to local files, a live browser window.
- Cons: sleep/network drops disconnect it, OS updates/reboots interrupt it, must stay awake.
- Pros: always-on, stable network, no laptop sleep issues, easier to keep running.
- Cons: often headless (use screenshots), remote file access only, SSH needed for updates.
How important is it to run OpenClaw on a dedicated machine?
How important is it to run OpenClaw on a dedicated machine?
- Dedicated host (VPS/Mac mini/Raspberry Pi): always-on, fewer sleep/reboot interruptions, cleaner permissions, easier to keep running.
- Shared laptop/desktop: fine for testing and active use, but expect pauses when the machine sleeps or updates.
What are the minimum VPS requirements and recommended OS?
What are the minimum VPS requirements and recommended OS?
Can I run OpenClaw in a VM and what are the requirements?
Can I run OpenClaw in a VM and what are the requirements?
- Absolute minimum: 1 vCPU, 1 GB RAM.
- Recommended: 2 GB+ RAM for multiple channels, browser automation, or media tools.
- OS: Ubuntu LTS or another modern Debian/Ubuntu.
相关内容
- FAQ - the main FAQ (models, sessions, gateway, security, more)
- Install overview
- Getting started
- Troubleshooting