{
  "title": "Install from GitHub (source checkout)",
  "content": "curl -fsSL https://openclaw.ai/install.sh | bash -s -- --install-method git\nbash theme={null}\nnode -v\nnpm -v\nnpm prefix -g\necho \"$PATH\"\nbash theme={null}",
  "code_samples": [
    {
      "code": "Common flags:\n\n* `--install-method npm|git`\n* `--git-dir <path>` (default: `~/openclaw`)\n* `--no-git-update` (skip `git pull` when using an existing checkout)\n* `--no-prompt` (disable prompts; required in CI/automation)\n* `--dry-run` (print what would happen; make no changes)\n* `--no-onboard` (skip onboarding)\n\n### Environment variables\n\nEquivalent env vars (useful for automation):\n\n* `OPENCLAW_INSTALL_METHOD=git|npm`\n* `OPENCLAW_GIT_DIR=...`\n* `OPENCLAW_GIT_UPDATE=0|1`\n* `OPENCLAW_NO_PROMPT=1`\n* `OPENCLAW_DRY_RUN=1`\n* `OPENCLAW_NO_ONBOARD=1`\n* `SHARP_IGNORE_GLOBAL_LIBVIPS=0|1` (default: `1`; avoids `sharp` building against system libvips)\n\n## Troubleshooting: `openclaw` not found (PATH)\n\nQuick diagnosis:",
      "language": "unknown"
    },
    {
      "code": "If `$(npm prefix -g)/bin` (macOS/Linux) or `$(npm prefix -g)` (Windows) is **not** present inside `echo \"$PATH\"`, your shell can’t find global npm binaries (including `openclaw`).\n\nFix: add it to your shell startup file (zsh: `~/.zshrc`, bash: `~/.bashrc`):",
      "language": "unknown"
    }
  ],
  "headings": [
    {
      "level": "h3",
      "text": "Environment variables",
      "id": "environment-variables"
    },
    {
      "level": "h2",
      "text": "Troubleshooting: `openclaw` not found (PATH)",
      "id": "troubleshooting:-`openclaw`-not-found-(path)"
    }
  ],
  "url": "llms-txt#install-from-github-(source-checkout)",
  "links": []
}