Skip to content

Quick start

Assumes you’ve finished installation.

cspace needs an Anthropic credential to drive Claude Code:

Terminal window
cspace keychain init

Paste a long-lived API key (sk-ant-api-...) from https://console.anthropic.com/settings/keys. Stable across sessions; recommended for any multi-day work.

A short-lived OAuth token from claude /login is auto-discovered as a fallback. Convenient for first-run, but expires within hours.

From inside any git project directory:

Terminal window
cspace up

cspace auto-picks a planet name (mercury, venus, …), provisions a per-sandbox git clone, boots the microVM, installs Claude Code plugins declared in your project’s .claude/settings.json, and drops you into an interactive claude session.

To skip the auto-attach:

Terminal window
cspace up --no-attach

If you exited the interactive session, you can still send turns from the host:

Terminal window
cspace send mercury "your prompt here"

Or re-attach:

Terminal window
cspace attach mercury

If your project’s dev server is listening on (say) port 5174 inside the sandbox, your host browser can hit it at:

http://mercury.<project>.cspace2.local:5174/

cspace handles loopback NAT — dev servers bound to 127.0.0.1 (vite, next dev, CRA defaults) are reachable from the host without any project-side --host=0.0.0.0 change.

If you see vite’s “Blocked request” page, add .cspace2.local to vite’s allowedHosts:

vite.config.ts
server: { allowedHosts: [".cspace2.local"] }
Terminal window
cspace down mercury # one sandbox
cspace down --all # every sandbox in this project