ccsandbox
v1.2.1
Published
A self-hostable Claude Code-like web environment. Run AI agents safely by sandboxing Claude Code inside a devcontainer, with no impact on your host machine.
Readme
ccsandbox
A self-hostable Claude Code-like web environment. Run AI agents safely by sandboxing Claude Code inside a devcontainer, with no impact on your host machine.
Features
- List and clone repositories from GitHub / GitHub Enterprise
- Launch and manage containers via devcontainer
- Web terminal powered by xterm.js (multi-tab support)
- Claude CLI integration (chat, permission management)
- Session persistence
- Real-time sync across multiple browser tabs
Requirements
Before using ccsandbox, make sure you have the following installed:
- Docker - Container runtime
- @devcontainers/cli - Dev Container CLI
npm install -g @devcontainers/cli
Quick Start
1. Start ccsandbox
npx ccsandbox@latestThe server starts at http://localhost:3000 by default.
2. Initial Setup
- Open
http://localhost:3000in your browser - Click the Settings icon (gear icon)
- Enter your GitHub Personal Access Token (PAT)
- Required scopes:
contents(read/write) - Create a new PAT (Fine-grained)
- Required scopes:
- (Optional) Set a Password for authentication
- Save your settings
CLI Options
| Option | Description | Default |
|--------|-------------|---------|
| --port <port> | Port | 3000 |
| --listen <host> | Bind host | 0.0.0.0 |
| --config-dir <path> | Configuration directory | ~/.ccsandbox |
| --repo-dir <path> | Repository directory | ~/.ccsandbox/repo |
| --devcontainer-cli <path> | devcontainer CLI path | (auto-detect) |
Examples
# Start on a different port
npx ccsandbox@latest --port 8080
# Specify custom directories
npx ccsandbox@latest --config-dir ./my-config --repo-dir ./my-reposConfiguration
Configure the following from Settings in the Web UI:
| Setting | Description | |---------|-------------| | GitHub PAT | GitHub Personal Access Token | | API Base URL | For GitHub Enterprise (optional) | | Password | Authentication password (optional) | | Default Shell | Default shell for terminals | | Dotfiles | Dotfiles repository settings |
Development
# Clone the repository
git clone https://github.com/ryoppippi/ccsandbox.git
cd ccsandbox
# Install dependencies
npm install
# Start dev server
npm run dev
# Run tests
npm test
# Build
npm run buildLicense
MIT
