Observed since 21 Oct, 09:34 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
Secure, isolated development environments powered by Docker and the Antigravity AI agent
Secure, isolated development environments powered by Docker and the Antigravity AI agent.
Antigravity CLI's default safety constraints require too much manual intervention, but granting the agent full system access is a security risk.
agy-sandbox solves this by running the CLI inside an isolated Docker container. This gives the AI agent the freedom to execute tasks autonomously while strictly preventing it from accessing
or modifying your host machine. In short, the tool minimizes the blast radius if something bad happens.
This Python package is meant to abstract the underlying Docker commands and handle OS-specific configurations, providing a streamlined, cross-platform sandbox out of the box.
Ensure your system has:
Install via pip:
pip install agy-sandbox
Or using uv:
uv pip install agy-sandbox
git clone https://github.com/lideta-technologies/agy-sandbox.git
cd agy-sandbox
uv venv
source .venv/bin/activate # On Windows: .venv\Scripts\activate
uv pip install -e .
When you run agy-sandbox on a project directory, the tool automatically handles the container lifecycles:
docker exec.# Provision and start a sandbox (default provider is Google AI Studio)
agy-sandbox /path/to/your/project
# Explicitly specify Vertex AI billing
agy-sandbox /path/to/your/project --provider vertex
# List all sandbox containers
agy-sandbox list
# Stop a sandbox container (accepts current workspace, a custom path, or direct container name)
agy-sandbox stop
agy-sandbox stop /path/to/your/project
# Remove a sandbox container (accepts current workspace, a custom path, or direct container name)
agy-sandbox remove
agy-sandbox remove /path/to/your/project
# View container logs
agy-sandbox logs --follow
AI Studio uses a simple web authentication mechanism. Vertex AI requires a Google Cloud project setup with Application Default Credentials (ADC) configured on your host (gcloud auth application-default login).
Switching between them is not always as simple as changing an environment variable because the Antigravity CLI prioritizes cached Google OAuth sessions over new configurations.
To switch from Google AI Studio to Google Vertex AI:
/workspace terminal of the container (or from the agy prompt), run:
agy logout
# (Or type /logout directly in the active agent session)
agy-sandbox /path/to/your/project --provider vertex
2. Use a Google Cloud project. This bypasses the cached Google AI Studio OAuth flow and forces the CLI to use your mounted ADC credentials.The following host paths are automatically mounted into your isolated container:
| Host Path | Container Path | Purpose |
|---|---|---|
| Your project directory | /workspace | Project code (live-mounted) |
~/.config/antigravity | ~/.config/antigravity | Antigravity auth tokens and agent state |
~/.gemini | ~/.gemini_host (re-mapped) | Google Gemini credentials |
~/.cache/uv | ~/.cache/uv | Shared python package cache |
~/.local/share/uv | ~/.local/share/uv | Shared python binaries and environments |
We welcome contributions to help improve agy-sandbox.
git clone https://github.com/lideta-technologies/agy-sandbox.git
cd agy-sandbox
python3 -m venv .venv
source .venv/bin/activate
pip install -e ".[dev]" pytest pytest-cov
Make sure all unit tests run and pass before submitting a pull request:
pytest --cov=agy_sandbox --cov-report=term-missing
MIT
Download counts and popularity will appear here as the collector receives them.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 0.1.2 | 27 Jul 2026 | 2 |
This describes our collected data; it is not a security assessment.
Shared repository data · GitHub
Observed since 21 Oct, 09:34 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:6eb721f3e54c87cf8ba8529ee97dd785a4ff76d669cfac3abcfc4536d91948b5