/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.
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install codespace-manager - 安装完成后,直接呼叫该 Skill 的名称或使用
/codespace-manager触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Codespace Manager 是什么?
Create, manage, and access isolated cloud development environments (codespaces) powered by code-server, Docker, and Cloudflare Tunnel. Pre-installed with Bun... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 525 次。
如何安装 Codespace Manager?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install codespace-manager」即可一键安装,无需额外配置。
Codespace Manager 是免费的吗?
是的,Codespace Manager 完全免费(开源免费),可自由下载、安装和使用。
Codespace Manager 支持哪些平台?
Codespace Manager 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Codespace Manager?
由 Lanbasara(@lanbasara)开发并维护,当前版本 v1.0.0。