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
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: An agent bot that installs and drives Codex on its own (Melvin Vivas on X · notes), Asking a Coder bot to install Codex (Melvin Vivas on X · notes), Sign in with ChatGPT: Setting Usage Limits for Each App (Melvin Vivas on X · notes), Codex Cloud Environments Must Be Saved & Published Before Use (Melvin Vivas on X · notes) and 240 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: Create Claude Code Plugins with /plugin-authoring (Melvin Vivas on X · notes), Claude Code mods: customize behavior and UI with plugins (Melvin Vivas on X · notes), AI Engineer Roadmap Overview: From ML Foundations to RAG, Agents & Ops (Bashiri Smith on Facebook · notes), SkillsBento: Free Plugin Marketplace for Codex and Claude Code (Melvin Vivas on X · notes) and 101 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