# Repository Briefing: madarco/agentbox
> Source: https://repoforai.com/repo/madarco/agentbox (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/madarco/agentbox
- **Official Docs / Website**: https://agent-box.sh
- **Category**: Coding, Skills & MCP (AI 编程 / Skills / MCP)
- **Primary Language**: TypeScript
- **License**: MIT
- **Engineering Health**: A+ (90/100 · Maintenance 35/35 · Adoption 15/25 · Releases 20/20 · License 20/20)
- **Latest Release**: tray-latest (2026-12-03) — https://github.com/madarco/agentbox/releases
- **Review Snapshot**: 2026-12-03
- **Deployment / Stack Signals**: Docker, Self-Hosted, CLI
- **Momentum**: 590 ★ total (+0 24h / +5 7d) · 57 forks
- **Topics**: `claude`, `codex`, `docker`, `grok-build`, `sandbox`, `cli`, `harness`, `claude-code`, `coding-agents`, `developer-tools`, `codex-cli`, `opencode`
- **When to Use**: Best for: Developers or teams running parallel coding-agent tasks that need separate writable workspaces, resumable sessions, and browser or IDE access across local or remote environments. Skip if: A host-side agent or one Dev Container meets your needs, or your policy rules out copying project files and agent settings to the remote backend you intend to use.

## Overview
```text
### Architecture & Core Mechanics
AgentBox is a TypeScript monorepo whose CLI orchestrates coding-agent environments. `agentbox claude` provisions a box, brings in the project and agent configuration, and starts Claude Code inside a detachable tmux session. The local Docker path creates a container with a FUSE workspace overlay, so a local box is not a standalone VM. The in-box `agentbox-ctl` daemon reports service and task status through `agentbox status`.

Runtime operations sit behind a provider interface. The CLI can target local Docker, remote Docker over SSH, or a supported cloud backend. New backends can be packaged as npm plugins against `@madarco/agentbox-provider-sdk` and registered with `plugin add`, without modifying the AgentBox core. The source checkout builds with pnpm, and `apps/cli/dist/index.js` is the built CLI entry point.

### Key Capabilities & Differentiators
AgentBox carries project files and agent settings, skills, and plugins into separate boxes for Claude Code, Codex, and OpenCode. Developers can reattach to a running session, open a persistent shell, inspect service logs, connect VS Code or Cursor via Dev Containers, or use noVNC to access the box’s desktop in a browser. App previews use `portless` or OrbStack locally, `portless` over SSH for remote Docker, and provider-native URLs on Daytona, Vercel, and E2B.

Checkpoints reuse warm state for new boxes. Stopping a local Docker box preserves its writable layer, including `node_modules`; destroying it discards that layer. `agentbox download` copies the workspace back to the host with gitignore-aware behavior, while `agentbox cp` handles individual files. Remote Docker live snapshots use `docker commit`; Daytona is only partially supported, with experimental live snapshots. Test the checkpoint and preview paths on the backend you intend to use.

### Trade-offs & Limitations
A coding-agent CLI running directly on the host has fewer moving parts, and Dev Containers alone may be enough for a single editor-centric workspace. AgentBox earns its extra setup when several sessions need independent writable workspaces, persistent shells, previews, and warm starts. Local Docker consumes host CPU, memory, and disk as concurrency grows; remote execution shifts that load but adds network dependence and either server maintenance or provider costs.

Git credentials remain on the host and pushes request approval, but moving project files and selected agent configuration to a remote backend is a separate data-handling decision. MIT licensing permits commercial use of the public code subject to its notice requirements; it does not replace review of agent or cloud terms. The CLI provides resource monitoring through `agentbox top`, but there is no fixed sizing target for parallel boxes: measure the actual services, dependencies, and desktop workloads you plan to run.

### Hardware & Deployment Guide
For local use, install `@madarco/agentbox` globally with npm, run `agentbox install` for interactive setup, then run `agentbox claude` from a project. The CLI requires macOS on Apple Silicon or Intel, or Linux, plus Docker and Node.js 22.12 or newer. The first local creation builds the roughly 1 GB `agentbox/box:dev` image. Source builds require pnpm 9 or newer; the built CLI can be checked with `node apps/cli/dist/index.js --help`.

Self-hosted remote Docker uses SSH and the existing `~/.ssh/config`; managed providers have their own authentication. Vercel, Hetzner, Daytona, and E2B credentials are stored in `~/.agentbox/secrets.env` after login. Local execution removes the need for a cloud sandbox account, not necessarily the need for network access by the chosen coding agent. The macOS `tray-latest` release is a moving pointer to tray builds: version 0.4.6 adds multi-repository boxes and a PR badge. The app installs via `agentbox install app` or the DMG, while its source lives in a separate private repository.
```

## Key Capabilities
```text
- Execution: The local backend uses Docker containers with a FUSE workspace overlay, not a separate VM for every box.
- Agent sessions: Claude Code launches in detachable tmux; settings, skills, and plugins can be carried into boxes for Claude Code, Codex, and OpenCode.
- State management: Stopping a box preserves its writable layer, including `node_modules`; destroying it discards that layer, while checkpoints seed new boxes.
- Developer access: `agentbox url` opens the app preview, `screen` opens noVNC, and `code` connects VS Code or Cursor through Dev Containers.
- Provider differences: Remote Docker snapshots use `docker commit`; Daytona support is partial and its live snapshots are experimental.
- Git credentials: Credentials stay on the host, and pushes require approval; this control is distinct from workspace copying and provider authentication.
```

## Quick Start / Clone
```bash
npm -g install @madarco/agentbox
agentbox install

# Launch a new VM with claude, copy all your settings and workspace
agentbox claude

# Also install required project libraries and launch your dev server
> Run setup wizard? -> Yes

# Also use a cloud:
agentbox hetzner claude # or vercel, daytona

# Ctrl+a d to detach, claude keep going, to reconnect later:
agentbox attach 1

# To open a persistent shell inside the box:
agentbox shell 1

# Create a second box:
agentbox claude
agentbox attach 2
agentbox shell 2

# Open your web project on a .local url tunnel on your pc
agentbox url 2
# Or the in-box browser via webVNC:
agentbox screen 2
# Or connect to vscode/cursor inside the box:
agentbox code 2

# See status and quickly switch between agents:
agentbox dashboard
```
