Sandboxes Aren't Optional: 4 Ways to Isolate Coding Agents — Robert Brennan, OpenHands
by AI Engineer14:22 long3.9K views
Why watchA 14-minute talk from the OpenHands CEO comparing four ways to sandbox coding agents, for developers who run agents with broad permissions.
What this video covers
Robert Brennan, co-founder and CEO of OpenHands, gave this 14-minute talk at the AI Engineer World's Fair 2026 in San Francisco. His case is that a coding agent should run in a sandbox, and he walks through four concrete ways to set one up.
After a short introduction to OpenHands at 0:00, Brennan traces how AI-driven development has changed (0:57): from code snippets copied out of ChatGPT, to agents on a developer's own machine, and then to agents in the cloud (2:27). At 3:32 he explains the risk of the local setup. An agent started on a laptop with the dangerously-skip-permissions flag can reach every file, secret and production credential its owner can. The principle of least privilege, introduced at 4:52, frames the rest of the talk.
The four setups follow in order. Docker containers on a local machine come first at 5:42. At 7:02 he covers Claude Code running inside GitHub Actions. A dedicated VM or Mac Mini is the third option (8:22), and a Kubernetes pod for each agent session is the fourth (9:47).
At 11:02 he compares the four side by side. According to the description, the comparison rates each option on local versus remote, scale, isolation, persistence and triggers. At 12:22 he explains why sandboxes do not solve everything, and the description names container escapes as one of the limits. The talk closes with a look at OpenHands Agent Canvas at 13:07 and a brief wrap-up at 13:57.
The comparison chapter at 11:02 is the fastest route to the trade-offs if you already know the options.
Written by HuiaHub from the creator's title, description and chapters. All credit for the video goes to AI Engineer.
Key takeaways
- A coding agent with skipped permissions on a laptop can reach your files, secrets and production credentials.
- Sandboxes for coding agents should follow the principle of least privilege.
- Four isolation setups: local Docker, Claude Code in GitHub Actions, a dedicated VM or Mac Mini, and Kubernetes pods.
- Each setup is rated on local versus remote, scale, isolation, persistence and triggers.
- Sandboxing has limits, including container escapes.
Chapters
- 0:00Intro and OpenHands (opens YouTube at this moment)
- 0:57Evolution of AI-driven development (opens YouTube at this moment)
- 2:27Moving agents to the cloud (opens YouTube at this moment)
- 3:32Risks of running agents locally (opens YouTube at this moment)
- 4:52Principle of least privilege (opens YouTube at this moment)
- 5:42Local Docker containers (opens YouTube at this moment)
- 7:02Claude Code with GitHub Actions (opens YouTube at this moment)
- 8:22Dedicated VM or Mac Mini (opens YouTube at this moment)
- 9:47Kubernetes pods per session (opens YouTube at this moment)
- 11:02Comparing the four strategies (opens YouTube at this moment)
- 12:22Sandboxes are not a panacea (opens YouTube at this moment)
- 13:07OpenHands Agent Canvas (opens YouTube at this moment)
- 13:57Closing (opens YouTube at this moment)
More videos
22:46intermediateHow Inference Keeps Up with Our Insatiable Need for Tokens — Cerebras & Gimlet Labs
A 22-minute AI Engineer talk for inference engineers that covers runtime tricks like paged KV cache and chunked prefill, then system-level disaggregation and kernel-writing agents.
AI Engineer · 1.2K views ·
19:17intermediateStop Renting Intelligence: The Train-to-Deploy Loop for Specialized AI — Fireworks AI
A 19-minute Fireworks AI talk on training open models on your own data and redeploying them in a continuous loop, for teams weighing closed-model costs.
AI Engineer · 6.1K views ·
14:07intermediateThree Questions Every Agent Engineer Should Be Able To Answer
A 14-minute LangChain talk on finding, reproducing and fixing agent failures using production traces, for engineers who run agents in production.
LangChain · 8.1K views ·
43:05beginnern8n Full Course – Architect Scalable AI Automations from Scratch
A 43-minute freeCodeCamp.org course that takes n8n from first workflow to agents, Slack approvals, error handling and cost monitoring, for builders new to the tool.
freeCodeCamp.org · 111K views ·