Skip to main content

A dynamic, repository-aware persistent Docker sandbox CLI for AI Agents.

Project description

Flashbox ⚡️

A lightning-fast, repository-aware persistent Docker sandbox CLI designed specifically for AI Coding Agents.

Flashbox allows your AI coding agents (like Antigravity or Cursor) to safely execute terminal commands, run scripts, and compile code in an isolated Linux environment without polluting your local macOS host. It completely replaces the heavy, latency-prone Boxlite MCP server with a streamlined local Python CLI mapping directly to your Docker daemon.

Why Flashbox?

  • Zero Token Overhead: Unlike MCP servers, Flashbox doesn't inject massive JSON schemas into your prompt context.
  • Dynamic Repository Mounting: If you run sandbox start in /Projects/MyCoolApp, Flashbox dynamically mounts that specific directory to /vault inside a dedicated flashbox-mycoolapp container.
  • Native Execution Speed: Bypasses JSON-RPC handshakes. sandbox exec streams natively through subprocess directly to Docker.
  • Built-in Telemetry: Ships with a real-time TUI to monitor the active exact CPU and RAM your AI is drawing.

System Requirements

  • Operating System: Fully cross-platform. Tested heavily on macOS (Apple Silicon), but works flawlessly on Linux and Windows (via WSL2).
  • Docker Daemon: You MUST have the Docker engine running in the background. On macOS/Windows, this means having Docker Desktop or OrbStack open and active. On Linux, the native docker service must be running.
  • Python: Python 3.10+ installed on the host machine.

Installation

Because Flashbox is packaged cleanly, you can install it globally via pipx or your preferred Python package manager:

# Run this inside the cloned repo
pipx install .

Usage

Once installed, the globally accessible sandbox command is available from any directory.

Quick Start

Navigate to any project directory and initialize the sandbox:

cd /Users/markeyser/Projects/MyCoolApp
sandbox start

This instantly spins up a python:3.11-slim container uniquely named flashbox-mycoolapp and installs base tools (git, rg, jq, curl).

AI Execution

Instruct your AI agent to execute commands using the exec flag. The agent's native system terminal will push the command securely into the container:

sandbox exec "python3 main.py"
sandbox exec "grep -r 'TODO' ."

Telemetry Dashboard

Launch the TUI to monitor the AI's impact on your system resources and disk space in real-time:

sandbox monitor

Clean Slate

If the AI corrupts the environment or installs too many dependencies, instantly wipe the infrastructure (your code on the native host remains untouched):

sandbox remove
sandbox start

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

flashbox-0.1.1.tar.gz (11.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

flashbox-0.1.1-py3-none-any.whl (8.1 kB view details)

Uploaded Python 3

File details

Details for the file flashbox-0.1.1.tar.gz.

File metadata

  • Download URL: flashbox-0.1.1.tar.gz
  • Upload date:
  • Size: 11.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for flashbox-0.1.1.tar.gz
Algorithm Hash digest
SHA256 988ecdb4f2c6a202eb423a3012f7ebbdbb9123adae1de745c7b1df8af50d503b
MD5 f3680850f0c39db0e0bef31e0384ba55
BLAKE2b-256 adb3329802a59d8a87e3d3da1a580e73a4018cc764386122562cf975c59f63ef

See more details on using hashes here.

File details

Details for the file flashbox-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: flashbox-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 8.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for flashbox-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0bdee40fedc21fae2be56fe9790bacb360817827318a7b530ca8f5599070ff96
MD5 fa11f49c5fde5407052d2267e8aca28f
BLAKE2b-256 ccfdb419a3744d9aad12f07e8096feac1bd4f6c1b3a34a7803b1a6644e5a72d6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page