Retrieved article excerpt
Open article Β· Retrieved 2026-11-12T14:22:52.445044+00:00
# SILO
### Run AI Agents You Don't Trust
**Self-hosted CLI for running untrusted AI agents locally inside hardened Docker sandboxes with controlled egress, credential-managed integrations, and transparent inference auditing.**
Built-in agent runner Β· OpenClaw browser automation Β· Agent framework support Β· Policy-governed egress Β· Transparent inference proxy Β· Unified audit logging Β· Framework trace collection Β· Multi-agent orchestration Β· Credential-managed integrations
[MIT License](https://github.com/SilosLabs/silo-cli/blob/main/LICENSE)
[TypeScript](https://www.typescriptlang.org/)
[Node.js](https://nodejs.org/)
[Docker](https://www.docker.com/)
[PRs Welcome](https://github.com/SilosLabs/silo-cli/blob/main/CONTRIBUTING.md)
[Install](https://github.com/SilosLabs/silo-cli#-install) Β· [Quick Start](https://github.com/SilosLabs/silo-cli#-quick-start) Β· [Why SILO?](https://github.com/SilosLabs/silo-cli#-why-silo) Β· [Capabilities](https://github.com/SilosLabs/silo-cli#-capabilities) Β· [Frameworks](https://github.com/SilosLabs/silo-cli#-framework-support) Β· [Examples](https://github.com/SilosLabs/silo-cli#examples) Β· [Docs](https://github.com/SilosLabs/silo-cli/blob/main/docs) Β· [Contributing](https://github.com/SilosLabs/silo-cli#contributing)
---
SILO is a self-hosted developer CLI tool designed to run untrusted AI agents inside hardened Docker sandboxes with controlled egress, credential-managed integrations, and transparent inference auditing. Out of the box, it is built to support advanced agentic workflows including browser automation frameworks such as **OpenClaw**. It relies on several decoupled components:
- **CLI Entrypoint & Commands** ([cli.ts](https://github.com/SilosLabs/silo-cli/blob/main/src/cli.ts)): Command orchestration and interactive onboarding wizard ([onboard.ts](https://github.com/SilosLabs/silo-cli/blob/main/src/commands/onboard.ts)).
- **Inference & Integration Proxy** ([server.ts](https://github.com/SilosLabs/silo-cli/blob/main/src/proxy/server.ts)): Intercepts and logs LLM/egress requests, injects credentials on the host side, and manages the interactive prompter ([interceptor.ts](https://github.com/SilosLabs/silo-cli/blob/main/src/proxy/interceptor.ts)).
- **Docker Sandbox Core** ([runner.ts](https://github.com/SilosLabs/silo-cli/blob/main/src/docker/runner.ts)): Spawns and manages hardened, capability-restricted Docker containers with resource limits.
- **Policy Engine** ([engine.ts](https://github.com/SilosLabs/silo-cli/blob/main/src/policy/engine.ts)): Evaluates egress HTTP requests against declarative YAML policies.
- **Audit Logger** ([audit.ts](https://github.com/SilosLabs/silo-cli/blob/main/src/audit/audit.ts)): Standardizes and records all proxy and tool-calling event streams to standard JSONL log files.
- **Config & Encryption Layer** ([manager.ts](https://github.com/SilosLabs/silo-cli/blob/main/src/config/manager.ts)): Secures keys at rest using machine-bound PBKDF2 AES-256-GCM encryption ([encryption.ts](https://github.com/SilosLabs/silo-cli/blob/main/src/config/encryption.ts)).
---
## π¦ Install
**Requirements:** Node.js 18+, npm, Docker, and an LLM provider key or local OpenAI-compatible endpoint.
Note
SILO is not published to npm yet, so install it from source for now.
**From source:**
```
git clone https://github.com/SilosLabs/silo-cli.git
cd silo-cli
npm install
npm run build
npm link
```
**From npm (once published):**
```
npm install -g cli-silo
silo --help
```
The npm package is named `cli-silo`; the installed command is `silo`.
Docker Desktop must be running before `silo build`, `silo start`, or `silo quickstart`.
---
## π¨ Why SILO?
Running AI agents with shell access, file system privileges, and API credentials is **dangerous**. An agent can:
- **Exfiltrate your API keys** by POST-ing them to an external server
- **Execute destructive commands** β `rm -rf /`, credential harvesting, crypto mining
- **Access arbitrary internet hosts** to download malware or exfiltrate data
- **Run unsupervised** with no visibility into what it's doing
**SILO reduces these risks** with a defense-in-depth security architecture:
```
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β HOST MACHINE β
β β
β ββββββββββββββββββββββββ βββββββββββββββββββββββββββββββββββββββ β
β β silo CLI β start β Inference Proxy (:8199) β β
β β (Node.js) βββββββββΆβ β’ Injects real API key β β
β β β β β’ Injects integration tokens β β
β β $ silo quickstart β β β’ Evaluates policy per-request β β
β β $ silo run "task" β β β’ Records unified audit trail β β
β β $ silo logs β β β’ Collects framework traces β β
β β $ silo logs -F β β β’ Encrypts API keys at rest β β
β β $ silo traces β β β’ Health check + auto-restart β β
β ββββββββββββββββββββββββ ββββββββββββ¬ββββββββββ¬βββββββββββββββββ β
β β β β
β ββββββββββββΌβββ ββββΌββββββββββββββββ β
β β LLM Provider β β APIs (Slack, β β
β β OpenAI / etc β β GitHub, HubSpot) β β
β βββββββββββββββ ββββββββββββββββββββ β
β β
β βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β
β β Docker Sandbox β β
β β --read-only --cap-drop ALL --user 1001:1001 --pids-limit 128 β β
β β --network silo-sandbox-net (SILO bridge) β β
β β β β
β β Agent βββΆ http://llm.gateway:8199 βββΆ LLM (via proxy) β β
β β Agent βββΆ http://slack.gateway:8199 βββΆ Slack API (via proxy) β β
β β Agent βββΆ POST /_silo/traces βββΆ Unified audit log β β
β β β β
β β β HTTP egress routes through the policy proxy β β
β β β Cannot see API keys or tokens β β
β β β Cannot escalate privileges β β
β β β Cannot modify the root filesystem β β
β β β Can call LLMs through the proxy β β
β β β Can call integrations through gateways β β
β β β Can push framework traces to the audit log β β
β β β Can read/write /workspace β β
β βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
```
Important
SILO reduces risk; it does not make arbitrary code safe. Treat sandboxed agents as untrusted, review policy prompts carefully, and only expose host folders with `--desktop` or `--mount` when you are comfortable sharing those files.
---
## β‘ Quick Start
```
# One command does everything β onboard, build, start, connect
silo quickstart
# Or step by step:
silo onboard # Interactive setup (provider, API key, security mode)
silo build # Build the sandbox Docker image
silo start # Launch sandbox + proxy
silo run "List files in /workspace and describe what you find"
silo logs # See exactly what the agent did
```
`silo quickstart` asks for your provider, API key, model, workspace, resource limits, and policy mode before launching the first sandbox.
**With a framework:**
```
silo quickstart --framework crewai # Build CrewAI image, start, connect
```
---
## π§© Capabilities
### π€ Native Agent Runner
Run tasks directly from the CLI. SILO orchestrates the full LLM tool-calling loop β sending prompts, executing tools inside the sandbox, feeding results back, and repeating until done. All LLM calls are routed through the inference proxy for unified audit logging.
```
silo run "Create a Python script that calculates fibonacci numbers"
silo run "Install numpy and run the test suite" --max-turns 20
silo run "Refactor the auth module" --name my-agent
```
**Built-in agent tools:**
| Tool | Description |
| --- | --- |
| `execute_command` | Run any shell command inside the sandbox |
| `read_file` | Read file contents (with optional line limit) |
| `write_file` | Create/overwrite files with arbitrary content |
Supports both **OpenAI** and **Anthropic** function calling formats. All tool execution happens inside the sandboxed container β the agent can never touch the host.
### π§ͺ Framework Support
Run popular agent frameworks inside the sandbox with pre-configured Docker images, policy presets, and optional trace collection.
```
silo frameworks list # See available frameworks
silo build --framework crewai # Build a CrewAI-ready image
silo start --framework crewai # Start with CrewAI installed
silo connect # Shell in and run your crew
```
**Browser-capable framework image:**
```
silo build --framework openclaw --browser
silo start --framework openclaw --browser --desktop
# Or build browser variants for every supported framework
silo build --all-frameworks --browser
```
Browser mode bakes Chromium into a separate framework image, routes common browser executable names through a SILO launcher, keeps `/tmp` mounted `noexec`, and uses disposable tmpfs mounts for browser cache/profile/downloads. At runtime SILO also gives the container a larger `/dev/shm` and raises the memory limit to at least `2g` for browser stability.
The `--browser` profile is available for every supported framework image. OpenClaw is the primary browser-automation use case, but `silo build --all-frameworks --browser` builds browser variants for CrewAI, LangGraph, Aider, SWE-Agent, and OpenClaw.
**Supported frameworks:**
| Framework | Install | TUI | Trace Callbacks |
| --- | --- | --- | --- |
| π’ **CrewAI** | `pip` | β | β
`SiloCrewCallbacks` (event listener) |
| π **LangGraph** | `pip` | β | β
`SiloLangChainCallbacks` (BaseCallbackHandler) |
| π§βπ» **Aider** | `pip` | β
`silo connect --tui` | β |
| π§ **SWE-Agent** | `pip` | β | β |
| π¦ **OpenClaw** | `npm` | β
`silo connect --tui` | β |
#### π€ Bring Your Own Agent
Any agent not listed above can be added without forking SILO. Drop a YAML definition into `~/.silo/frameworks/` and it behaves like a built-in β `silo build --framework my-agent`, `silo start --framework my-agent`, policies, audit logging, and (optionally) `silo connect --tui` all work identically:
```
# ~/.silo/frameworks/my-agent.yaml
id: my-agent
name: My Agent
description: My experimental autonomous agent
install:
method: pip # pip | npm | custom (raw Dockerfile snippet)
packages: ["my-agent-pkg"]
healthCheck: my-agent --version
tuiCommand: my-agent # optional
requiredPolicies: ["pypi"]
envVars: # route its LLM calls through the SILO proxy
OPENAI_API_BASE: "http://llm.gateway:8199/v1"
OPENAI_API_KEY: "silo-proxy-injected"
tmpfsMounts: ["/home/agent"] # writable home on the read-only rootfs
```
A custom definition with the same `id` as a built-in overrides it, so you can also tweak how SILO runs the bundled frameworks.
#### π¦ OpenClaw Support
OpenClaw is the primary target for browser automation within SILO. When you build and run OpenClaw with the `--browser` profile, SILO automatically starts a background OpenClaw Gateway daemon inside the contai