Caricamento in corso...
Caricamento in corso...
Last synced: Today, 22:00
Technical reference for the OpenClaw framework. Real-time synchronization with the official documentation engine.
Use this file to discover all available pages before exploring further.
This is the full reference for
openclaw onboardtext<Note> Headless/server tip: complete OAuth on a machine with a browser, then copy that agent's `auth-profiles.json` (for example `~/.openclaw/agents/<agentId>/agent/auth-profiles.json`, or the matching `$OPENCLAW_STATE_DIR/...` path) to the gateway host. `credentials/oauth.json` is only a legacy import source. </Note>
` or use allowlists.
Web search
* Pick a supported provider such as Brave, DuckDuckGo, Exa, Firecrawl, Gemini, Grok, Kimi, MiniMax Search, Ollama Web Search, Perplexity, SearXNG, or Tavily (or skip).
* API-backed providers can use env vars or existing config for quick setup; key-free providers use their provider-specific prerequisites instead.
* Skip with `--skip-search`.
* Configure later: `openclaw configure --section web`.
Daemon install
* macOS: LaunchAgent
* Requires a logged-in user session; for headless, use a custom LaunchDaemon (not shipped).
* Linux (and Windows via WSL2): systemd user unit
* Onboarding attempts to enable lingering via `loginctl enable-linger ` so the Gateway stays up after logout.
* May prompt for sudo (writes `/var/lib/systemd/linger`); it tries without sudo first.
* **Runtime selection:** Node (recommended; required for WhatsApp/Telegram). Bun is **not recommended**.
* If token auth requires a token and `gateway.auth.token` is SecretRef-managed, daemon install validates it but does not persist resolved plaintext token values into supervisor service environment metadata.
* If token auth requires a token and the configured token SecretRef is unresolved, daemon install is blocked with actionable guidance.
* If both `gateway.auth.token` and `gateway.auth.password` are configured and `gateway.auth.mode` is unset, daemon install is blocked until mode is set explicitly.
Health check
* Starts the Gateway (if needed) and runs `openclaw health`.
* Tip: `openclaw status --deep` adds the live gateway health probe to status output, including channel probes when supported (requires a reachable gateway).
Skills (recommended)
* Reads the available skills and checks requirements.
* Lets you choose a node manager: **npm / pnpm** (bun not recommended).
* Installs optional dependencies (some use Homebrew on macOS).
Finish
* Summary + next steps, including iOS/Android/macOS apps for extra features.
note
If no GUI is detected, onboarding prints SSH port-forward instructions for the Control UI instead of opening a browser.
If the Control UI assets are missing, onboarding attempts to build them; fallback is `pnpm ui:build` (auto-installs UI deps).
Non-interactive mode
Use
text--non-interactive to automate or script onboarding:
bashopenclaw onboard --non-interactive \
--mode local \
--auth-choice apiKey \
--anthropic-api-key "$ANTHROPIC_API_KEY" \
--gateway-port 18789 \
--gateway-bind loopback \
--install-daemon \
--daemon-runtime node \
--skip-skills
Add
text--json for a machine‑readable summary.
Gateway token SecretRef in non-interactive mode:
bashexport OPENCLAW_GATEWAY_TOKEN="your-token"
openclaw onboard --non-interactive \
--mode local \
--auth-choice skip \
--gateway-auth token \
--gateway-token-ref-env OPENCLAW_GATEWAY_TOKEN
text--gateway-token and text--gateway-token-ref-env are mutually exclusive.
note
`--json` does **not** imply non-interactive mode. Use `--non-interactive` (and `--workspace`) for scripts.
Provider-specific command examples live in CLI Automation.
Use this reference page for flag semantics and step ordering.
Add agent (non-interactive)
bashopenclaw agents add work \
--workspace ~/.openclaw/workspace-work \
--model openai/gpt-5.5 \
--bind whatsapp:biz \
--non-interactive \
--json
Gateway wizard RPC
The Gateway exposes the onboarding flow over RPC (
textwizard.start, textwizard.next, textwizard.cancel, textwizard.status).
Clients (macOS app, Control UI) can render steps without re‑implementing onboarding logic.
Signal setup (signal-cli)
Onboarding can install
textsignal-cli from GitHub releases:
- Downloads the appropriate release asset.
- Stores it under text
~/.openclaw/tools/signal-cli/<version>/.
- Writes text
channels.signal.cliPath to your config.
Notes:
- JVM builds require Java 21.
- Native builds are used when available.
- Windows uses WSL2; signal-cli install follows the Linux flow inside WSL.
What the wizard writes
Typical fields in
text~/.openclaw/openclaw.json:
- text
agents.defaults.workspace
- text
agents.defaults.model / textmodels.providers (if Minimax chosen)
- text
tools.profile (local onboarding defaults to text"coding" when unset; existing explicit values are preserved)
- text
gateway.* (mode, bind, auth, tailscale)
- text
session.dmScope (behavior details: CLI Setup Reference)
- text
channels.telegram.botToken, textchannels.discord.token, textchannels.matrix.*, textchannels.signal.*, textchannels.imessage.*
- Channel allowlists (Slack/Discord/Matrix/Microsoft Teams) when you opt in during the prompts (names resolve to IDs when possible).
- text
skills.install.nodeManager
- text
setup --node-manager accepts textnpm, textpnpm, or textbun.
- Manual config can still use text
yarn by setting textskills.install.nodeManager directly.
- text
wizard.lastRunAt
- text
wizard.lastRunVersion
- text
wizard.lastRunCommit
- text
wizard.lastRunCommand
- text
wizard.lastRunMode
textopenclaw agents add writes textagents.list[] and optional textbindings.
WhatsApp credentials go under
text~/.openclaw/credentials/whatsapp/<accountId>/.
Sessions are stored under text~/.openclaw/agents/<agentId>/sessions/.
Some channels are delivered as plugins. When you pick one during setup, onboarding
will prompt to install it (npm or a local path) before it can be configured.
Related docs
- Onboarding overview: Onboarding (CLI)
- macOS app onboarding: Onboarding
- Config reference: Gateway configuration
- Providers: WhatsApp, Telegram, Discord, Google Chat, Signal, BlueBubbles (iMessage), iMessage (legacy)
- Skills: Skills, Skills config
© 2024 TaskFlow Mirror
Powered by TaskFlow Sync Engine