A secure sandbox runtime that allows AI agents and automation tools to safely execute commands, run code, and manage files in isolated environments.
Run commands, manage files, and execute code in a controlled sandboxed environment without risking your host machine, accessible via a simple REST + WebSocket API.
AI models can write scripts and automate workflows, but running them directly on your system is risky. Bastion solves this by providing:
Sandboxed execution - containers isolate AI processes from your host.
Policy enforcement - define allowed commands, file access, and network usage.
Resource controls - limit CPU, memory, and execution time.
Live streaming - watch stdout/stderr in real-time.
Scoped file management - safely upload, download, and organize files.
Audit logging - keep detailed execution history for debugging and reproducibility.
Bastion is self-contained, lightweight, and designed to plug into AI workflows seamlessly.
Sandboxed
Each session runs in its own ephemeral Docker container.
CPU, memory, and network can be limited per session.
Comes pre-installed with Python, Node.js, git, build tools, data libraries, ffmpeg, and other common utilities.
Ideal for running AI agents safely without affecting the host system.
Bare-Metal
Runs directly on your machine.
Full access to system files and installed tools.
Suitable for personal automation, local development, or giving an AI full project access.
Explicit warnings are shown before execution for safety.
Run commands via POST /execute
Stream output over /ws/{session_id}
Upload/download files in /workspace
Validate commands before execution with the policy simulation endpoint
Integration can be direct (AI talks to your Bastion instance) or proxied (through a central server for multi-user setups).