Quick Start
This guide walks you through initializing cspace in a project and launching your first devcontainer instance.
1. Initialize your project
Section titled “1. Initialize your project”Navigate to your project root and run:
cd my-projectcspace initThis creates two things:
.cspace.json— project configuration (commit this to git).cspace/— directory for template overrides and custom scripts
cspace auto-detects your project name (from the directory name), GitHub repo (from git remote), and a two-character prefix for naming containers.
2. Set up Git authentication
Section titled “2. Set up Git authentication”Before launching an instance, add a GitHub personal access token to your project:
echo 'GH_TOKEN=ghp_yourTokenHere' >> .envThis is required for git push/pull inside containers. See Git Authentication for details on creating a token with the right scopes.
3. Launch an instance
Section titled “3. Launch an instance”cspace upThis will:
- Assign a planet name (mercury, venus, earth…) with deterministic port mappings
- Build the devcontainer image (first run only)
- Bundle and copy your repository into the container
- Copy your git identity and
.envinto the container - Configure
ghas the git credential helper - Launch Claude Code inside the instance
You can also specify a name or branch:
cspace up venus # use a specific planet namecspace up feature/my-branch # check out a branchcspace up --no-claude earth # create instance without launching Claude4. Develop
Section titled “4. Develop”Once an instance is running, you have several ways to interact with it:
cspace ssh mercury # shell into the instancecspace list # see all running instancescspace ports mercury # show port mappingsTo run an autonomous agent against a GitHub issue:
# Write a prompt referencing the issue, then launch an instance with itcat > /tmp/issue-prompt.txt <<'EOF'Resolve GitHub issue #42 end-to-end. Read the issue, implement the fix,verify with tests, and open a PR.EOFcspace up mars --prompt-file /tmp/issue-prompt.txt5. Clean up
Section titled “5. Clean up”When you’re done with an instance:
cspace down mercury # destroy a single instancecspace down --all # destroy all instances for this projectNext steps
Section titled “Next steps”- Git Authentication — set up your GitHub token and understand SSO requirements
- Configuration Reference — customize ports, firewall, Claude model, and more
- CLI Reference — full command documentation