Anvil

•

Provides a secure, resource-limited, and network-isolated Docker sandbox for executing code and commands with structured results.

Anvil offers a robust, throwaway Docker sandbox designed specifically for agents to run code or shell commands safely. It ensures isolation and resource limitation, returning structured outputs including stdout, stderr, exit code, and duration, enabling agents to verify their work, reproduce bugs, or check outputs without compromising the host system. With zero npm dependencies, Anvil directly leverages the Docker CLI, providing both a command-line interface and an optional web dashboard (Forge Log) for visualizing run history and managing sandbox executions.

Key Features

01Offers MCP Server integration with dedicated tools for agent-driven code and command execution.
02Secure, resource-limited, and network-isolated Docker sandbox executions.
03Provides structured output (stdout, stderr, exit_code, duration) for all runs.
04Features a comprehensive web dashboard (Forge Log) for run history, comparison, and interactive code execution.
05Allows read-only mounting of host directories into containers for testing local repositories.
060 GitHub stars

Use Cases

01Review and compare historical code execution runs through a dedicated web interface.
02Reproduce bugs or validate code output without impacting the development or production host.
03Enable AI agents to safely execute and verify code or commands in an isolated environment.
04Test local repositories, code snippets, or modules against fixture files within a disposable container.