/install codespace-manager
Codespace Manager
Manage isolated code-server development environments, similar to GitHub Codespaces. Each codespace runs in its own Docker container with a full VS Code editor accessible via browser through Cloudflare Tunnel.
Pre-installed Tools
The custom Docker image includes:
- code-server (VS Code in browser)
- Bun — JS/TS runtime + package manager
- uv — Python package manager + virtual environments
- OpenCode — AI coding assistant (CLI)
- git, curl, wget, build-essential
First-Time Setup
Before creating any codespace, build the Docker image once:
bash scripts/codespace.sh setup
This builds codespace-manager:latest from assets/Dockerfile.txt. Only needed once per host.
Commands
Script location: scripts/codespace.sh (relative to this skill's directory)
# One-time image build
codespace setup
# Create codespace (optionally clone a repo and/or init OpenCode config)
codespace create \x3Cname>
codespace create \x3Cname> --git \x3Crepo-url>
codespace create \x3Cname> --opencode
codespace create \x3Cname> --git \x3Crepo-url> --opencode
# Lifecycle
codespace start \x3Cname> # Start and get Cloudflare Tunnel URL
codespace stop \x3Cname> # Stop container and tunnel
codespace restart \x3Cname> # Stop then start (new URL)
codespace delete \x3Cname> # Remove container + data (irreversible!)
# Info
codespace list # List all codespaces with status
codespace status \x3Cname> # Detailed status of one codespace
codespace logs \x3Cname> # View container logs
codespace url \x3Cname> # Regenerate tunnel URL
# Config
codespace password \x3Cpass> # Set default password for new codespaces
Password Management
- Default password:
codespace - Set a custom default:
codespace password \x3Cyour-password> - Override per-session via environment:
CODESPACE_PASSWORD=mypass codespace create foo - Each codespace saves its password at creation time
Natural Language → Command Mapping
| User says | Command |
|---|---|
| "create a codespace called myapp" | codespace create myapp |
| "create a codespace with opencode" | codespace create \x3Cname> --opencode |
| "set up a dev environment for this repo" | codespace create \x3Cname> --git \x3Curl> --opencode |
| "start / launch / open myapp" | codespace start myapp |
| "stop / shut down myapp" | codespace stop myapp |
| "delete / remove myapp" | codespace delete myapp (confirm with user first!) |
| "list my codespaces" / "show environments" | codespace list |
| "get the URL for myapp" | codespace url myapp |
| "set password to xyz" | codespace password xyz |
| "create a python project" | codespace create \x3Cname> --opencode (uv is pre-installed) |
| "create a node/bun project" | codespace create \x3Cname> --opencode (bun is pre-installed) |
Architecture
- Each codespace = isolated Docker container (
codespace-manager:latest) - Project files persist at
~/codespaces/\x3Cname>/projecton the host - Exposed via Cloudflare Quick Tunnel (free, auto HTTPS, temporary URL)
- Each codespace gets a deterministic port (9000-9999, based on name hash)
Important Notes
- Run
codespace setupbefore first use — it builds the Docker image - Quick Tunnel URLs are temporary — they change on restart
codespace deleteis irreversible — confirm with user before executing- Container data (outside
/home/coder/project) does not persist across delete/recreate - Requires: Docker, cloudflared, jq installed on the host
OpenCode Config
When --opencode is used, a opencode.json is created in the project root with:
{
"$schema": "https://opencode.ai/config.json",
"model": "anthropic/claude-sonnet-4-5",
"autoupdate": true
}
Users can edit this file in code-server to change the model or add provider keys.
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install codespace-manager - After installation, invoke the skill by name or use
/codespace-manager - Provide required inputs per the skill's parameter spec and get structured output
What is Codespace Manager?
Create, manage, and access isolated cloud development environments (codespaces) powered by code-server, Docker, and Cloudflare Tunnel. Pre-installed with Bun... It is an AI Agent Skill for Claude Code / OpenClaw, with 525 downloads so far.
How do I install Codespace Manager?
Run "/install codespace-manager" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Codespace Manager free?
Yes, Codespace Manager is completely free (open-source). You can download, install and use it at no cost.
Which platforms does Codespace Manager support?
Codespace Manager is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Codespace Manager?
It is built and maintained by Lanbasara (@lanbasara); the current version is v1.0.0.