Getting Started¶
Shed runs persistent, VM-based dev environments you reach over SSH. Start with the packaged quickstart for your platform, then use the reference below for the day-to-day commands.
Choose your path¶
Quickstarts (packaged, recommended) — install from a package manager, copy a config, create a shed:
- macOS Quickstart — Homebrew + the shed-desktop app, your credential source; runs VMs via Apple's Virtualization.framework (VZ backend).
- Linux Quickstart — the
shed-serverdeb running Firecracker microVMs (the tested remote-host path).
Developer setup — build from source, custom images, or the full manual setup:
- macOS Developer Setup (VZ backend)
- Firecracker Developer Setup (Linux / KVM backend)
The rest of this page is the platform-agnostic command reference once a server is running.
Add a Server¶
Register a server that has shed-server running. For a local server (the
installed default — open, bound to loopback):
For a server you reach over the network, the server must bind a non-loopback
bind_address (since v0.7.4 the default is loopback-only). mtls mode is the
networked posture (an open server is loopback only). First contact is over
SSH, which pins the host key, enrols a client certificate and reports the
HTTPS port:
See the Security Configuration guide for the server-side posture setup.
This connects to the server over SSH, retrieves its SSH host key, pins the TLS cert and enrols your client certificate, and saves the configuration.
Create a Shed¶
# Create an empty shed — you land in /home/shed
shed create my-project
# Or clone a repository — cloned into ~/<reponame>, login lands there
shed create my-project --repo git@github.com:user/repo.git
# Or mount a local directory — mounted at ~/<basename>, login lands there
shed create my-project --local-dir ~/projects/my-project
# Mount additional reference dirs alongside the primary --local-dir
# (each lands at ~/<basename>; repeatable; --add-dir requires --local-dir)
shed create app --local-dir ~/projects/app --add-dir ~/projects/shared-lib
Interactive logins (shed console, shed attach, raw ssh, VS Code Remote-SSH)
land in the shed's project directory: ~/<reponame> with --repo, ~/<basename>
with --local-dir, otherwise /home/shed. shed exec <name> -- <cmd> runs there
too, with $SHED_WORKSPACE (the project dir) and $SHED_ADD_DIRS (any --add-dir
mounts) set. --repo and --local-dir/--add-dir are mutually exclusive.
Once you have a few sheds, shed system df shows what's on disk and
shed system prune reclaims unused space. See Disk Management.
Connect¶
Direct Shell¶
Opens a bash shell in the VM. Exits when you disconnect.
Persistent Session¶
Opens a tmux session that persists after you disconnect. Detach with Ctrl-B D
and reconnect later with the same command.
IDE Integration¶
Generate SSH config entries for VS Code or Cursor:
# Preview the config
shed ssh-config my-project
# Install to ~/.ssh/config
shed ssh-config --all --install
Then connect using VS Code Remote-SSH to shed-my-project.
Common Workflows¶
Run a coding agent¶
# Create a shed and attach to a persistent session
shed create myproj --repo user/repo
shed attach myproj
# Inside the session, start Claude Code
claude
# Detach with Ctrl-B D - the agent keeps running; reattach later
shed attach myproj
Run untrusted code in a hardened shed¶
A shed gets every server mount and an open network by default. For code or an agent you trust less, give it neither:
# No host directories; on Firecracker, the internet and nothing else
shed create untrusted --repo https://github.com/someone/tool.git --mounts none --network isolated
# Check: MOUNTS shows none, NETWORK shows isolated
shed list -v
# The internet works; your LAN does not (use an address on your LAN, such as your router)
shed exec untrusted -- curl -sS -m 5 -o /dev/null -w '%{http_code}\n' https://github.com
shed exec untrusted -- curl -sS -m 5 http://192.168.1.1/ # times out
The repository is an https:// URL because an owner/repo shorthand expands
to an SSH URL (git@github.com:owner/repo.git), and the clone then needs an SSH
key, which --mounts none may have just left out. --network isolated needs a
Firecracker server with nft (see Firecracker
setup); on VZ use --mounts none alone, which
leaves the network open: the guest still reaches the Mac and its LAN (see VZ
operations › Networking). What the
profile blocks is in Security › Network
profiles.
Neither flag stops shed create from syncing your default sync
profile into the shed, and code in
it can read what was synced. Add --no-sync when that profile copies anything
the code should not see.
Port forwarding¶
# Start tunnels for web development (-d runs in background)
shed tunnels start myproj -t 3000:3000 -d
Next Steps¶
- CLI Reference — all available commands
- Configuration — client and server config options
- Credentials in a shed — delivering keys and tokens from the desktop app
- Tunnels — port forwarding configuration
- Provisioning —
.shed/install/startup hooks - Security Configuration — server postures and hardening sheds
- Orchestrated Sheds — driving sheds from CI or an agent runner