AIToday
Large Language ModelsAI Coding AssistantsOpen-Source AIHacker NewsPublished: Jul 28, 2026, 22:00 JST

Hotcell: local sandboxes for AI agents, API keys stay on host

Hotcell: local sandboxes for AI agents, API keys stay on host

3 Key Points

  1. What happened

    Hotcell is a new open-source tool that runs isolated sandboxes for AI agents on your own hardware—a Mac Mini, cloud VM, or bare-metal box—while keeping API keys on the host machine instead of inside the sandboxes.

  2. Why it matters

    The tool addresses a security concern for developers running multiple AI agents: credentials for LLMs, GitHub, and other services are swapped for short-lived per-sandbox tokens at a gateway, preventing any single compromised sandbox from exposing real API keys. Developers can spawn as many isolated agent environments as their hardware supports, with per-cell CPU/memory/cost metering.

  3. What to watch

    Hotcell supports Docker everywhere, Firecracker microVMs on Linux/KVM, and Apple VZ on macOS for VM-grade isolation. It is available now under Apache-2.0 license; install via `npm i -g hotcell`. The tool includes an optional default-deny egress control (kernel-enforced on Linux and microVMs, advisory on macOS Docker) and works with OpenRouter, GitHub, OpenAI, Anthropic, Stripe, Slack, and Cloudflare out of the box.

Not sure about something? Ask the AI

Questions and answers are published on this page.

Summaries like this, in your inbox every morning.

Context & Analysis

Hotcell addresses a practical security gap in AI agent deployment: as teams run multiple autonomous agents on shared code repositories or across cloud infrastructure, the traditional approach of embedding API keys in sandboxes creates a large attack surface. A single compromised agent environment could expose credentials for all downstream services. Hotcell's architecture flips this by keeping credentials on the host and using a gateway to mediate all outbound calls—each sandbox holds only a temporary, narrowly-scoped token that cannot be reused or transferred.

The tool's flexibility across hardware (Mac Mini, cloud VM, bare metal) and container runtimes (Docker, Firecracker, Apple VZ) reflects the reality that different teams have different infrastructure. The admission control that refuses over-subscription instead of triggering out-of-memory errors, combined with per-cell CPU/memory/cost metering, suggests the developers have thought through the operational challenge of running dozens of agents on finite hardware without cascading failures.

A limitation the documentation acknowledges: the gateway cannot protect credentials that travel outside HTTP headers (database passwords in wire handshakes, AWS SigV4 signatures signed locally, mTLS certificates). For these, developers must choose to inject the real value into the sandbox, accepting the risk. The tool also requires that SDKs read injected base-URL environment variables; those that hardcode their endpoint will bypass the gateway unless egress enforcement denies them outright.

FAQ
How does Hotcell keep API keys safe?
API keys stay on the host machine. When sandboxes need to call an LLM or GitHub, they use short-lived per-sandbox tokens issued by a gateway; the real keys never enter the sandbox. The gateway swaps the token for the real credential on the outbound request, making keys metered, spend-capped, and revocable.
Which services does Hotcell protect by default?
Any API whose credential travels in an HTTP request header is protected by the gateway—OpenAI, Anthropic, OpenRouter, GitHub, Stripe, Slack, and Cloudflare work identically. Non-HTTP protocols (Postgres, Redis, MongoDB), request-signing schemes (AWS SigV4), mTLS, and OAuth refresh-token exchanges cannot use the gateway and require the real credential if chosen.
How do I install and run Hotcell?
Install via `npm i -g hotcell`, then run `hotcell` for a 30-second guided setup. Create isolated sandboxes with commands like `hotcell create -n 5 --repo <url> --branch`, open terminals into them with `hotcell terminal <id>`, and clean up with `hotcell rm --all`.

AI news that matters for your work, delivered every morning.

Pick your industry and the AI tools you use, and get news related to your work every day.

Free · 30 seconds with Google · unsubscribe anytimeWhat is AIToday? →

Ask AI

Ask AI anything about this article. The AI reads this article, earlier AIToday articles, and Wikipedia, and cites its sources. Q&As are published on this page for other readers too.

Questions and answers are published on this page.

Related Articles

Next articleAI IPO Billionaires to Unleash Largest Philanthropy Wave in Decades