Skip to content

About

Publish web pages to spacesheep.dev from a terminal or CI: npx spacesheep deploy ./dist

Topics

Resources

Stars

3 stars

Watchers

0 watching

Forks

Latest commit

 

History

145 Commits

Folders and files

Repository files navigation

spacesheep

Publish web pages to spacesheep.dev from a terminal or CI.

Spacesheep hosts single-file web pages (dashboards, reports, docs, small apps) at spacesheep.dev/@you/<slug>, with versions, sharing tiers, comments and reactions built in. This CLI deploys a folder or an HTML file there in one command.

npx spacesheep login          # sign in through the browser once
npx spacesheep deploy ./dist  # publish — prints the URL

The second deploy in the same folder updates the same space (the id is kept in .spacesheep.json; commit it), and every deploy is a new version you can roll back to in the dashboard. If the folder now holds a different page (its <title> changed), deploy stops rather than replace the old one: pass --space <url> to update it anyway, or --new to publish the page as a new space. GitHub Actions skips that check.

Connect every coding agent on a machine at once

npx -y spacesheep@latest install

One command per machine, however many harnesses it runs. It signs the machine in (once, in the browser, or with --code ssc_… / --key ss_… and no browser), then points every harness it finds at spacesheep mcp, a local stdio server that uses that one key: Claude Code (every account), Codex, Gemini CLI, Antigravity, Cursor, Windsurf, VS Code and opencode. It also puts the /sheep skill where each of them reads skills, fetched fresh from spacesheep.dev.

Without it, each harness connects to the server on its own and asks you to sign in on its own: eleven machines with five harnesses each is about fifty sign-ins. With it, that's eleven commands, or one, from a machine that's already set up:

spacesheep install --ssh lab-1,lab-2,gpu-box

