FAQ: first-run setup
Quick-start and first-run Q&A. For everyday operations, models, auth, sessions, and troubleshooting see the main FAQ.
Quick start and first-run setup
- **Claude Code**: [https://www.anthropic.com/claude-code/](https://www.anthropic.com/claude-code/)- **OpenAI Codex**: [https://openai.com/codex/](https://openai.com/codex/)
These tools can read the repo, run commands, inspect logs, and help fix your machine-levelsetup (PATH, services, permissions, auth files). Give them the **full source checkout** viathe hackable (git) install:
```bashcurl -fsSL https://remoteclaw.org/install.sh | bash -s -- --install-method git```
This installs RemoteClaw **from a git checkout**, so the agent can read the code + docs andreason about the exact version you are running. You can always switch back to stable laterby re-running the installer without `--install-method git`.
Tip: ask the agent to **plan and supervise** the fix (step-by-step), then execute only thenecessary commands. That keeps changes small and easier to audit.
If you discover a real bug or fix, please file a GitHub issue or send a PR:[https://github.com/remoteclaw/remoteclaw/issues](https://github.com/remoteclaw/remoteclaw/issues)[https://github.com/remoteclaw/remoteclaw/pulls](https://github.com/remoteclaw/remoteclaw/pulls)
Start with these commands (share outputs when asking for help):
```bashremoteclaw statusremoteclaw models statusremoteclaw doctor```
What they do:
- `remoteclaw status`: quick snapshot of gateway/agent health + basic config.- `remoteclaw models status`: checks provider auth + model availability.- `remoteclaw doctor`: validates and repairs common config/state issues.
Other useful CLI checks: `remoteclaw status --all`, `remoteclaw logs --follow`,`remoteclaw gateway status`, `remoteclaw health --verbose`.
Quick debug loop: [First 60 seconds if something is broken](/help/faq#first-60-seconds-if-something-is-broken).Install docs: [Install](/install), [Installer flags](/install/installer), [Updating](/install/updating).- `quiet-hours`: outside the configured active-hours window- `empty-heartbeat-file`: `HEARTBEAT.md` exists but only contains blank, comment, header, fence, or empty-checklist scaffolding- `no-tasks-due`: `HEARTBEAT.md` task mode is active but none of the task intervals are due yet- `alerts-disabled`: all heartbeat visibility is disabled (`showOk`, `showAlerts`, and `useIndicator` are all off)
In task mode, due timestamps are only advanced after a real heartbeat runcompletes. Skipped runs do not mark tasks as completed.
Docs: [Heartbeat](/gateway/heartbeat), [Automation](/automation).```bashcurl -fsSL https://remoteclaw.org/install.sh | bashremoteclaw onboard --install-daemon```
The wizard can also build UI assets automatically. After onboarding, you typically run the Gateway on port **18789**.
From source (contributors/dev):
```bashgit clone https://github.com/remoteclaw/remoteclaw.gitcd remoteclawpnpm installpnpm buildpnpm ui:buildremoteclaw onboard```
If you don't have a global install yet, run it via `pnpm remoteclaw onboard`.- 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` (or `REMOTECLAW_GATEWAY_TOKEN`).- Password source: `gateway.auth.password` (or `REMOTECLAW_GATEWAY_PASSWORD`).- If no shared secret is configured yet, generate a token with `remoteclaw doctor --generate-gateway-token`.
**Not on localhost:**
- **Tailscale Serve** (recommended): keep bind loopback, run `remoteclaw gateway --tailscale serve`, open `https://<magicdns>/`. If `gateway.auth.allowTailscale` is `true`, identity headers satisfy Control UI/WebSocket auth (no pasted shared secret, assumes trusted gateway host); HTTP APIs still require shared-secret auth unless you deliberately use private-ingress `none` or trusted-proxy HTTP auth. Bad concurrent Serve auth attempts from the same client are serialized before the failed-auth limiter records them, so the second bad retry can already show `retry later`.- **Tailnet bind**: run `remoteclaw gateway --bind tailnet --token "<token>"` (or configure password auth), open `http://<tailscale-ip>:18789/`, then paste the matching shared secret in dashboard settings.- **Identity-aware reverse proxy**: keep the Gateway behind a trusted proxy, configure `gateway.auth.mode: "trusted-proxy"`, then open the proxy URL. The proxy must reach the Gateway from an address the Gateway does not itself hold; loopback and own-interface proxy sources are not supported.- **SSH tunnel**: `ssh -N -L 18789:127.0.0.1:18789 user@host` then open `http://127.0.0.1:18789/`. Shared-secret auth still applies over the tunnel; paste the configured token or password if prompted.
See [Dashboard](/web/dashboard) and [Web surfaces](/web) for bind modes and auth details.- `approvals.exec`: forwards approval prompts to chat destinations- `channels.<channel>.execApprovals`: makes that channel act as a native approval client for exec approvals
The host exec policy is still the real approval gate. Chat config only controls where approvalprompts appear and how people can answer them.
In most setups you do **not** need both:
- If the chat already supports commands and replies, same-chat `/approve` works through the shared path.- If a supported native channel can infer approvers safely, RemoteClaw now auto-enables DM-first native approvals when `channels.<channel>.execApprovals.enabled` is unset or `"auto"`.- When native approval cards/buttons are available, that native UI is the primary path; the agent should only include a manual `/approve` command if the tool result says chat approvals are unavailable or manual approval is the only path.- Use `approvals.exec` only when prompts must also be forwarded to other chats or explicit ops rooms.- Use `channels.<channel>.execApprovals.target: "channel"` or `"both"` only when you explicitly want approval prompts posted back into the originating room/topic.- Plugin approvals are separate again: they use same-chat `/approve` by default, optional `approvals.plugin` forwarding, and only some native channels keep plugin-approval-native handling on top.
Short version: forwarding is for routing, native client config is for richer channel-specific UX.See [Exec Approvals](/tools/exec-approvals).If you want extra headroom (logs, media, other services), **2GB is recommended**, but it'snot a hard minimum.
Tip: a small Raspberry Pi/VPS can host the Gateway, and you can pair **nodes** on your laptop/phone forlocal screen/camera/canvas or command execution. See [Nodes](/nodes).- Use a **64-bit** OS and keep Node >= 22.- Prefer the **hackable (git) install** so you can see logs and update fast.- Start without channels/skills, then add them one by one.- If you hit weird binary issues, it is usually an **ARM compatibility** problem.
Docs: [Linux](/platforms/linux), [Install](/install).1. Restart the Gateway:
```bashremoteclaw gateway restart```
2. Check status + auth:
```bashremoteclaw statusremoteclaw models statusremoteclaw logs --follow```
3. If it still hangs, run:
```bashremoteclaw doctor```
If the Gateway is remote, ensure the tunnel/Tailscale connection is up and that the UIis pointed at the right Gateway. See [Remote access](/gateway/remote).1. Install RemoteClaw on the new machine.2. Copy `$REMOTECLAW_STATE_DIR` (default: `~/.remoteclaw`) from the old machine.3. Copy your workspace (default: `~/.remoteclaw/workspace`).4. Run `remoteclaw doctor` and restart the Gateway service.
That preserves config, auth profiles, WhatsApp creds, sessions, and memory. If you're inremote mode, remember the gateway host owns the session store and workspace.
**Important:** if you only commit/push your workspace to GitHub, you're backingup **memory + bootstrap files**, but **not** session history or auth. Those liveunder `~/.remoteclaw/` (for example `~/.remoteclaw/agents/<agentId>/sessions/`).
Related: [Migrating](/install/migrating), [Where things live on disk](/help/faq#where-things-live-on-disk),[Agent workspace](/concepts/agent-workspace), [Doctor](/gateway/doctor),[Remote mode](/gateway/remote).Newest entries are at the top. If the top section is marked **Unreleased**, the next datedsection is the latest shipped version. Entries are grouped by **Highlights**, **Changes**, and**Fixes** (plus docs/other sections when needed).If you still can't reach the site, the docs are mirrored on GitHub:[https://github.com/remoteclaw/remoteclaw/tree/main/docs](https://github.com/remoteclaw/remoteclaw/tree/main/docs)- `latest` = stable- `beta` = early build for testing
Usually, a stable release lands on **beta** first, then an explicitpromotion step moves that same version to `latest`. Maintainers can alsopublish straight to `latest` when needed. That's why beta and stable canpoint at the **same version** after promotion.
See what changed:[https://github.com/remoteclaw/remoteclaw/blob/main/CHANGELOG.md](https://github.com/remoteclaw/remoteclaw/blob/main/CHANGELOG.md)
For install one-liners and the difference between beta and dev, see the accordion below.One-liners (macOS/Linux):
```bashcurl -fsSL --proto '=https' --tlsv1.2 https://remoteclaw.org/install.sh | bash -s -- --beta```
```bashcurl -fsSL --proto '=https' --tlsv1.2 https://remoteclaw.org/install.sh | bash -s -- --install-method git```
Windows installer (PowerShell):[https://remoteclaw.org/install.ps1](https://remoteclaw.org/install.ps1)
More detail: [Development channels](/install/development-channels) and [Installer flags](/install/installer).1. **Dev channel (git checkout):**
```bashremoteclaw update --channel dev```
This switches to the `main` branch and updates from source.
2. **Hackable install (from the installer site):**
```bashcurl -fsSL https://remoteclaw.org/install.sh | bash -s -- --install-method git```
That gives you a local repo you can edit, then update via git.
If you prefer a clean clone manually, use:
```bashgit clone https://github.com/remoteclaw/remoteclaw.gitcd remoteclawpnpm installpnpm build```
Docs: [Update](/cli/update), [Development channels](/install/development-channels),[Install](/install).- **Install:** 2-5 minutes- **Onboarding:** 5-15 minutes depending on how many channels/models you configure
If it hangs, use [Installer stuck](#quick-start-and-first-run-setup)and the fast debug loop in [I am stuck](#quick-start-and-first-run-setup).```bashcurl -fsSL https://remoteclaw.org/install.sh | bash -s -- --verbose```
Beta install with verbose:
```bashcurl -fsSL https://remoteclaw.org/install.sh | bash -s -- --beta --verbose```
For a hackable (git) install:
```bashcurl -fsSL https://remoteclaw.org/install.sh | bash -s -- --install-method git --verbose```
Windows (PowerShell) equivalent:
```powershell# install.ps1 has no dedicated -Verbose flag yet.Set-PSDebug -Trace 1& ([scriptblock]::Create((iwr -useb https://remoteclaw.org/install.ps1))) -NoOnboardSet-PSDebug -Trace 0```
More options: [Installer flags](/install/installer).**1) npm error spawn git / git not found**
- Install **Git for Windows** and make sure `git` is on your PATH.- Close and reopen PowerShell, then re-run the installer.
**2) remoteclaw is not recognized after install**
- Your npm global bin folder is not on PATH.- Check the path:
```powershell npm config get prefix ```
- Add that directory to your user PATH (no `\bin` suffix needed on Windows; on most systems it is `%AppData%\npm`).- Close and reopen PowerShell after updating PATH.
For desktop setup, use the native **Windows Hub** app. For terminal-onlysetup, the PowerShell installer and WSL2 Gateway paths are both supported.Docs: [Windows](/platforms/windows).Symptoms:
- `system.run`/`exec` output renders Chinese as mojibake- The same command looks fine in another terminal profile
Quick workaround in PowerShell:
```powershellchcp 65001[Console]::InputEncoding = [System.Text.UTF8Encoding]::new($false)[Console]::OutputEncoding = [System.Text.UTF8Encoding]::new($false)$OutputEncoding = [System.Text.UTF8Encoding]::new($false)```
Then restart the Gateway and retry your command:
```powershellremoteclaw gateway restart```
If you still reproduce this on latest RemoteClaw, track/report it in:
- [Issue #30640](https://github.com/remoteclaw/remoteclaw/issues/30640)```bashcurl -fsSL https://remoteclaw.org/install.sh | bash -s -- --install-method git```
More detail: [Install](/install) and [Installer flags](/install/installer).- Linux quick path + service install: [Linux](/platforms/linux).- Full walkthrough: [Getting Started](/start/getting-started).- Installer + updates: [Install & updates](/install/updating).Guides: [exe.dev](/install/exe-dev), [Hetzner](/install/hetzner), [Fly.io](/install/fly).Remote access: [Gateway remote](/gateway/remote).- [VPS hosting](/vps) (all providers in one place)- [Fly.io](/install/fly)- [Hetzner](/install/hetzner)- [exe.dev](/install/exe-dev)
How it works in the cloud: the **Gateway runs on the server**, and you access itfrom your laptop/phone via the Control UI (or Tailscale/SSH). Your state + workspacelive on the server, so treat the host as the source of truth and back it up.
You can pair **nodes** (Mac/iOS/Android/headless) to that cloud Gateway to accesslocal screen/camera/canvas or run commands on your laptop while keeping theGateway in the cloud.
Hub: [Platforms](/platforms). Remote access: [Gateway remote](/gateway/remote).Nodes: [Nodes](/nodes), [Nodes CLI](/cli/nodes).Use the CLI:
```bashremoteclaw updateremoteclaw update statusremoteclaw update --channel stable|beta|devremoteclaw update --tag <dist-tag|version>remoteclaw update --no-restart```
If you must automate from an agent:
```bashremoteclaw update --yes --no-restartremoteclaw gateway restart```
Docs: [Update](/cli/update), [Updating](/install/updating).- **Model/auth setup** (provider OAuth, API keys, Anthropic setup-token, plus local model options such as LM Studio)- **Workspace** location + bootstrap files- **Gateway settings** (bind/port/auth/tailscale)- **Channels** (WhatsApp, Telegram, Discord, Mattermost, Signal, iMessage, plus bundled channel plugins like QQ Bot)- **Daemon install** (LaunchAgent on macOS; systemd user unit on Linux/WSL2)- **Health checks** and **skills** selection
It also warns if your configured model is unknown or missing auth.For Anthropic in RemoteClaw, the practical split is:
- **Anthropic API key**: normal Anthropic API billing- **Claude CLI / Claude subscription auth in RemoteClaw**: Anthropic staff told us this usage is allowed again, and RemoteClaw is treating `claude -p` usage as sanctioned for this integration unless Anthropic publishes a new policy
For long-lived gateway hosts, Anthropic API keys are still the morepredictable setup. OpenAI Codex OAuth is explicitly supported for externaltools like RemoteClaw.
RemoteClaw also supports other hosted subscription-style options including**Qwen Cloud Coding Plan**, **MiniMax Coding Plan**, and**Z.AI / GLM Coding Plan**.
Docs: [Anthropic](/providers/anthropic), [OpenAI](/providers/openai),[Qwen Cloud](/providers/qwen),[MiniMax](/providers/minimax), [Z.AI (GLM)](/providers/zai),[Local models](/gateway/local-models), [Models](/concepts/models).Anthropic staff told us RemoteClaw-style Claude CLI usage is allowed again, soRemoteClaw treats Claude subscription auth and `claude -p` usage as sanctionedfor this integration unless Anthropic publishes a new policy. If you wantthe most predictable server-side setup, use an Anthropic API key instead.Anthropic staff told us this usage is allowed again, so RemoteClaw treatsClaude CLI reuse and `claude -p` usage as sanctioned for this integrationunless Anthropic publishes a new policy.
Anthropic setup-token is still available as a supported RemoteClaw token path, but RemoteClaw now prefers Claude CLI reuse and `claude -p` when available.For production or multi-user workloads, Anthropic API key auth is still thesafer, more predictable choice. If you want other subscription-style hostedoptions in RemoteClaw, see [OpenAI](/providers/openai), [Qwen / ModelCloud](/providers/qwen), [MiniMax](/providers/minimax), and [GLMModels](/providers/zai).If the message is specifically:`Extra usage is required for long context requests`, the request is trying to useAnthropic's 1M context window (a GA-capable 1M Claude 4.x model or legacy`context1m: true` config). That only works when your credential is eligiblefor long-context billing (API key billing or the RemoteClaw Claude-login pathwith Extra Usage enabled).
Tip: set a **fallback model** so RemoteClaw can keep replying while a provider is rate-limited.See [Models](/cli/models), [OAuth](/concepts/oauth), and[/gateway/troubleshooting#anthropic-429-extra-usage-required-for-long-context](/gateway/troubleshooting#anthropic-429-extra-usage-required-for-long-context).- `openai/gpt-5.5` = ChatGPT/Codex subscription auth with native Codex runtime for agent turns- legacy Codex GPT-5.5 ref = legacy model route repaired by `remoteclaw doctor --fix`- `openai/gpt-5.5` plus an ordered `openai` API-key profile = API-key auth for an OpenAI agent model- legacy Codex auth profile ids = legacy auth profile id migrated by `remoteclaw doctor --fix`
If you want the direct OpenAI Platform billing/limit path, set`OPENAI_API_KEY`. If you want ChatGPT/Codex subscription auth, sign in with`remoteclaw models auth login --provider openai`. Keep the model ref as`openai/gpt-5.5`; legacy Codex model refs are legacy config that`remoteclaw doctor --fix` rewrites.RemoteClaw can show the currently visible provider usage/quota windows in`remoteclaw models status`, but it does not invent or normalize ChatGPT-webentitlements into direct API access. If you want the direct OpenAI Platformbilling/limit path, use `openai/*` with an API key.See [OAuth](/concepts/oauth), [Model providers](/concepts/model-providers), and [Onboarding (CLI)](/start/wizard).Steps:
1. Install Gemini CLI locally so `gemini` is on `PATH` - Homebrew: `brew install gemini-cli` - npm: `npm install -g @google/gemini-cli`2. Enable the plugin: `remoteclaw plugins enable google`3. Login: `remoteclaw models auth login --provider google-gemini-cli --set-default`4. Default model after login: `google-gemini-cli/gemini-3-flash-preview`5. If requests fail, set `GOOGLE_CLOUD_PROJECT` or `GOOGLE_CLOUD_PROJECT_ID` on the gateway host
This stores OAuth tokens in auth profiles on the gateway host. Details: [Model providers](/concepts/model-providers).You only need a Mac **for macOS-only tools**. For iMessage, use [iMessage](/channels/imessage) with `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. If you want other macOS-only tools, run the Gateway on a Mac or pair a macOS node.
Docs: [iMessage](/channels/imessage), [Nodes](/nodes), [Mac remote mode](/platforms/mac/remote).Common setups:
- Run the Gateway on Linux/VPS, and set `channels.imessage.cliPath` to an SSH wrapper that runs `imsg` on a Mac signed into Messages.- Run everything on the Mac if you want the simplest single-machine setup.
Docs: [iMessage](/channels/imessage), [Nodes](/nodes),[Mac remote mode](/platforms/mac/remote).Common pattern:
- Gateway on the Mac mini (always-on).- MacBook Pro runs the macOS app or a node host and pairs to the Gateway.- Use `remoteclaw nodes status` / `remoteclaw nodes list` to see it.
Docs: [Nodes](/nodes), [Nodes CLI](/cli/nodes).If you still want to experiment with Bun, do it on a non-production gatewaywithout WhatsApp/Telegram.Setup asks for numeric user IDs only. If you already have legacy `@username` entries in config, `remoteclaw doctor --fix` can try to resolve them.
Safer (no third-party bot):
- DM your bot, then run `remoteclaw logs --follow` and read `from.id`.
Official Bot API:
- DM your bot, then call `https://api.telegram.org/bot<bot_token>/getUpdates` and read `message.from.id`.
Third-party (less private):
- DM `@userinfobot` or `@getidsbot`.
See [/channels/telegram](/channels/telegram#access-control-and-activation).```bash/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"echo 'eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"' >> ~/.profileeval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"brew install <formula>```
If you run RemoteClaw via systemd, ensure the service PATH includes `/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.Docs: [Getting started](/start/getting-started), [Updating](/install/updating).From npm to git:
```bashremoteclaw update --channel dev```
From git to npm:
```bashremoteclaw update --channel stable```
Add `--dry-run` to preview the planned mode switch first. The updater runsDoctor follow-ups, refreshes plugin sources for the target channel, andrestarts the gateway unless you pass `--no-restart`.
The installer can force either mode too:
```bashcurl -fsSL https://remoteclaw.org/install.sh | bash -s -- --install-method gitcurl -fsSL https://remoteclaw.org/install.sh | bash -s -- --install-method npm```
Backup tips: see [Backup strategy](/help/faq#where-things-live-on-disk).**Laptop (local Gateway)**
- **Pros:** no server cost, direct access to local files, live browser window.- **Cons:** sleep/network drops = disconnects, OS updates/reboots interrupt, must stay awake.
**VPS / cloud**
- **Pros:** always-on, stable network, no laptop sleep issues, easier to keep running.- **Cons:** often run headless (use screenshots), remote file access only, you must SSH for updates.
**RemoteClaw-specific note:** WhatsApp/Telegram/Slack/Mattermost/Discord all work fine from a VPS. The only real trade-off is **headless browser** vs a visible window. See [Browser](/tools/browser).
**Recommended default:** VPS if you had gateway disconnects before. Local is great when you're actively using the Mac and want local file access or UI automation with a visible browser.- **Dedicated host (VPS/Mac mini/Raspberry Pi):** always-on, fewer sleep/reboot interruptions, cleaner permissions, easier to keep running.- **Shared laptop/desktop:** totally fine for testing and active use, but expect pauses when the machine sleeps or updates.
If you want the best of both worlds, keep the Gateway on a dedicated host and pair your laptop as a **node** for local screen/camera/exec tools. See [Nodes](/nodes).For security guidance, read [Security](/gateway/security).- **Absolute minimum:** 1 vCPU, 1GB RAM, ~500MB disk.- **Recommended:** 1-2 vCPU, 2GB RAM or more for headroom (logs, media, multiple channels). Node tools and browser automation can be resource hungry.
OS: use **Ubuntu LTS** (or any modern Debian/Ubuntu). The Linux install path is best tested there.
Docs: [Linux](/platforms/linux), [VPS hosting](/vps).Baseline guidance:
- **Absolute minimum:** 1 vCPU, 1GB RAM.- **Recommended:** 2GB RAM or more if you run multiple channels, browser automation, or media tools.- **OS:** Ubuntu LTS or another modern Debian/Ubuntu.
If you are on Windows, use **Windows Hub** for desktop setup, or WSL2 whenyou specifically want a Linux-style Gateway VM with broad toolingcompatibility. See [Windows](/platforms/windows), [VPS hosting](/vps).If you are running macOS in a VM, see [macOS VM](/install/macos-vm).Related
- FAQ — the main FAQ (models, sessions, gateway, security, more)
- Install overview
- Getting started
- Troubleshooting