Install
openclaw skills install @usama04/staterootInstall and set up StateRoot, the continuity layer for AI coding agents. Switch harnesses. Keep the agent: personality, plans, tools and skills, memories, learnings, and project context carry across Claude Code, Codex, Cursor, Kimi Code, OpenClaw, and other supported harnesses. Use this bootstrap skill when the user asks to install or set up StateRoot, when stateroot is missing from PATH, or when setup has not run. After setup, follow the built-in StateRoot skill for resume, checkpoint, handoff, memory, and daily workflow.
openclaw skills install @usama04/staterootSwitch harnesses. Keep the agent. StateRoot carries personality, plans, tools and skills, memories, learnings, and project context across Claude Code, Codex, Cursor, Kimi Code, OpenClaw, and other supported AI coding agents.
This is the install skill. It installs the CLI and runs global stateroot setup to connect supported harnesses. After setup, the CLI-embedded session skill becomes the default.
Docs: https://stateroot.dev/docs/getting-started/installation · https://stateroot.dev/docs/getting-started/setup
Releases: https://github.com/CognizTech/stateroot/releases
Run the check next to this SKILL.md (never writes):
sh scripts/check.sh
If scripts/check.sh is not on disk, equivalent:
command -v stateroot && stateroot --version
Stop using this skill when all of the following are true:
stateroot is on PATHstateroot setup has already been run on this machine (harness hooks / identity exist; stateroot doctor is not a hard fail)stateroot install is the non-interactive half of the same wiring; setup already does it)Then follow the built-in skill only:
stateroot skill show stateroot
That skill is what setup/init wrote into the harness. Resume, checkpoint, handoff, memory, learnings, wiki, roots — all of it lives there. If this bootstrap skill is still in context, ignore it.
Keep using this skill only when:
stateroot is missing (command not found)Unrelated questions: do not load this skill.
Three commands, in order. Exact commands — do not substitute package managers, random GitHub clones, or invented download URLs.
| Step | Scope | Command |
|---|---|---|
| 1. Install | machine | official install.sh / MSI / install.ps1 |
| 2. Setup | machine (required after install) | stateroot setup |
| 3. Init | project, only if this repo should be a StateRoot project | stateroot init |
After step 2, StateRoot can be used. Step 3 is not a substitute for setup. Never create .stateroot/ with file tools.
Platform install details: references/install.md
What gets written / privacy: references/disclosure.md
Failures: references/failures.md
Skip if stateroot --version works.
Ask before piping a remote script to a shell. Prefer that the user run the installer themselves if they hesitate. Official assets only.
Linux (x86_64):
curl -sSfL https://github.com/CognizTech/stateroot/releases/latest/download/install.sh | sh
Installs to ~/.local/bin. Put that directory on PATH if stateroot is still not found. Needs glibc 2.17 or newer (Ubuntu 16.04, Debian 9, RHEL 7, and later).
Windows: prefer the MSI: https://github.com/CognizTech/stateroot/releases/latest/download/StateRootSetup-x64.msi
irm https://github.com/CognizTech/stateroot/releases/latest/download/install.ps1 | iex
stateroot-windows-x64.exe is the portable CLI, not an installer.
macOS (Apple Silicon):
curl -sSfL https://github.com/CognizTech/stateroot/releases/latest/download/install.sh | sh
Installs the release artifact stateroot-macos-aarch64 to ~/.local/bin after SHA-256 verification. Intel Macs are not currently supported by a release binary; build from source per references/install.md.
Verify:
stateroot --version
stateroot doctor
doctor is designed to pass with zero config and zero keys. If it fails, quote the CLI output. Do not work around a broken install by writing state files.
Once per machine, immediately after the binary works. Without this, harnesses are not interfaced and the built-in skill is not the default.
Interactive is preferred:
stateroot setup
Sections: identity, harnesses, skills.
Non-TTY agent shell (same as --yes; do not use interactive read):
stateroot setup --yes
Optional:
stateroot setup --dry-run
stateroot setup --only identity,harnesses,skills
stateroot setup --config answers.yaml
Do not run --blank-slate unless the user asked to reconfigure.
stateroot install is the non-interactive harness-integration half if identity is already done. Setup is the full onboarding flow. Use setup after a fresh install.
When setup finishes, this bootstrap skill is done for the machine. Tell the user to keep using their usual agent. The built-in skill is now the default.
stateroot init is not global setup. Use it only from a project root that has no .stateroot/ and that the user wants as a StateRoot project.
stateroot init
Creates .stateroot/, registers the directory in projects.toml, seeds project stubs (Cursor rule, Claude command, AGENTS.md block), and seeds the objective / memory / first handoff from what the repo declares (README, TODO.md, git log — labeled observed; --synthesize opts into LLM enrichment, labeled unverified). Never mkdir .stateroot.
Then expire this skill.
Do not continue from this file. Do not summarize a homemade session protocol. Run stateroot skill show stateroot (or follow the copy setup already wrote into the harness) and stop.
npm / pip / a random cloneinstall.sh without asking.stateroot/ or ~/.stateroot/ with file toolssetup --blank-slate unpromptedStateRoot — for AI coding agents. Switch harnesses. Keep the agent.
StateRoot is an open-source, local-first CLI for continuity across AI coding agents. When a usage limit interrupts the work—or another harness is better for the next task—you can switch without rebuilding the working relationship and project context. Claude Code, Codex, Cursor, Kimi Code, OpenClaw, and other supported harnesses inherit the shared state around the work.
What it does:
Keywords for search: AI coding agents, cross-agent memory, shared agent context, project state, session handoff, context engineering, multi-agent workflow, agent skills, MCP, Claude Code, Codex, Cursor, developer tools, local-first, open source.
Homepage: https://stateroot.dev · Source: https://github.com/CognizTech/stateroot