A machine that is already signed in keeps its own key; only one that isn't gets a key made for it here, sent over ssh stdin, never on screen. A machine with no Node.js is named, not half-installed (the bridge needs Node 20+).

  • Claude Code gets the server by its URL, signed in by a helper that prints this machine's key (spacesheep mcp headers). Claude Code (2.1.71+) drops a plugin's server when a configured one has the same URL, so the spacesheep plugin keeps its /sheep and /talk and its own copy of the server, which would ask for a sign-in, steps aside: no doubled tools, and nothing to switch off.
  • An entry that already reached spacesheep (the remote URL, under any name) is replaced, not doubled, so no tool shows up twice. Everything else in each config file is kept, and a file that isn't plain JSON (comments) is left alone and named.
  • The tools come live from the server, so a new tool needs no reinstall. Re-run install to refresh the skill.
  • The official skills (@spacesheep/design, @spacesheep/docs, @spacesheep/sheets) go beside /sheep in each harness, as the folders skills get <name> -o <dir> writes (~/.claude/skills/design, ~/.codex/skills/design, …), at the store's current version. The harness's own skill picker then finds them by their descriptions, with nothing to fetch first. A folder is only replaced or removed when it holds install's .spacesheep-skill.json, so a skill of your own by the same name is left alone. A re-run replaces them when the store has a newer version, and once a day a harness start does the same in the background (spacesheep skills refresh; SPACESHEEP_NO_SKILL_REFRESH=1 turns that off). --skip design leaves one out, --no-skill all of them with /sheep.
  • A run from npx copies the CLI (no dependencies) into ~/.config/spacesheep/cli for the harnesses to run, since npx clears its own cache, and running npx on every harness start would wait on npm and fail offline.
  • Revoke one machine in Settings → API keys: each machine has its own key.
  • spacesheep mcp status shows which harnesses go through it; spacesheep mcp uninstall takes it back out. --only codex,cursor limits either, --skip leaves some out (an agent, or one Claude home by its folder: --skip .claude-test or --skip test), --dry-run shows what would change.
  • A second Claude home counts once Claude Code has run in it (it has a .claude.json); a folder with only settings is left alone.
  • Restart open harnesses (or reconnect in Claude Code's /mcp) to pick it up.
  • To pin a version (a fleet, or before npm has it), run a release tag from GitHub: npx -y github:spacesheep-dev/spacesheep-cli#v1.33.0 install, and pass the same spec to --ssh with --package github:spacesheep-dev/spacesheep-cli#v1.33.0.

Deploy automatically from GitHub Actions

  1. Create an API key at https://spacesheep.dev/settings and add it to the repo as a secret named SPACESHEEP_KEY.
  2. Add a workflow:
name: Deploy to Spacesheep
on:
  push:
    branches: [main]
jobs:
  deploy:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: spacesheep-dev/spacesheep-cli@v1
        with:
          dir: dist                 # folder with index.html, or a single .html file
          key: ${{ secrets.SPACESHEEP_KEY }}
          # first run only — afterwards the space id in .spacesheep.json is used
          title: My report
          emoji: 📊
          description: What the page shows, in one line
          visibility: public        # public | signed_in | members | private

The action prints the URL and exposes it as steps.<id>.outputs.url. If your site needs a build step, run it before this step and point dir at the output.

The same thing without the action:

      - run: npx spacesheep@latest deploy dist -m "${{ github.event.head_commit.message }}"
        env:
          SPACESHEEP_KEY: ${{ secrets.SPACESHEEP_KEY }}

Remember every Claude Code and Codex session

spacesheep memory install wires a hook into Claude Code (Stop and SessionEnd in ~/.claude/settings.json) and Codex (notify in ~/.codex/config.toml). From then on every turn you exchange with either tool lands in your spacesheep memory as it happens, with claude-code or codex as its source, and is searchable from inside the tools (recall_history, recall_memory through the spacesheep MCP), on your memory board, and by any spacesheep agent you talk to.

npm i -g spacesheep
spacesheep login
spacesheep memory install        # --claude or --codex for one of them
spacesheep memory status

The hook never slows the tool: Claude Code waits for a Stop hook to exit, so memory sync reads stdin, writes a job file, spawns itself detached and exits 0 in the time Node takes to start. The child tails the transcript from a per-session cursor, posts the new turns (your messages and the assistant's text only — tool calls, diffs and tool output never leave the machine), and advances the cursor only on success, so an outage costs delay, never a turn. Install from a global install, not npx: a hook has to start in milliseconds.

Passwords and keys are redacted before anything is sent. Every string the hooks post (your messages, the assistant's text, a session's title, a notification) goes through lib/redact.js on your machine first, and spacesheep runs the same rules again when it stores them. It removes the value and keeps the sentence: export DB_PASSWORD=[redacted], postgres://admin:[redacted]@db/app, password [redacted]. It catches API keys and tokens by their shape (GitHub, OpenAI, Anthropic, AWS, Slack, Stripe, Google, JWTs, private key blocks and more), passwords in URLs, Bearer headers, NAME=value where the name is a secret's (--password=, api_key:, GITHUB_TOKEN=), and a generated-looking value after "password is …". It is pattern-based, so an unlabelled secret in plain prose can still get through; spacesheep memory uninstall stops sending anything.

Codex takes one notify command, and reads it only at the top of ~/.codex/config.toml, before the first [table] (Codex appends a [projects."…"] table for every folder it trusts, so a line added at the end of the file is never read). install writes the line there, moves one it finds inside a table, and rewrites it when the node or the script moved; memory status calls a line inside a table misplaced, not installed. If another tool already owns notify (Codex Computer Use, for one), install leaves it alone and says Codex was skipped; --codex-chain points it at a small script, ~/.config/spacesheep/bin/codex-notify, that runs spacesheep's turn sync and then the command you had, and uninstall puts the original back.

spacesheep update upgrades the copy that is running, into its own npm prefix. If npm's global prefix is somewhere else, or the hooks run a copy inside Homebrew's versioned Cellar/node/<version>/ folder (which brew upgrade node deletes), install and status say so.

See every session live: Claude Code, Codex and Antigravity

spacesheep sessions install hooks every coding agent on the machine into spacesheep.dev/sessions: which sessions are working, which need you, which are idle, on which machine.

npm install -g github:spacesheep-dev/spacesheep-cli
spacesheep sessions install --machine "My laptop"   # --claude, --codex or --antigravity for one of them
spacesheep sessions status
Agent Where the hooks go What reports
Claude Code settings.json in every Claude Code config dir (~/.claude, $CLAUDE_CONFIG_DIR, ~/.claude-*) prompt, tool heartbeat, needs-you notifications, stop, end; turns sync to memory
Codex notify in ~/.codex/config.toml each finished turn; turns sync to memory
Antigravity (app, IDE and agy CLI) a spacesheep-sessions entry in ~/.gemini/config/hooks.json PreInvocation → working, PostToolUse → heartbeat, Stop → idle; the first ask becomes the title. From 1.16.0 its Stop also runs memory sync --source antigravity, which sends each finished turn (the words inside <USER_REQUEST> and the model's PLANNER_RESPONSE) to your memory — unless you installed with --no-memory.

Antigravity is hooked automatically when ~/.gemini has its config or data dirs. Its hooks answer {} on stdout, as Antigravity requires, and read conversationId from its camelCase stdin. It loads hooks.json when a conversation starts, so a conversation that was already open reports after a restart. The install also backfills the last 30 days from each agent's own session files. spacesheep sessions uninstall removes only the entries it added.

Titles and links. A Claude Code row is titled, best first, by a name you gave the session (/rename), then Claude Code's own title, then your first prompt, cut at 50 characters the way the Claude Code app cuts it. Folder handles like sutro-problems-6a are never titles. A Remote Control session opens on claude.ai from its row; the link is read from Claude Code's session file, found through the process that ran the hook, or from the transcript, and it is remembered after the session exits (~/.config/spacesheep/sessions/facts/). A session started without Remote Control has no claude.ai link. An Antigravity row opens its own conversation in Antigravity's web remote (antigravity.google.com/r/<install>-v2?p=c/<conversation>?section=<project>); the project is the one in ~/.gemini/config/projects/ whose folder holds the session's workspace. With no such project, or for a backfilled row until its next hook fires, the link opens the remote's home. spacesheep sessions status also shows what the board holds for this machine: sessions, links and accounts.

Test runs stay off the board. From 1.17.0 each Claude Code ping carries whether a person attended the session, as Claude Code itself tells its hooks (CLAUDE_CODE_SESSION_ATTENDED). A claude -p another session launched, say to check that the hooks fire, reports "no", and when it was over within a minute on one turn the board files it under Hidden instead of listing it. Anything else can be hidden by hand from its row, and comes back once you use it again.

Talk to a session from its page

On Pro and Team, a space's Session tab lets you message the coding session that published it. The session only hears you while it runs a listener, which it has to start itself:

spacesheep talk on               # your account's switch, and this machine's opt-in
spacesheep talk listen --once    # waits for the next message, prints it, exits (run it in the background)
spacesheep talk reply --to 19 "done"   # answer message 19 in the Session tab
spacesheep talk-steps create --reply-to 19 --text "Editing the intro"   # what it's doing now, shown in the tab
spacesheep talk-steps create --reply-to 19 --done                      # the run ended

Each message the listener prints carries its id. Pass it with --to, so the answer goes to that message: with several waiting (a comment on each of two pages), a reply that names none answers the newest, and lands under the wrong comment.

Sessions are told they can listen in two places. After spacesheep deploy, when Talk is on and the session isn't listening yet. And, with spacesheep sessions install, at the start of every Claude Code session on a machine that ran talk on. Both notes are fixed text written by the CLI. The server's words never reach the agent's context: the deploy note reads only whether the server set talk, and the session id comes from the local environment. Neither note starts a listener; the agent decides, under its own permission rules. Turning Talk on from the website doesn't enable the start-of-session note on any machine, so a stolen web session alone can't open a channel into every session you run.

Let spacesheep.dev reach this machine

spacesheep machine on runs one small listener in the background (about 45 MB), so you can message any Claude Code session on this machine from spacesheep.dev/sessions, or start a new one in a folder you allowed, from your phone or another computer. It replaces the listener each session had to start for Talk. Pro and Team.

One line, in a terminal inside the folder the agent may work in:

npx -y spacesheep@latest machine on

It installs itself, signs you in if you aren't, turns on Talk for your account, lets /sessions see this computer's sessions (their state and titles; nothing that was said), and opens a page where you confirm with your passkey once. Run from your home folder, it asks which of your recent project folders to allow instead of allowing your whole home.

spacesheep machine on --folder ~/code/site   # allow another folder
spacesheep machine status
spacesheep machine off                       # stop, and forget the passkeys

Your passkey, checked here. on prints a six-digit check and opens a pairing page that shows the same digits; you confirm there with your passkey (Touch ID, Face ID, a security key). The machine verifies the page's answer itself before it trusts the passkey, and from then on every message has to be signed with it: through a 24-hour unlock (one Touch ID a day, kept by the page) or a fresh tap for one message. The machine checks those signatures against the passkeys it paired with at its own terminal, so a stolen web login, or the server itself, can't make it run anything. spacesheep machine pair adds another device's passkey.

What a message does. It runs claude -p in the session's own folder, which the machine reads from the session's transcript on its own disk (never from the server), and only when that folder is inside one you allowed. A session that is open in a terminal right now is never written to: the message goes to a copy (--fork-session), and later messages follow the copy. The reply lands in the session's thread on the page. Two run at once at most, and messages to one session run in order. Each message reaches Claude Code behind a fixed line, written by the CLI, saying it came from spacesheep.dev and your passkey confirmed it.

Safe or auto. Nobody is at the machine to approve a prompt, so:

  • --mode safe (the default) runs Claude Code in dontAsk mode: what your permission rules already allow runs, anything that would ask is declined, and the reply names the tools that were.
  • --mode auto runs it in Claude Code's own auto mode, which decides what is safe to run without asking.

Neither skips permissions. Re-running on adds folders or changes the mode, and restarts the listener. It runs as a launchd agent on macOS and a systemd user service on Linux (anywhere else, keep spacesheep machine run open in a terminal), logs one line per event to ~/.config/spacesheep/machine.log, and stays down once it stops on purpose: the machine removed on the site, or Talk turned off. spacesheep machine off stops it, tells spacesheep.dev, and deletes the passkeys it trusted, so nothing that could run a command stays behind. On a machine with the listener, new sessions are no longer told to start their own Talk listener.

Send feedback and inspect sessions

CLI 1.7.0 adds commands for the remote MCP feedback and session tools. To install the merged source directly (without waiting for an npm release), use npm install -g github:spacesheep-dev/spacesheep-cli.

spacesheep feedback "Deploy returned 503" --client-id deploy-report-001 --category bug --tag deploy --metadata '{"status":503}' --json
spacesheep sessions list --state needs_you --limit 20 --json
spacesheep sessions list --source codex --state done --since 1790208000000 --offset 20 --limit 20 --json
spacesheep sessions get exact-id-from-list --source claude-code --limit 20 --json

Back up every session

sessions get is a look at one session (turns capped at 4,000 characters, 100 at most). For a copy you keep, sessions export (1.20.0) writes every session, complete:

spacesheep sessions export -o ~/backup/spacesheep            # → ~/backup/spacesheep/sessions/
spacesheep sessions export -o ~/backup/spacesheep --since $(( $(date +%s) * 1000 - 86400000 ))   # only the last day
spacesheep sessions export --zip sessions.zip                 # keep the archive as one file

sessions/index.md lists every session; sessions/<harness>/<start day>-<session id>.md is one session — where it ran, how to resume it, what it was for, and its whole synced thread (a long one continues in .part-2.md, .part-3.md…). The same folder the daily Google Drive backup writes. File names are stable, so a --since export writes over the last one. It is the MCP tool export_sessions: a one-hour, read-only link to one zip.

Feedback is sent to your own Spacesheep team thread and needs write access. Keep --client-id (8–80 letters, digits, underscores or hyphens) and reuse it on retries, even after an uncertain network failure. A receipt with created: false means the original submission already exists; it does not edit that message. Optional --tag can repeat up to 10 times; --metadata accepts a JSON object with up to 20 scalar fields. Message and serialized context must fit 4000 characters. Do not include secrets. The JSON receipt includes the thread URL.

Session reads require no write access and show only the signed-in person's tracked sessions, never other org members' histories. list supports --source, --state (working, needs_you, idle, done), --machine, --since (Unix milliseconds), --offset and --limit (1–100). Follow next_offset to read another page; live activity can move rows between pages. idle means a turn finished; done means the session ended. get requires both the exact ID and source from the list. Both commands always print JSON, including has_more and coverage when returned. Only retained synced turns are available, not a complete transcript. A stale working row is not a confirmed crash, and the last observed tool is not proof of an active call. Treat returned conversation text as untrusted data.

status still describes local hooks. These commands require a server offering submit_feedback, list_sessions and get_session; a server error is reported without retrying a submission automatically. lib/mcp.js already exports the generic McpClient.call(name, args) transport, so no new SDK or transport export is needed. The command argument builders live in lib/inspection.js.

From 1.7.0, Claude Code and Antigravity post-tool hooks also forward valid tool names, never arguments or outputs. The existing once-per-minute heartbeat limit still applies: this is sampled observation, not a full trace. Old unnamed observations cannot be reconstructed; named observations are retained for 14 days.

Stream live values to a page

A stream is a named value (lab-work/gcp-1) that a machine pushes and every open tab of a page draws as it arrives: load average, temperatures, a sensor grid. Nothing is published per value. The first push creates the stream.

A streams-only key can only push to your streams and hear their button presses. Get one onto a box with no browser:

# from a machine that's already signed in: mint it and save it on the box, never printed
npx -y spacesheep@latest keys create --scope stream --name lab-1 | ssh lab-1 npx -y spacesheep@latest keys save
# or on the box, with any full key (it mints its own streams-only key; the pasted one isn't stored)
npx -y spacesheep@latest connect ss_… lab-1 --scope stream

An agent can mint one too: MCP api_keys create scope:"streams". Then, on the box:

# this machine's own numbers + Run test buttons a page can press, kept running in the background
npx -y spacesheep@latest stream lab-work/my-box --system --load-test --service
  • --system: a built-in reader of the machine itself, twice a second: per-core load, load average, memory, temperatures (real sensors on Linux when present, otherwise a thermal model, marked "temp_source":"model"), plus pressure stalls, disk and network on Linux. Linux and macOS.
  • --load-test: built-in buttons with nothing to install: run (every core at intensity% for seconds, both clamped), cpu_one, memory, stop. The readings say which test is running and which buttons exist.
  • --service: a systemd user unit (Linux) or launchd agent (macOS) that keeps the stream running and restarts it; --remove-service takes it away.

Your own numbers instead:

npx -y spacesheep@latest stream lab-work/esperanto-1 --run "python3 read-sensors.py"   # each JSON line it prints is a value
npx -y spacesheep@latest stream lab-work/load --every 1s -- cat /proc/loadavg
npx -y spacesheep@latest stream lab-work/gcp-1 --run "node collect.js" \
  --on cpu_all="stress-ng --cpu 0 -t 30s" --on-dir /opt/lab/tests
  • --run "cmd": a long-running command; every line it prints is a value (JSON lines are sent as JSON, anything else as text). Without --run or --every, lines are read from stdin.
  • --every 1s -- cmd: run a command on an interval and push its output.
  • --on name=cmd, --on-dir DIR: the page's buttons. Only what is listed runs, and a press from before the process started never runs. The press's data reaches the command as SS_STREAM_DATA (JSON). Parse it, never interpolate it: anyone who can open the page can press.
  • spacesheep streams [prefix] lists your streams with their rate, how many tabs watch each, and whether a machine is listening.

A page shows a stream once it declares it: <meta name="ss-streams" content="lab-work/gcp-1">, then ss.stream("lab-work/gcp-1").draw((last, history, status) => …).

spacesheep.dev at localhost (the mirror)

spacesheep mirror is spacesheep.dev itself at http://localhost:4280, signed in as you: the dashboard, every space, comments, the Co-shepherd. spacesheep.dev/@you/plan is http://localhost:4280/@you/plan. Everything comes from spacesheep's cloud as you open it; nothing is stored on this machine.

npx -y spacesheep@latest mirror on      # in the background, started again at login
open http://localhost:4280/
  • Why: spacesheep.dev refuses to be framed, and VS Code's Simple Browser is a frame. In VS Code: ⌘⇧P → Simple Browser: Show → http://localhost:4280/@you/plan.
  • Sign-in: the key this CLI holds is traded for a 12-hour spacesheep.dev session that stays in the mirror's process; the browser never holds it. Anything that asks for a recent sign-in still sends you to spacesheep.dev.
  • Safety: it listens on 127.0.0.1 only, answers only localhost hosts, and refuses any write or socket that doesn't come from one of its own pages.
  • --port 4280 sets where it listens. mirror status says where it runs; mirror off stops it.

Lint a skill before you tag it

spacesheep skills lint reads a skill folder, or a repo that holds one, the way Spacesheep reads the format when it takes a release: SKILL.md as the Agent Skills spec defines it, spacesheep.yaml's shape, the files' paths, types and sizes, and the version's hash. It needs no sign-in, and the folder never leaves your machine.

npx -y spacesheep@latest skills lint             # a repo: finds its one top-level skill folder
npx -y spacesheep@latest skills lint my-skill    # or the folder itself
npx -y spacesheep@latest skills lint --json      # for CI: exits 1 when the folder can't become a version
  • A repo holds one skill, in a top-level folder named for it (my-skill/SKILL.md). The repo's own files (README, LICENSE, .github/) never enter a version.
  • In a git repo it checks what a commit would hold, so files git ignores are left out.
  • docs/ is read as the skill page's Docs tab reads it: a page docs/SUMMARY.md links that isn't there, and a page it leaves out, are warnings, never a refusal.
  • Well-formed isn't accepted. What spacesheep.yaml declares the skill may ask for (scopes, triggers, tools, outside hosts), and a review of what the skill holds, are checked by Spacesheep when it takes the release.

Commands

Command What it does
spacesheep login Browser sign-in; stores a key in ~/.config/spacesheep/config.json
spacesheep login --code ssc_… Sign in with the one-time code in the prompt at spacesheep.dev/start: no browser, because copying it while signed in was the approval. Works once, for 30 minutes; mints this machine its own key, named after its hostname (or --name)
spacesheep connect <ss_key> [name] Sign in with no browser. Mints this machine its own key, named after its hostname (or name), and stores that; the pasted key is never written to disk
spacesheep install Connect every coding harness on this machine (Claude Code, Codex, Gemini CLI, Antigravity, Cursor, Windsurf, VS Code, opencode) through this machine's one key, and install the /sheep skill. Options: --code, --key, --only, --skip, --no-skill, --dry-run, --ssh host1,host2, --package <npm spec>
spacesheep mcp The spacesheep MCP server over stdio, on this machine's key — what install points every harness at
spacesheep mcp status | uninstall Which harnesses go through it; take it out of them
spacesheep logout Forget the stored key
spacesheep whoami Who the current key belongs to
spacesheep deploy [dir|file] Publish. Options: --space, --new, --title, --slug, --emoji, --description, --visibility, --team, --team-access, --no-team, --org, --base <sha>, --replace, -m <version name>, --json. A folder's .spacesheep.json pins it to one space; if index.html's <title> no longer matches the page the pin last published, deploy stops and asks for --space (update it anyway) or --new (a new space). Every deploy prints where the space lives (a team, or personal). Each update names the version its files are built on (base_sha: what this folder last published or read on this machine, or --base), so anything published since is merged in rather than overwritten. After a merge the folder keeps its base, so the next deploy merges the server's part in again. A clash is refused with the live version's sha and how to keep both (read -o, change, deploy); --replace (or --base latest, the live version itself) publishes over it, erasing the changes made there. A folder's .spacesheep.json from the /sheep skill (uuid, deployed_sha) pins the space too, and its deployed_sha is the base when it is newer than this machine's. With no base at all, onto a space another session or person published last, deploy reads the live version before uploading anything: the same files are reported as already live (nothing deployed), different ones stop with who published it and the three ways on. No refusal is ever sent again by the CLI (rate_limited once, after a short retry_after); each prints the server's words and one line on what to do. Exit codes: 1 failed or refused, 2 wrong command line, 3 not signed in, 4 stop_retrying (the server refuses that call until something changes: don't run it again).
spacesheep list Your spaces
spacesheep read <space> [path] [-o dir] Print a space's files, or save them to a folder byte for byte. A whole space saved to a folder is the newest version, and a deploy from that folder builds on it.
spacesheep versions <space> Version history
spacesheep share <space> --visibility v --email a@b.c Change who can view, invite people
spacesheep delete <space> [--yes] Delete one of your spaces and every version of it. It can't be undone, so a terminal asks first (--yes skips the question; an agent's shell isn't a terminal and isn't asked). A folder whose .spacesheep.json pointed at it is unpinned, so its next deploy makes a new space
spacesheep skills lint [folder] Check a skill folder, or a repo holding one, for the format Spacesheep reads; --json for CI
spacesheep tools [name] Every tool the server offers your key (what it does: reads, changes or destructive), or one tool's arguments
spacesheep call <tool> [key=value | key:=json ...] Run any tool: key=value passes a string, key:=json a number, boolean, list or object; or pass one JSON object, or - to read it from stdin. Text is printed (JSON pretty-printed); pictures are written to files (-o dir, else a temp folder) and their paths printed — spacesheep call screenshot uuid=<space> width:=390 is the phone check. --json prints the whole result
spacesheep sessions install Hook Claude Code, Codex and Antigravity into spacesheep.dev/sessions. Options: --machine, --ssh, --claude, --codex, --antigravity, --no-memory, --config-dir, --codex-chain
spacesheep feedback <message> --client-id <id> Submit feedback; optional --category, repeated --tag, --metadata JSON; returns a JSON receipt
spacesheep sessions list Query your tracked sessions with filters and pagination; JSON output
spacesheep sessions get <id> --source <source> Inspect recent retained session history; optional --limit; JSON output
spacesheep sessions export [-o DIR] Every session, complete, into DIR/sessions (a backup). --since MS for only recent ones, --zip FILE to keep the archive, --json
spacesheep sessions status Check local reporting hooks, and how many of this machine's sessions the board has, with links and accounts
spacesheep machine on Let spacesheep.dev reach this machine's Claude Code sessions: pairs your passkey here and starts the background listener. Options: --folder (repeatable; default the current folder), --mode safe|auto, --name, --no-service
spacesheep machine status | pair | off Check the listener; add another passkey; stop it and forget the passkeys it trusted
spacesheep keys create [--scope stream|sessions|full] [--name N] Mint a key with the one this machine holds; prints only the key, so it pipes into another machine's keys save
spacesheep keys save Store a key read from stdin (checked against the server first)
spacesheep stream <name> Push live values to a stream. Options: --system, --load-test, --service / --remove-service, --run "cmd", --every 1s -- cmd, --on name=cmd (repeatable), --on-dir DIR, --host, --once
spacesheep streams [prefix] Your streams: rate, watchers, whether a machine listens
spacesheep update Install the newest version globally

<space> is a UUID or a spacesheep.dev/@user/slug URL (delete also takes one of your own slugs).

Machines that can't open a browser

A lab box, a server, a shared workstation: create a key at https://spacesheep.dev/settings/api-keys#create and paste the one line the page shows on each machine (Node 18+):

npx -y spacesheep@latest connect ss_…            # key named after the hostname
npx -y spacesheep@latest connect ss_… bench-03    # or name it yourself

Each machine ends up with its own key, listed by name in Settings and revocable on its own. The pasted key is never stored, so you can revoke it once every box is connected and they all keep working.

Auth

SPACESHEEP_KEY in the environment wins over the stored login. That is how CI authenticates. Keys are created and revoked at https://spacesheep.dev/settings.

SPACESHEEP_AGENT_NAME names the agent a deploy comes from, for a tool that runs agents for you (Pointman · @editor, release bot). The page shows it in place of the harness's name ("Claude Code"), which is still recorded.

Updates

npx spacesheep@latest always runs the newest version. A global install (npm i -g spacesheep) checks npm once a day and prints a one-line notice when a newer version exists; spacesheep update installs it. Set SPACESHEEP_NO_UPDATE_CHECK=1 to silence the check (it is already silent in CI).

How it works

The CLI is an ordinary MCP client of the same remote server that the Claude, ChatGPT and Gemini connectors use (https://mcp.spacesheep.dev/mcp). It has no dependencies and no server-side code of its own: deploy stages each file with a PUT, then calls the deploy tool with the staged hashes. Anything the tools can do, the CLI can do: the commands above wrap the everyday ones, and spacesheep call runs any other tool by name.

Requirements

Node 20 or newer.

MIT.

Publishing for a team

A new space is personal unless a team is named. To make every new page from a repo go to one of your teams, put a .spacesheep.json at the repo's root:

{ "team": "Acme" }

The team is a name, slug or id of a team you are on. spacesheep deploy looks for it in this order: --team, the folder's own .spacesheep.json, then the nearest one above the folder, no higher than the repository's root (and never your home folder). --no-team publishes personal. The server refuses a team you are not on and a name two of your teams share, and publishes nothing then.

A team only ever applies to a new space. Pushing an update never moves a live space into or out of a team: if the folder names a different team, the deploy says so and changes nothing. Move a live space from its Share dialog (Lives in). Every deploy prints a Lives in line saying who can read the page because of where it lives, including anyone a team admits by email domain.

About

Publish web pages to spacesheep.dev from a terminal or CI: npx spacesheep deploy ./dist

Topics

Resources

Stars

3 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages