the-mentor

Cbox — Development skill for Claude Code

Development community

Run a coding agent like claude-code in a micro VM sandbox.

How to install Cbox

This entry records only its repository, not the path inside it, so there is no exact command to give. Open the-mentor/cbox and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Cbox does

Run a coding agent like claude-code in a micro VM sandbox.

Alternatives in Development

  • Vibekit — A simple SDK for safely running Codex, Gemini CLI, and Claude Code in a secure sandbox 1.7k ★
  • Sandbox Init — You are the {{tentacleId}} tentacle agent — a specialist responsible for the work domain defined in your vault 1.4k ★
  • Sandbox-agent (Rivet) — Run Claude Code and other coding agents in sandboxes controlled over HTTP 1.2k ★

README

cbox

[![CI](https://github.com/the-mentor/cbox/actions/workflows/ci.yml/badge.svg)](https://github.com/the-mentor/cbox/actions/workflows/ci.yml) [![base-image](https://github.com/the-mentor/cbox/actions/workflows/base-image.yml/badge.svg)](https://github.com/the-mentor/cbox/actions/workflows/base-image.yml) [![Release](https://img.shields.io/github/v/release/the-mentor/cbox)](https://github.com/the-mentor/cbox/releases/latest) [![License: MIT](https://img.shields.io/github/license/the-mentor/cbox)](LICENSE) [![Ask DeepWiki](https://deepwiki.com/badge.svg)](https://deepwiki.com/the-mentor/cbox)

Build and run [Claude Code](https://github.com/anthropics/claude-code) inside a [BoxLite](https://boxliteai.com) microVM, with an MCP config baked in that points Claude Code at a host-side [agentgateway](https://agentgateway.dev). One `just` command builds the image and boots the box.

Boxes are driven by `cbox`, a small Rust binary in `cbox/` that embeds BoxLite as a library (BoxLite's runtime is compiled into it), so there is no separate `boxlite` CLI to install. The `justfile` is the front door: Docker-side recipes (building images, the local registry, the gateway) run directly, and `up`/`exec`/`down`/`list` forward to `cbox`.

This repo covers both halves: the **box side** (building the image, running the VM) and the **host side** (`agentgateway/`, run with `just gateway-up`). The box's baked MCP config points at `http://host.boxlite.internal:15003/mcp`, which the gateway serves. The gateway can also broker Anthropic traffic — with an API key it holds the key host-side so the VM never sees it.

How it works

flowchart LR
    subgraph host["Host machine"]
        env[".env
(real secrets)"] cbox["cbox binary
(embeds BoxLite runtime)"] registry["local registry
(cbox-custom image)"] workspace["host folders
(-c / -v mounts)"] subgraph boxlite["BoxLite networking (per box)"] mitm["MITM secret proxy