소스 정보
- 저장소
- circlesac/sandbox
- 최근 소스 활동
- 2026년 7월 27일 07:12
- 감지된 SKILL.md 언어
- 영어
- 스타
- 3
- 포크
- 2
설치 방법
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
소스 파일 검토
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
메뉴
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
직접 명령은 검토 Prompt를 거치지 않습니다. 실행하기 전에 소스를 확인하세요.
npx skills add https://github.com/circlesac/sandbox --skill sandbox명령은 한 줄로 유지됩니다. 복사하기 전에 가로로 스크롤해 전체 내용을 확인하세요.
로컬 사본을 원하시나요? SkillsMP에서 현재 제공할 수 있는 파일을 다운로드하세요.
SOC 직업 분류 기준
SKILL.md 표시 중
| name | sandbox |
| description | Guide for using the E2B-compatible local sandbox with Docker or Shuru microVMs |
E2B-compatible sandbox that runs locally using Docker or Shuru microVMs. Use the standard E2B SDK — when ready for production, switch to real E2B by changing one config value.
# Install
npm install -g @circlesac/sandbox
# Start (auto-generates API key on first run)
sandbox serve # starts the control plane on :49982
E2B SDK → Control Plane (Hono on :49982) → Backend → Sandboxes (envd)
Backends:
The control plane proxies E2B SDK requests to sandbox instances running envd. Three routing layers:
{port}-{sandboxId}.{domain} for domain-based routingimport { Sandbox } from "e2b";
const sandbox = await Sandbox.create("base", {
apiUrl: "http://localhost:49982",
apiKey: "your-api-key", // from ~/.sandbox/config.json
sandboxUrl: "http://localhost:49982",
});
// Run commands
const result = await sandbox.commands.run("echo hello");
console.log(result.stdout); // "hello\n"
// File operations
await sandbox.files.write("/tmp/test.txt", "content");
const content = await sandbox.files.read("/tmp/test.txt");
// List directory
const entries = await sandbox.files.list("/tmp");
// Cleanup
await sandbox.kill();
| Command | Description |
|---|---|
sandbox serve | Start the control plane server (auto-generates API key on first run) |
sandbox status | Show health, backend, and running sandbox count |
Edit ~/.sandbox/config.json to set the backend:
{
"apiKey": "sk-sandbox-...",
"backend": "shuru"
}
Omit backend or set to "docker" for Docker (default).
| Method | Path | Description |
|---|---|---|
| POST | /sandboxes | Create a sandbox |
| GET | /sandboxes | List sandboxes |
| GET | /sandboxes/:id | Get sandbox info |
| DELETE | /sandboxes/:id | Kill a sandbox |
| POST | /sandboxes/:id/timeout | Update timeout |
| POST | /sandboxes/:id/pause | Pause a sandbox (Docker only) |
| POST | /sandboxes/:id/resume | Resume a paused sandbox (Docker only) |
| GET | /health | Health check (no auth) |
All endpoints except /health require X-API-Key header.
Templates map to Docker images. Resolution order:
sandbox-{templateId}:latest (e.g., sandbox-base:latest)ghcr.io/circlesac/sandbox-{templateId}:latestBuild the base image: docker build -t sandbox-base:latest docker/sandbox
Templates map to shuru checkpoints named sandbox-{templateId} (e.g., sandbox-base).
Create a checkpoint:
shuru checkpoint create sandbox-base --allow-net -- sh -c \
'apk add --no-cache bash sudo curl wget && ...'
If no sandbox-base checkpoint exists, shuru runs a plain Alpine VM.