Run Codex and Claude in YOLO Mode Safely with Docker Sandboxes
Melvin Vivas · X post · 2026-08-28 · Open on X
Topics: AI Dev Tools & Productivity, AI Safety, Security & Guardrails, AI Agents, Tool Use & MCP · Level: beginner
Summary
The creator tries Docker Sandboxes (the sbx CLI) to run coding agents in YOLO mode, meaning without permission prompts, inside an isolated sandbox. The post gives install commands for Mac and Windows and the commands to launch Codex or Claude.
Key points
- Docker Sandboxes lets you run agents in YOLO mode (no approval prompts) safely isolated from your machine.
- Mac install: brew trust docker/tap && brew install docker/tap/sbx
- Windows install: winget install Docker.sbx
- Run Codex: sbx run codex
- Run Claude: sbx run claude
Resources mentioned
- Docker Sandboxes · tool · docker.com · free
Local microVM-isolated sandboxes for safely running AI coding agents on your laptop.
Also in: Docker Sandboxes for Running Coding Agents Locally (Melvin Vivas on X · notes), Docker Cloud Sandboxes: Run AI Agents in Local or Cloud microVMs (Melvin Vivas on X · notes), Docker Sandboxes (Melvin Vivas on X · notes), Docker Sandboxes Include an Interactive Dashboard (Melvin Vivas on X · notes) and 1 more - OpenAI Codex · tool · openai.com · paid · recommended by both Bashiri Smith & Melvin Vivas
OpenAI's coding agent. In the diagram it writes code, fixes review findings and drives the build loop. The creator also used it to make this video.
Also in: Developers moving from ChatGPT/Codex to Claude (Melvin Vivas on X · notes), Creator Opinion: Codex Is Still the Best at Computer Use (Melvin Vivas on X · notes), OpenAI Codex Ambassador applications are open (Melvin Vivas on X · notes), GPT-Live-1.1: Multilingual Voice Update for ChatGPT and Codex (Melvin Vivas on X · notes) and 264 more - Claude Code · tool · code.claude.com · paid · recommended by both Bashiri Smith & Melvin Vivas
Build agents and pipelines from the terminal; the guide's main agentic coding tool.
Also in: First impressions: Claude Code in the cloud is good and fast (Melvin Vivas on X · notes), Why Claude Code feels faster: gzipped turns and instant cloud sessions (Melvin Vivas on X · notes), Watch What Fills Your Coding Agent's Context and When to Clear (Melvin Vivas on X · notes), Claude Code's Right Sidebar and Context Breakdown (Melvin Vivas on X · notes) and 124 more
Try this
- Install sbx: brew trust docker/tap && brew install docker/tap/sbx (Mac) or winget install Docker.sbx (Windows).
- Start an agent in YOLO mode with 'sbx run codex' or 'sbx run claude'.
More in AI Dev Tools & Productivity
- Docker Sandboxes
- Using Codex as a Sysadmin to Find a Cloudflare DNS Issue
- Docker Sandboxes Include an Interactive Dashboard
- Docker Sandboxes: Disposable Isolated Sandboxes for AI Agents
- herdr: Run Pi, Codex and Claude Code in One Terminal
- Cursor Adds App Creation, Code Storage with Origin, and Vercel Deploys