Skip to content

Shell installer: curl-based headless install for nodespaced and nodespace CLI #1182

Closed

Description

@malibio

Overview

Provide a curl | sh installer for users who want NodeSpace as a headless knowledge graph backend without the desktop UI. This is the primary install path for developers and power users who want to use NodeSpace via CLI and AI agent integrations (MCP, skill) without opening a desktop app.

Problem Statement

The DMG install path (#1179) requires the Tauri desktop app. Users who want NodeSpace purely as a backend for AI agent tool access — no UI, just nodespaced running and nodespace CLI available — have no install path. This is a significant gap given that NodeSpace's value proposition includes headless operation (ADR-031).

Proposed Solution

A shell script hosted at https://install.nodespace.app/install.sh (served via Cloudflare) that:

  1. Detects platform and architecture (macOS arm64/x86_64, Linux arm64/x86_64)
  2. Fetches the latest release version from GitHub releases API
  3. Downloads nodespaced and nodespace binaries from GitHub release artifacts
  4. Verifies SHA256 checksums
  5. Installs to ~/.nodespace/bin/
  6. Registers launchd agent on macOS (same plist as Bundle nodespaced and nodespace CLI in Tauri DMG with launchd agent registration #1179) or systemd user service on Linux
  7. Starts the daemon immediately
  8. Prompts (y/n) for PATH, MCP, and skill setup — same three integrations as First-launch onboarding wizard: opt-in PATH, MCP, and skill setup #1180 but terminal-based

Install command

curl -fsSL https://install.nodespace.app | sh

Terminal prompt flow (mirrors #1180 wizard)

NodeSpace installed to ~/.nodespace/bin/

Add nodespace to your PATH? [Y/n]
Connect NodeSpace to Claude desktop (MCP)? [Y/n]
Add NodeSpace skill to Claude Code? [Y/n]

✓ nodespaced is running
✓ Try: nodespace node list

Uninstall

nodespace uninstall
# or
curl -fsSL https://install.nodespace.app/uninstall.sh | sh

Stops daemon, removes launchd/systemd registration, removes ~/.nodespace/bin/. Does NOT delete ~/.nodespace/database/ (user data preserved by default).

Acceptance Criteria

  • curl -fsSL https://install.nodespace.app | sh installs both binaries on macOS arm64
  • Platform detection covers macOS arm64, macOS x86_64, Linux arm64, Linux x86_64
  • SHA256 checksum verified before install — aborts on mismatch
  • launchd agent registered on macOS (same plist as Bundle nodespaced and nodespace CLI in Tauri DMG with launchd agent registration #1179); systemd user service on Linux
  • Daemon started immediately after install — no reboot/logout required
  • Terminal prompts for PATH, MCP, and skill setup (each y/n, all optional)
  • PATH prompt appends ~/.nodespace/bin to ~/.zshrc / ~/.bash_profile on confirmation
  • MCP prompt writes nodespace mcp entry to claude_desktop_config.json on confirmation
  • Skill prompt writes SKILL.md to ~/.claude/skills/nodespace/ on confirmation
  • Idempotent — re-running installer upgrades binaries without duplicating config
  • nodespace uninstall cleanly removes all installed components, preserves user data
  • CI/CD uploads signed binaries + SHA256 checksums to GitHub releases for each platform
  • Install script hosted and versioned (not pinned to main)

Technical Specifications

Reference Files

GitHub release artifact naming

nodespaced-aarch64-apple-darwin
nodespaced-x86_64-apple-darwin
nodespaced-aarch64-unknown-linux-gnu
nodespaced-x86_64-unknown-linux-gnu
nodespace-aarch64-apple-darwin
nodespace-x86_64-apple-darwin
nodespace-aarch64-unknown-linux-gnu
nodespace-x86_64-unknown-linux-gnu
SHA256SUMS

launchd plist (macOS) — same as #1179

Socket path: ~/.nodespace/daemon.sock (from #1176)
DB path: ~/.nodespace/database/nodespace

systemd user service (Linux)

[Unit]
Description=NodeSpace daemon
After=network.target

[Service]
ExecStart=%h/.nodespace/bin/nodespaced
Environment=NODESPACED_SOCKET=%h/.nodespace/daemon.sock
Environment=NODESPACED_DB_PATH=%h/.nodespace/database/nodespace
Restart=on-failure

[Install]
WantedBy=default.target

Dependencies

Related Issues

Non-Goals

  • Windows installer (separate issue)
  • Homebrew formula (follow-on after this lands)
  • Auto-update via the shell installer (use nodespace update subcommand, future)
  • Root/system-wide install (user-scoped only: ~/.nodespace/)

Activity

  1. malibio commented on May 19, 2026

    @malibio
    CollaboratorAuthor

    Baseline: 6 failed | 123 passed (129 files), 95 failed | 3826 passed (3921 tests)

  2. self-assigned this
    on May 19, 2026
  3. added a commit that references this issue on May 19, 2026
    0262c16
  4. added a commit that references this issue on Jun 22, 2026
    7be18b3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions