# Install OpenCrawl for all agents on this computer

For a request to install the CLI, plugins, MCP and capture, connect the detected clients in this OS account and record their **future sessions**. Reuse a working OpenCrawl sign-in. On a blank machine create a private OpenCrawl Cloud workspace. Its machine identity needs no email, payment card or browser sign-in. Older transcripts are a separate opt-in.

## Install and connect

1. Install the official CLI. On macOS and Linux run `curl -fsSL https://raw.githubusercontent.com/getopencrawl/opencrawl-core/main/cli/install.sh | sh` and put `$HOME/.local/bin` first on PATH. On Windows run `& ([scriptblock]::Create((irm https://raw.githubusercontent.com/getopencrawl/opencrawl-core/main/cli/install.ps1 -ErrorAction Stop)))` and use the installed launcher.
2. If Claude Code is installed, check `claude --version`. Its capture plugin requires 2.1.327 or newer. Upgrade an older client with `claude install latest`. Confirm the version of the executable on PATH before running setup.
3. Run `opencrawl provision --capture-new --json` when `opencrawl --help` lists that command. It reuses the current identity or creates the workspace, installs all detected supported plugins, connects native MCP and enables future capture. It skips history. On CLI 0.4.150, perform the equivalent steps below:
   - Run `opencrawl whoami --json`. If the profile has no account, run `opencrawl signup --json`. Retry an interrupted signup in the same profile.
   - Run `opencrawl setup apply --plugins all --forward all --history none --capture-mode hook --yes --json`. The all-agents installation request supplies these choices. Keep existing project exclusions.
4. Inspect the result for unsupported or outdated clients. Keep credentials inside the profile. Installation state, native MCP authentication and searchable recording are separate checks.

## Import a requested slice of past sessions

When the user asks to import the last N sessions, run `opencrawl history list --limit N --json` after provisioning. Add `--project .` from the requested project directory for a project-scoped import, or `--harness codex` to restrict the client. The limit is shared across clients and uses the latest native session activity. Read `data.sessions` and `data.tenantId` to check the selection and destination.

For an authorized import, pass the returned `data.planId` to `opencrawl history import --plan-id ID --yes --json`. The saved plan keeps the original session IDs and byte bounds, including on retry. Report the selected session count and verify with workspace search when the user needs searchable results. If the installed CLI does not list the history command, update it before importing a bounded selection.

## Verify on this computer

Read the installation ID with `opencrawl setup status --local --json`. Use `opencrawl setup next --json` for the selected clients. Claude Code loads newly installed plugins at startup. From the setup shell, run this one-time check in a fresh Claude process, substituting the installation ID from local status:

```sh
claude -p 'Verify OpenCrawl for installation INSTALLATION_ID and client claude-code. Call the native installation_status and verify_installation tools with the returned proof ID. Send its capture marker once as visible assistant text.' --allowedTools 'mcp__plugin_opencrawl_opencrawl__installation_status,mcp__plugin_opencrawl_opencrawl__verify_installation'
```

Run `opencrawl setup status --json` and check that Claude's MCP state is `authenticated` and capture proof is `verified`. While capture or indexing is pending, run `opencrawl setup wait --json` in the setup shell and follow its next action. The new process uses the existing Claude account. Each additional selected client verifies its own plugin. Respect local hook review and disabled hooks. On stock Codex, new third-party hooks may require the user's native trust review.

## Workspace limits and human ownership

Before a human claim, the workspace can make 2,000 product requests, 128 capture uploads totaling 64 MiB and 20 context suggestions per UTC day. Access tokens renew automatically during the three-day claim window.

To add a human owner, run `opencrawl signup claim --email ADDRESS --json` with their email. Give them the verification URL. After they sign in, supply their confirmation code on standard input to `opencrawl signup complete --json`. The claim preserves the workspace, installation and recordings, lifts its unclaimed limits and leaves ordinary workspace billing and usage rules in effect.

[OpenCrawl Cloud](https://app.getopencrawl.com/) · [CLI discovery](https://app.getopencrawl.com/.well-known/opencrawl-cli) · [WorkOS registration protocol](https://auth.getopencrawl.com/agent/auth.md)
