
Docker 기반의 샌드박스로, 코딩 에이전트를 위한 격리된 환경, 사전 설치된 에이전트 도구, 서비스 제어, 그리고 안전한 다중 세션 개발을 위한 워크스페이스 부트스트랩을 제공합니다.

에이전트를 샌드박싱하는 완벽한 방법은 아직 없지만, 컨테이너는 실용적인 출발점이다.
Agentbox는 Docker 기반 코딩 에이전트 샌드박스로, 원래 Batrachian Toad에서 영감을 받았으며, 이제 더 많은 도구로 일반화되었다.
여러 에이전트 세션을 실행할 때 webterm과 잘 작동하는 격리된 환경을 제공한다.
기본 컨테이너는 다음을 제공한다:
lazygit, killalluv와 Bun; 컨테이너 빌드는 정확한 버전 고정 없이 사용 가능한 최신 패키지를 설치한다make -C ~ ...를 통해 toad, opencode, gemini, vibe 설치ENABLE_DOCKER, ENABLE_SSH, ENABLE_RDP로 Docker/SSH/RDP 전환ENABLE_SSH=true) 및 mosh 지원/home/agent/workspace-skel 아래에 내장된 워크스페이스 스켈레톤과 에이전트 스킬Agentbox는 환경 변수를 사용하여 컨테이너 시작 시 어떤 서비스가 시작될지 제어한다:
ENABLE_DOCKER=true - Docker 데몬 시작 (Docker-in-Docker 지원용)ENABLE_SSH=true - SSH 서버 시작 (포트 22)ENABLE_RDP=true - RDP 서버 시작 (포트 3389)AGENTBOX_ENVIRONMENT=cli|gui - 이미지 제공 환경 마커 (헤드리스/CLI의 경우 cli, 데스크톱 이미지의 경우 gui)기본 동작: 명시적으로 활성화하지 않는 한 모든 서비스는 비활성화된다.
# Default - all services disabled
docker run -d agentbox
# Enable only Docker daemon
docker run -d -e ENABLE_DOCKER=true agentbox
# Enable Docker and SSH for development
docker run -d -e ENABLE_DOCKER=true -e ENABLE_SSH=true -p 22:22 agentbox
# Full desktop experience with all services (GUI image)
docker run -d -e ENABLE_DOCKER=true -e ENABLE_SSH=true -e ENABLE_RDP=true -p 22:22 -p 3389:3389 agentbox:gui
컨테이너 내부에서 agent 사용자에게는 추가 도구를 설치할 수 있는 ~/Makefile이 제공된다.
make -C ~ …를 통해 설치할 수 있는 코딩 에이전트/CLI:
toad — Batrachian Toad 설치 (uv tool 사용)opencode — OpenCode 설치 (Bun 사용)gemini — Gemini CLI 설치 (Homebrew 사용)vibe — mistral-vibe 설치 (uv tool 사용)편의 타깃:
tools — node, go, gemini, vibe 설치node, go — 언어 툴체인 설치 (일부 에이전트의 필수 조건)Agentbox는 /home/agent/workspace-skel에 내장된 프로젝트 스켈레톤을 제공한다.
현재 /workspace로 기존 파일을 덮어쓰지 않고 복사하려면:
make init-workspace
자세한 내용은 docs/workspace-skeleton.md를 참조하라.
GUI 빌드는 :gui 태그(및 <release>-gui)로 게시되며 XFCE, XRDP, VS Code를 포함한다.
권장 워크플로:
make up
make enter-toad # or: make enter-copilot
make down
서비스 재정의가 필요하면 docker-compose.override.yml을 생성하라:
services:
toad:
environment:
ENABLE_DOCKER: "true"
ENABLE_SSH: "true"
copilot:
environment:
ENABLE_DOCKER: "true"
ENABLE_SSH: "true"
그런 다음 실행하라:
docker compose up -d
# Build the headless image
docker build -t agentbox .
# Build the GUI image
docker build -t agentbox:gui --target gui .
# Run the container with selected services (GUI image)
docker run -d \
--name agentbox \
--privileged \
-e ENABLE_DOCKER=true \
-e ENABLE_SSH=true \
-e ENABLE_RDP=true \
-p 22:22 \
-p 3389:3389 \
-v $(pwd):/workspace \
agentbox:gui
컨테이너에 연결한 후:
make -C ~ toad
toad
toad /workspace
toad -a open-hands
이 프로젝트는 오래된 rcarmo/docker-templates/desktop-chrome을 기반으로 하며, 사용자 환경을 업데이트했다.
MIT