# Setup Guide [Back to README](../../README.md) ## Source Development Prerequisites Use Node.js 24.18.0 (the repository `.nvmrc`) for installs, tests, and local launches. Electron's maintained installer requires Node.js 22.12.0 or newer. Node 24.16.x and 24.17.x have a known stream compatibility regression that can silently truncate ZIP extraction when an older `extract-zip` / `yauzl` chain is present ([nodejs/node#63487](https://github.com/nodejs/node/issues/63487)). The current Electron dependency no longer uses that chain, but 24.18.0 is the supported development baseline for the repository and for adjacent tooling. If Electron reports a missing Framework or the integrity check fails, remove the whole package and reinstall; do not create only `path.txt`: ```bash rm -rf node_modules/electron npm install ``` PowerShell equivalent: ```powershell Remove-Item -Recurse -Force node_modules/electron npm install ``` For custom development distributions, a Linux launch with `ELECTRON_OVERRIDE_DIST_PATH` mirrors Electron's resolver and falls back to the `electron` executable at the override root when `path.txt` is absent. macOS and Windows overrides must retain Electron's exact standard `path.txt` because their supported executable layouts use an app bundle and `electron.exe` rather than the Linux root executable. ## Agent Setup Fresh installs enable and install only Claude Code and Codex by default. For other local agents, open **Settings → AI Coding Tools** and click **Install** for that agent first; after that, Clawd keeps the hook/plugin/extension synced on launch while the agent remains enabled. Turning an enabled agent off stops event intake but does not uninstall files. To uninstall, expand the agent card below its settings, click **Disconnect…**, then click **Uninstall** in the revealed row; that removes only Clawd-managed hook/plugin/extension entries and also disables the agent. Cards for agents that are not installed yet can be expanded too: **Open the intake without installing local files** is only for when the tool runs on an SSH host or in WSL and you installed its hooks yourself. **Custom HTTP agents** — Settings can register another local executable and assign it a stable `custom-...` ID, but registration does not install a hook or make the application report events automatically. Custom agents are state-only in v1: the application or an adapter must POST lifecycle events to Clawd's runtime `/state` endpoint, and permission decisions stay in the application's own UI. See [custom-agent-http.md](custom-agent-http.md) for dynamic port discovery, payloads, platform examples, and removal/disable behavior. **Claude Code** — works out of the box. Hooks are auto-registered on launch. Versioned hooks (`PreCompact`, `PostCompact`, `StopFailure`) are registered only when Clawd can positively detect a compatible Claude Code version; if detection fails (common for packaged macOS launches), Clawd falls back to core hooks and removes stale incompatible versioned hooks automatically. Beyond watching the directory `~/.claude/settings.json` lives in, Clawd also runs a read-only health check every 5 minutes — this catches the hook script being deleted from somewhere like a system Temp folder even when `settings.json` itself never changes. If the same problem fails to auto-repair 3 times in a row, Clawd stops retrying automatically and Doctor will prompt for a manual Fix; if the currently-installed hook script itself is missing (a broken install), Clawd won't blindly rewrite the config — it'll prompt you to reinstall or re-extract instead. ### Claude Code usage: official status line, not scraping Local Claude usage collection is **off by default**. You can opt in under **Settings → AI Coding Tools → Claude Code → Read local Claude quota and context usage**. With an empty status-line slot, enabling it adds Clawd's visible `statusLine.command` to `~/.claude/settings.json`. This uses Claude Code's documented extension mechanism, not a private or reverse-engineered endpoint. Claude Code's [official status-line documentation](https://code.claude.com/docs/en/statusline) provides `context_window.current_usage`, `context_window.context_window_size`, and (when available) `rate_limits` in the JSON sent to a status-line command. It also states that the command runs locally without consuming API tokens. The data path is: 1. After a normal Claude Code interaction, Claude Code itself sends its documented status-line JSON to the configured command over stdin. 2. Clawd reads the reported input-token usage and context-window size, plus subscription quota when Claude Code supplies it, and renders a short, visible terminal status line. 3. Clawd sends the normalized context snapshot and available quota only to its own loopback service at the port in `~/.clawd/runtime.json` (normally `127.0.0.1:23333-23337`). For an explicitly deployed SSH profile, that loopback connection travels through the user-configured reverse SSH tunnel back to the local Clawd app. For this feature, Clawd does **not** make an additional request to Anthropic, scrape `claude.ai`, invoke `/usage`, or read Claude authentication cookies/tokens. It forwards only normalized token counts/window size and available quota percentages/reset times—not prompt or transcript content. Quota availability still follows Claude Code's contract: `rate_limits` may be absent even though context-window data is present. Clawd is only a viewer of values reported by Claude Code. It does not calculate, change, bypass, or enforce Anthropic subscription limits. If a quota window is absent, delayed, or changes semantics upstream, Clawd can only omit or display the data Claude Code supplied; it is not the source of the account limit. #### Model-scoped Claude quota (for example Fable) Claude may enforce a model-scoped weekly limit in addition to the general 5-hour and weekly limits. For example, Anthropic documents that eligible Max and premium-seat subscriptions can use Fable up to a model-specific portion of the account's weekly allowance and can track both values in Claude's own Usage settings. This is analogous at the product level to a separately identified model quota, but it is not currently exposed through the same integration surface Clawd uses. As of August 15, 2026, Claude Code's documented status-line contract exposes only `rate_limits.five_hour` and `rate_limits.seven_day`. During investigation we observed Claude Code's internal local cache representing Fable as a `weekly_scoped` item under `cachedUsageUtilization.utilization.limits`, and the official client itself uses an internal `/api/oauth/usage` request to obtain richer usage data. Neither that cache schema nor that endpoint is documented as a stable third-party integration contract. Clawd therefore intentionally does **not** read Claude Code's internal usage cache, read or refresh Claude OAuth credentials, or call the undocumented usage endpoint. Consequently, a Fable/model-scoped limit can appear in Claude's own Usage settings without appearing in Clawd. This is an upstream visibility boundary, not a failure to parse the documented `rate_limits` object: adding another display provider would not help unless a supported source supplies the additional bucket. Technical feasibility is not treated as platform support. Clawd will reconsider model-scoped Claude quota when Anthropic exposes it through the documented status-line payload, documents a read-only third-party usage interface, or otherwise explicitly supports that integration. Until then, missing Fable quota is expected behavior. See Anthropic's [Fable plan explanation](https://support.claude.com/en/articles/15424964-claude-fable-5-on-your-plan) and Claude Code's [official status-line schema](https://code.claude.com/docs/en/statusline). The status line is visible and Claude Code provides a single user-level slot. If another status line (such as Orca) already owns it, enabling collection asks whether to preserve that display and collect usage alongside it. Cancel leaves the slot and collection preference unchanged. Confirm saves the full original registration in `~/.claude/hooks/clawd-statusline-local-chain.json`, then forwards the same JSON input to its command while Clawd collects usage locally. The original command keeps its working directory, environment, and stdout; its padding and refresh settings are retained. If the slot changes during confirmation, Clawd refuses the stale request. Startup and repair never acquire a new third-party slot automatically. Turning collection off restores a verified original registration (or removes a plain Clawd-owned slot) and immediately clears cached local Claude quota, while preserving Remote SSH quota and every non-Claude provider. A missing, corrupt, or mismatched recovery record stops automatic changes: keep the record and inspect the reported path instead of deleting it. If another tool has replaced the wrapper, Clawd leaves its new configuration alone. Local coexistence runs POSIX commands through `/bin/sh`; Windows uses Git Bash when available, otherwise PowerShell. Shell-specific inline commands should explicitly invoke their interpreter, just as script files use their shebang. Hung commands are capped at three seconds. These runner checks do not establish compatibility with every third-party statusline or a live Claude UI session. Without the Clawd statusline, ordinary Claude hooks still report transcript input-token usage. Clawd uses a closed list of known stock Claude IDs for a compatibility denominator; an empty, custom, or unknown model ID shows used tokens with an unknown limit instead of guessing 200K. For a custom provider's reported window to match Claude Code's `/context`, enable the usage statusline so Claude Code's own `context_window_size` becomes authoritative while transcript hooks continue refreshing the used count. Running `npm run install:claude-hooks` for a local hook repair does not opt in. The explicit debug form `npm run install:claude-hooks -- --statusline` can install and display Clawd's statusline, but the app still discards its local context/quota POSTs while the Settings switch is off; the next local startup reconcile also removes that Clawd-managed debug slot. Remote SSH deployment is a separate explicit action; when a remote already has its own status line, select **Chain into an existing statusline on deploy** to preserve and restore that registration. If that account already uses Clawd's local coexistence mode, remote statusline registration refuses to convert it and preserves its configuration and recovery record. First turn off local Claude usage collection in Clawd on that account, verify the original statusline is restored, then deploy remotely with the desired remote chain setting. If local restoration fails, retain and inspect the reported recovery record instead of deleting it or forcing deployment. **Codex CLI** — works out of the box. Clawd auto-registers official Codex hooks in `~/.codex/hooks.json` when Codex is installed, and enables `[features].hooks = true` unless the user explicitly set hooks to `false`. The installer migrates the deprecated `[features].codex_hooks` key to `hooks` while preserving an explicit false value. Local installs use stable platform entries under `~/.codex/clawd-hooks/`: Windows reads a managed UTF-8/Base64 data sidecar inside Codex's existing PowerShell command process (with a separate JSON health manifest for Doctor), while POSIX uses a small `/bin/sh` wrapper plus manifest. No unsigned `.ps1` is executed. Codex therefore needs one review for the initial install or migration but does not ask again merely because Clawd, its development worktree, or its Node executable changed. Windows and WSL keep separate execution targets when they share `CODEX_HOME`. The official hook path gives live state updates plus real Allow/Deny permission bubbles. **Settings → AI Coding Tools → Codex → Start with Codex** separately controls whether a local Codex `SessionStart` may cold-launch Clawd; turning it off keeps state and approval integration available whenever Clawd is already running. Fresh installs default this switch off, while upgrades preserve the prior on behavior. Remote SSH and WSL hooks never cold-launch the desktop app. JSONL polling of `~/.codex/sessions/` remains as a state/metadata fallback for hook-disabled sessions and events Codex hooks do not cover; approval prompts are no longer inferred from JSONL. Codex `request_user_input` calls are detected from that transcript stream: Clawd plays the notification reaction and shows a read-only preview of the questions/options. Answer in Codex itself; the card never injects a choice and closes when the matching tool output is recorded. **Copilot CLI** — install it from **Settings → AI Coding Tools** when you want local Copilot CLI tracking. Once installed and enabled, Clawd auto-registers hooks in `/hooks/hooks.json` on launch (marker-based merge — your other hook entries and `hooks/*.json` files are preserved). Remote SSH installs are automatic via the in-app **Settings → Remote SSH → Deploy / Repair Hooks**. If `hooks.json` or `settings.json` has `disableAllHooks: true`, doctor reports a warning and skips the Fix button. See [copilot-setup.md](copilot-setup.md) for manual fallback and `COPILOT_HOME` notes. **Gemini CLI** — hooks live in `~/.gemini/settings.json`. Install it from **Settings → AI Coding Tools** when you want local Gemini tracking; after that Clawd keeps the hooks synced on launch while Gemini remains enabled. You can also run `npm run install:gemini-hooks` manually. **Antigravity CLI (agy)** — hooks live in `~/.gemini/config/hooks.json`. Install it from **Settings → AI Coding Tools** when you want local agy tracking; after that Clawd keeps the hooks synced on launch while agy remains enabled. You can also run `npm run install:antigravity-hooks` manually. Clawd is a **state-only** integration for agy: it reflects working / idle / attention state on the pet but **does not show permission bubbles**. Every Allow / Deny / Always-allow choice happens in agy's own 5-option terminal menu — choose the menu item labeled "Persist to settings.json" when you want a permanent rule. The Clawd-on-top approach was abandoned after dogfooding showed it yielded 8-10 confirmations per task; PreToolUse hook is intentionally not registered. **Cursor Agent** — hooks live in `~/.cursor/hooks.json`. Install it from **Settings → AI Coding Tools** when you want local Cursor Agent tracking; after that Clawd keeps the hooks synced on launch while Cursor Agent remains enabled. You can also run `npm run install:cursor-hooks` manually. Clawd can display the chat name from Cursor's standard desktop profile when Node's SQLite module is available (Node 22.13+, 23.4+, or 24+; Node 22.12 needs the experimental SQLite flag). When the name is unavailable, Clawd uses a safe first prompt line; secret-looking lines are omitted. State tracking continues even when the title cannot be read. Custom Cursor `--user-data-dir` locations use the same fallback. **CodeBuddy** — uses Claude Code-compatible hooks in `~/.codebuddy/settings.json`. Install it from **Settings → AI Coding Tools** when you want local CodeBuddy tracking; after that Clawd keeps the hooks synced on launch while CodeBuddy remains enabled. The PermissionRequest entry uses the versioned marker `clawd-on-desk.permission.v1`; registration and uninstall leave unrelated HTTP hooks—including a third-party hook named only `clawd`—untouched. Bare `node hooks/codebuddy-install.js` preserves an existing marker-owned custom permission URL. Use `--permission-url local` to explicitly restore the local Clawd endpoint, or `--permission-url https://example/permission` to explicitly set a custom HTTP(S) endpoint. **Grok Build** — uses Claude Code-compatible hooks in `~/.grok/hooks/clawd-on-desk.json` (or `$GROK_HOME/hooks/clawd-on-desk.json`). Install it from **Settings → AI Coding Tools** when you want local Grok tracking; after that Clawd keeps the hooks synced on launch while Grok remains enabled. You can also run `node hooks/grok-install.js` manually. Integration is **state + Notification only**: Grok has no blocking `PermissionRequest` hook, so Clawd never registers `/permission`. Allow/Deny stays in the Grok TUI. A permission prompt can still ring the pet via Notification. **WorkBuddy** — uses Claude Code-compatible hooks in `~/.workbuddy-ai/settings.json` (current WorkBuddy AI) or `~/.workbuddy/settings.json` (legacy builds). Install it from **Settings → AI Coding Tools** when you want local WorkBuddy tracking; after that Clawd keeps the hooks synced on launch while WorkBuddy remains enabled. You can also run `node hooks/workbuddy-install.js` manually. WorkBuddy is a macOS/Windows Electron desktop app with no standalone Linux/WSL CLI; state-driven animations have been verified on macOS. Integration is **state + Notification only**: the desktop app always handles permission approval inside its own native sandbox and GUI confirmation cards, so Clawd never registers a `/permission` HTTP hook. A permission prompt reaches Clawd only as a waiting-for-confirmation Notification carrying its `session_id` — the bell/attention cue works (verified on Windows), but the approve/deny decision stays inside WorkBuddy. WorkBuddy does not send `SessionEnd`, so a finished conversation stays in the HUD until it idles past the session timeout (`workbuddy-desktop-idle-timeout`) or WorkBuddy quits; when Clawd can read WorkBuddy's local database, archiving or deleting a conversation retires its card within a few seconds instead, and if the database is unreadable it still waits for that idle timeout. **Kiro CLI** — install it from **Settings → AI Coding Tools** when you want local Kiro tracking, or run `npm run install:kiro-hooks` if you want hooks registered before launching Clawd. Kiro's built-in `kiro_default` agent is not backed by an editable JSON file, so Clawd creates a custom `clawd` agent and re-syncs it from the latest `kiro_default` each time Clawd starts after the integration is installed, then appends hooks. Use `kiro-cli --agent clawd` for a new chat, or `/agent swap clawd` inside an existing Kiro session, when you want hooks enabled. On macOS and Windows, state-driven animations have been verified; native terminal permission prompts such as `t / y / n` still need to be answered in the terminal. **Kiro IDE** — install from Settings → AI Coding Tools, or run `npm run install:kiro-desktop-hooks`. Global hooks in `~/.kiro/hooks/clawd-on-desk.json` report activity in trusted workspaces. Local session records drive the waiting badge and read-only confirmation/question reminder. “Go to Kiro” returns to the IDE. Turn off reminder cards with the agent’s reminder switch while retaining the waiting animation and badge. Uninstall with `npm run uninstall:kiro-desktop-hooks`. Kiro CLI is a separate integration. **KiroCrew** — Install the optional state-only gateway bridge from **Settings → AI Coding Tools**, or run `npm run install:kirocrew-hooks`; uninstall with `npm run uninstall:kirocrew-hooks`. Hooks are stored in `~/.kiro/crew/hooks.json` (or `/hooks.json`) and cover AgentSpawn, UserPromptSubmit, PostToolUse, and Stop. Stop the KiroCrew gateway before installing or uninstalling, then start it so it loads the changed file. The bridge does not register PreToolUse or permission hooks; approvals stay in KiroCrew. It does not use the gateway-provided cwd as a project path. **Kimi Code** — Clawd supports both Kimi generations through one integration. The modern Kimi Code (TypeScript CLI) keeps hooks in `~/.kimi-code/config.toml` and the legacy Kimi CLI (Python, discontinued upstream) in `~/.kimi/config.toml`; Clawd installs into whichever directories exist (both, if both are present). Install it from **Settings → AI Coding Tools**; after that Clawd keeps the hooks synced on launch while Kimi remains enabled. You can also run `npm run install:kimi-hooks` manually. Kimi is hook-only in Clawd: state updates and permission notifications come from hook events, not log polling. On Kimi Code, permission bubbles are driven by the CLI's native `PermissionRequest`/`PermissionResult` hook events — they show the exact command awaiting approval and clear as soon as you answer in the terminal, with no configuration needed. If you migrated from the legacy CLI using Kimi Code's built-in migration, Clawd's next sync automatically upgrades the copied hook entries to the new format (the old env-prefix command style does not execute on Windows). On legacy `~/.kimi` installs the permission cue **defaults to the suspect heuristic**: current kimi-cli versions never emit explicit permission fields on `PreToolUse` (verified on 1.37 and 1.49), so the old explicit-only default meant the cue never fired at all. The installer persists the mode as a `--permission-mode=suspect` flag on each hook `command`; a previously chosen mode — including `explicit` — is always preserved across re-syncs, never flipped (installs made with the retired `CLAWD_KIMI_PERMISSION_MODE=…` env-prefix form are migrated to the flag with their value intact). To opt out, set `CLAWD_KIMI_PERMISSION_MODE=explicit` before running the installer (persists it), or set it at kimi-cli runtime as a temporary override — runtime env vars always beat the persisted flag. Trade-off to know about: with the suspect heuristic, a *pre-approved* gated command that runs longer than ~0.8s briefly shows a false-alarm cue (the card auto-closes after a few seconds; the pet keeps its notification pose until the tool finishes). Turn off Kimi's permission cues entirely from **Settings → AI Coding Tools** if that bothers you. Heads up: the auto-sync rewrites the `command` field in-place if it diverges from the expected line, so manual edits to that field will be silently restored on the next launch. **Kimi Code subscription quota (experimental)** — Logging into Kimi Code is not enough for Clawd to read quota: the CLI's public hook/status-line payloads do not contain managed usage. Expand **Kimi Code** under **Settings → AI Coding Tools**, open its **Quota** group, click **Connect Kimi key…**, open Kimi Console, create a dedicated Kimi Code API Key, paste it into the revealed panel, and choose **Connect**. The connected Key account's rolling 5-hour and weekly percentages then appear in Orbit and Dashboard. Once connected, the card leads with the connection status and last refresh instead of the Key field: **Refresh** is the single primary action, **Replace key** folds out only on demand, and **Disconnect** / **Forget local key** sit apart in a separated danger zone with their consequences spelled out. This integration is manual-only: Clawd contacts Kimi only for Connect, Replace Key, Reconnect, or Refresh, never on startup or in the background. The Key is not read-only—it can call models, consume subscription quota, and may spend Extra Usage—so Clawd stores only a system-vault-encrypted ciphertext and refuses Linux's weak `basic_text` backend. Disconnect stops quota checks but keeps the encrypted local Key, so **Reconnect** can revive it later without re-pasting; Forget local key removes only Clawd's copy. Neither action revokes the still-valid remote Key, which must be revoked separately in [Kimi Console](https://www.kimi.com/code/console). The usage endpoint is experimental, and Clawd cannot prove that the Key belongs to the same account currently logged into the TUI. **Qwen Code** — hooks live in `~/.qwen/settings.json`. Install it from **Settings → AI Coding Tools** when you want local Qwen tracking; after that Clawd keeps the hooks synced on launch while Qwen remains enabled. You can also run `npm run install:qwen-hooks` manually. Qwen Code support is hook-only: state updates and blocking `PermissionRequest` approvals come from Qwen hook events. If `disableAllHooks: true` is present in Qwen settings, Clawd can register entries but Qwen will not fire them until the flag is removed. **ZCode** — config-file hooks live under `hooks.events.*` in `~/.zcode/cli/config.json`. Install it from **Settings → AI Coding Tools** when you want local ZCode tracking; after that Clawd keeps all seven supported events synced while ZCode remains enabled — six state events plus a blocking `PermissionRequest` approval hook (manual allow/deny from the Clawd bubble or remote approval; when Clawd yields no decision, ZCode's own permission flow takes over). Global and per-session permission automation deliberately defer for ZCode until its tool surface and session identity are audited. You can also run `npm run install:zcode-hooks` manually. Start a new ZCode session after installing so it loads the current hook configuration. ZCode requires `hooks.enabled: true` to run config-file hooks: Clawd supplies that value when it is absent, but preserves an explicit global `hooks.enabled: false` and any per-hook `enabled: false`. Doctor reports those explicit opt-outs without offering a Fix that would override them. If ZCode imported an older Claude configuration, Clawd removes only imported commands that clearly reference its own `clawd-hook.js` from the ZCode config and never edits `~/.claude/settings.json`. **CodeWhale** — lifecycle hooks live in `~/.codewhale/config.toml` (`[[hooks.hooks]]` entries). Install it from **Settings → AI Coding Tools** when you want local CodeWhale tracking; after that Clawd keeps the hooks synced on launch while CodeWhale remains enabled. You can also run `npm run install:codewhale-hooks` manually. Phase 1 is state-only: Clawd drives lifecycle/tool/mode animations but does not show permission bubbles or track subagents. See [codewhale-setup.md](codewhale-setup.md) for details and troubleshooting. **Reasonix CLI** — hooks live in `/settings.json` (`~/.reasonix/settings.json` on macOS/Linux, `%APPDATA%\reasonix\settings.json` on current Windows releases). On Windows, Clawd also follows Reasonix's compatibility fallback to the legacy `~/.reasonix/settings.json`; uninstall removes only Clawd-managed entries from both locations. Install it from **Settings → AI Coding Tools** when you want local Reasonix tracking; after that Clawd keeps the active hooks synced on launch while Reasonix remains enabled. You can also run `npm run install:reasonix-hooks` manually. Phase 1 is state-only: Clawd drives lifecycle, tool, notification, compaction, and subagent-stop animations but leaves permission decisions in Reasonix's own terminal flow. **opencode** — uses the effective plugin config under `~/.config/opencode/`: `config.json` → `opencode.json` → `opencode.jsonc`, with the later file winning. Install it from **Settings → AI Coding Tools** when you want local opencode tracking; after that Clawd keeps the plugin synced on launch while opencode remains enabled. You can also run `node hooks/opencode-install.js` manually. When host detection confirms opencode 2.x (`@opencode/cli`), Clawd writes its entry only under `plugins` and removes Clawd-owned entries from `plugin`. A detected v1 host keeps the existing v1 registration path and only clears Clawd-owned v2 leftovers; unknown detection leaves the v2 key untouched. This protects opencode 1.18.15 and older, which reject the `plugins` key. If detection cannot find a known installed host, set `CLAWD_OPENCODE_HOST=v1` or `v2` for the Clawd process only when you know which major version will load the config, then rerun Install/Repair. On v2 the plugin runs inside opencode's shared background service — run `opencode service restart` after Install/Repair to load the updated plugin; "Go to terminal" focus is degraded for v2 sessions (the service owns no terminal). **MiMo Code** — uses the effective plugin config under `~/.config/mimocode/`: `config.json` → `mimocode.json` → default `mimocode.jsonc`, with the later file winning. Install it from **Settings → AI Coding Tools** when you want local MiMo Code tracking; after that Clawd keeps the winning plugin entry synced on launch while MiMo Code remains enabled. You can also run `npm run install:mimocode-plugin` manually. MiMo Code shares the same `@mimo-ai/plugin` SDK, zero-latency event streaming, and Allow/Always/Deny permission behavior as opencode. In both integrations, child sessions spawned by the `task` tool are headless and do not participate in the visible multi-session animation fanout. **Pi** — uses a global extension directory at `~/.pi/agent/extensions/clawd-on-desk`. Install it from **Settings → AI Coding Tools** when you want local Pi tracking; after that Clawd keeps the extension synced on launch while Pi remains enabled. You can also run `npm run install:pi-extension` manually. Interactive Pi sessions report lifecycle and tool activity to Clawd, but Pi is state-only: Clawd does not show permission bubbles, does not call Pi terminal confirmation, and preserves Pi's default YOLO execution behavior. **OMP (oh-my-pi)** — uses a per-agent extension directory: `~/.omp/agent/extensions/clawd-on-desk` in the default environment. Install it from **Settings → AI Coding Tools** when you want local OMP tracking; after that Clawd keeps the extension synced on launch while OMP remains enabled. You can also run `node hooks/omp-install.js` manually, and `node hooks/omp-install.js --uninstall` to remove it. Clawd mirrors OMP's process-environment rules — `PI_CONFIG_DIR` moves the config root, `PI_CODING_AGENT_DIR` relocates the profile-less default, and `OMP_PROFILE` (falling back to `PI_PROFILE` only when undefined) selects `~/.omp/profiles//agent`; `default` or an explicitly empty `OMP_PROFILE` selects the default profile. OMP can additionally load directory overrides from home/config/agent/project `.env` files, and a project-local value varies by working directory, so run the manual installer inside that target OMP environment when it differs from Clawd's. Doctor names other on-disk default/named profiles it does not manage. Interactive OMP sessions report lifecycle and tool activity to Clawd, but OMP is state-only: Clawd shows no permission bubbles and preserves OMP's own execution behavior. If the community bridge `clawd-on-desk-omp.ts` is present in that extensions directory, Clawd skips installing its own extension (and retires only a copy it verifiably wrote earlier) so OMP never loads both and reports every event twice; Doctor reports that bridge as the intentional owner instead of offering a broken Fix action. **OpenClaw** — uses a plugin path under `~/.openclaw/openclaw.json`. Install it from **Settings → AI Coding Tools** when you want local OpenClaw tracking; after that Clawd keeps the plugin synced on launch while OpenClaw remains enabled. You can also run `npm run install:openclaw-plugin` manually to let OpenClaw's CLI handle first-time setup. Phase 1 is state-only and targets local `openclaw tui --local` sessions. **Hermes Agent** — install Hermes from [hermes-agent.org](https://hermes-agent.org/) or [NousResearch/hermes-agent](https://github.com/NousResearch/hermes-agent), then install the Clawd integration from **Settings → AI Coding Tools** when you want local Hermes tracking. Once the integration is installed and Hermes exists (`%LOCALAPPDATA%\hermes` on Windows or `~/.hermes` on macOS/Linux), Clawd copies its plugin into Hermes' managed plugin directory and enables it through `hermes plugins enable clawd-on-desk`. You can force a manual sync with `npm run install:hermes-plugin`, or remove Clawd's Hermes plugin with `npm run uninstall:hermes-plugin`. Hermes supports state, sessions, terminal focus, and supported permission bubbles; see [known-limitations.md](known-limitations.md) for the current boundary. For a Hermes install that lives on a remote host, deploy it from **Settings → Remote SSH** instead — the Phase 1 scope and the gateway-restart rule are in [guide-remote-ssh.md](guide-remote-ssh.md). **QwenWork (千问办公)** — agent id `qwenwork`; hooks live in `~/.QwenWorkCN/settings.json` (that is QwenWork's real user-data home, not the `~/.qwenwork` path its hooks docs mention). Install it from **Settings → AI Coding Tools** when you want local QwenWork tracking; after that Clawd keeps the hooks synced on launch while QwenWork remains enabled. You can also run `npm run install:qwenwork-hooks` manually, and `npm run uninstall:qwenwork-hooks` to remove them. - **Platforms:** macOS and Windows desktop only. [qwenwork.cn/download](https://qwenwork.cn/download) ships macOS 14+, Windows 10+ and HarmonyOS 6.1+; there is no Linux client, so QwenWork does not appear as a WSL pairing target and has no Linux process name. - **Hook-only, state-only:** Clawd drives animations, the Session HUD and the Dashboard from QwenWork's lifecycle events. `PermissionRequest` / `PermissionDenied` are observed only and mapped to `working` (they fire 40+ times per task as part of normal tool use, so mapping them to `notification` would flash constantly). - **Clawd never decides:** the hook's stdout is always `{}` on every path — success, unknown event, or error. Clawd registers no `/permission` endpoint, produces no Allow / Deny, and QwenWork is not part of permission automation eligibility. Every approval stays in QwenWork's own permission flow. - **No startup recovery:** the QwenWork desktop process is long-lived, so its presence is not evidence that a turn is running. Clawd only reacts to hook events. - **Windows command form:** entries use the portable `node "