Commands
Default workflow
yolobox is built around AI shortcut commands:
yolobox claude
yolobox codex
yolobox gemini
yolobox agy
yolobox antigravity
yolobox opencode
yolobox copilot
yolobox piThat is the intended path. You point the agent at a project and let it work inside the sandbox.
If you use one tool most of the time, set default_harness = "codex" or another shortcut name in config. Then bare yolobox launches that tool. Set default_harness = "none" or leave it unset to keep bare yolobox as an interactive shell.
Command reference
AI shortcuts
yolobox claude
yolobox codex
yolobox gemini
yolobox agy
yolobox antigravity
yolobox opencode
yolobox copilot
yolobox piThese launch the matching tool inside yolobox and apply the tool-specific YOLO-mode wrapper when one exists.
General commands
yolobox # Run configured default harness, or shell if none
yolobox shell # Open an interactive shell
yolobox run <cmd...> # Run a single command in the sandbox
yolobox fork --name <env> <cmd...> # Run in a named copied folder with a Compose namespace
yolobox fork resume <env> [cmd...] # Reopen an existing copied folder
yolobox fork discard <env> --force # Delete a copied folder
yolobox setup # Write global defaults to ~/.config/yolobox/config.toml
yolobox config # Print the resolved config for the current project
yolobox upgrade # Update the binary and pull the latest base image
yolobox upgrade --check # Show latest release notes without upgrading
yolobox update-agents # Update all bundled AI CLIs in persistent home
yolobox update-agents codex # Update one AI CLI; accepts multiple targets
yolobox reset --force # Remove yolobox named volumes
yolobox uninstall --force # Remove yolobox binary, image, and volumes
yolobox version # Print version and platform
yolobox help # Show CLI helpCommon examples
Start an agent with Docker access
yolobox claude --docker --git-config --gh-tokenStart an agent that can open host browser URLs
yolobox codex --open-bridgeStart an agent with RTK compression
yolobox codex --rtkRun one command in isolation
yolobox run --no-network --no-env-passthrough --readonly-project python3 untrusted_script.pyName the runtime container
yolobox run --name yolobox-dev sleep 60Run parallel agents on one project
yolobox fork --name bruno codex
yolobox fork --name diane claudeFork mode gives each agent its own complete copy of the current project folder, like another developer working on their own machine. Instead of many agents competing on one machine and one folder, you get many named agent environments, each with its own folder and Docker Compose namespace. If the folder contains a Git checkout, use your Git remote as the sync point, just like you would with teammates.
The copy lives at ../.yolobox-forks/<folder>/<env> and is mounted inside the container at the original source path. Yolobox also sets a unique COMPOSE_PROJECT_NAME, so default Docker Compose containers, networks, and named volumes are namespaced by fork.
When the fork exits, yolobox runs best-effort Compose cleanup if it finds a Compose file. The copied folder is preserved until you explicitly discard it:
yolobox fork resume bruno codex
yolobox fork discard bruno --forceSee Recipes for common fork workflows, including webapp routing.
Hide secrets from the sandboxed view
yolobox claude --readonly-project --exclude ".env*" --exclude "secrets/**" --copy-as ".env.sandbox:.env"Build with extra packages for one project
yolobox run --packages default-jdk,maven mvn --versionInspect the resolved configuration
yolobox configTrace startup timing
YOLOBOX_TIMING=1 yolobox run trueInspect the latest release before upgrading
yolobox upgrade --checkThe check prints the current version, latest version, and a short summary from the release notes without downloading a binary or pulling the image.
Update bundled AI CLIs
yolobox update-agents
yolobox update-agents claude codex
yolobox update-agents antigravityupdate-agents runs inside the persistent yolobox home volume and refreshes Claude Code, Codex, Gemini, Antigravity, OpenCode, Copilot, and Pi. It uses global/default runtime settings, ignores .yolobox.toml, skips the project mount, and rejects --scratch, because updates made in scratch mode would disappear when the container exits.
Reset persistent state
yolobox reset --forceMental model
Use shortcut commands when you want an AI agent session.
Use run when you want one exact command in the same sandbox model.
Use fork when you want concurrent sessions on the same project folder without sharing files or the default Compose project namespace.
Use yolobox shell when you are debugging or exploring manually, not as the main path.