Skip to main content
Glama
README.md
# ๐Ÿ”’ Agent Jail

### Ephemeral Docker sandboxes for AI agents

**Give your AI agent a jail, not your machine.**

[Live Demo](http://2.26.23.86:8002) ยท [Pricing](http://2.26.23.86:8002/pricing) ยท [API Docs](#-api-reference)

---

</div>

## ๐ŸŽฏ What is Agent Jail?

Agent Jail provides **disposable, isolated Docker sandboxes** for AI agents. Instead of letting agents run commands directly on your machine, Agent Jail creates ephemeral containers where agents can safely execute code.

**Perfect for:**
- ๐Ÿค– AI code execution (ChatGPT, Claude, etc.)
- ๐Ÿงช Testing untrusted code safely
- ๐Ÿ”ฌ Research environments
- ๐Ÿ“š Educational platforms
- ๐Ÿ—๏ธ CI/CD pipelines

---

## โœจ Features

### Core
- โœ… **Disposable sandboxes** โ€” auto-cleanup after TTL
- โœ… **Docker isolation** โ€” true containerization
- โœ… **Resource limits** โ€” RAM/CPU caps per tier
- โœ… **Network isolation** โ€” optional per sandbox
- โœ… **TTL-based cleanup** โ€” automatic expiration

### Multi-tenant Platform
- ๐Ÿ” **Self-serve auth** โ€” email/password signup (no API key needed initially)
- ๐Ÿ’Ž **3 tiers** โ€” Free / Pro / Enterprise with enforced quotas
- ๐Ÿ’ฐ **Crypto billing** โ€” pay with USDT/TON/BTC via NOWPayments
- โšก **Auto-upgrade** โ€” webhook โ†’ instant tier activation
- ๐Ÿ“Š **Usage tracking** โ€” full audit log per user

### Interfaces
- ๐Ÿ–ฅ๏ธ **Web dashboard** โ€” manage sandboxes visually
- ๐Ÿ”Œ **REST API** โ€” full programmatic control
- ๐Ÿค– **Telegram bot** โ€” bilingual (FA/EN) glass-button UI
- ๐Ÿ”ง **MCP server** โ€” for AI clients (Claude Desktop, etc.)

---

## ๐Ÿš€ Quick Start

### 1. Clone & Install

```bash
git clone https://github.com/idiscoord13-sketch/agent-jail-mcp.git
cd agent-jail-mcp
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt