A clean slate.
A fresh EC2 instance, a GCP VM, or a new Mac. No GitHub CLI. No configured agent. No API key handy. Bailout gets you an agent now.
› set up gh and OpenCode on this VMA fresh VM. A new Mac. Your usual agent won’t start. Get a working harness in one command, then use it to get your real tools running.
curl -fsSL https://bailout.dev/install.sh | bashApple Silicon · Linux x64 & ARM64 Requires Bash & curl.
Or download a binaryI’ll check what’s installed first.
Git is here. GitHub CLI and OpenCode
still need setting up.
You’re ready. Run opencode.
Done with bailout? Remove it:
When your normal tools aren’t there to help.
A fresh EC2 instance, a GCP VM, or a new Mac. No GitHub CLI. No configured agent. No API key handy. Bailout gets you an agent now.
› set up gh and OpenCode on this VMYour usual agent won’t launch. A config changed. A dependency disappeared. Use a separate harness to diagnose and repair it.
› pi stopped working. help me fix itGet back to Codex, Claude Code, Pi, OpenCode, or whatever you use. Once you’re running, bailout has done its job. Remove it.
$ bailout uninstallBailout uses a hosted, free-only model router, so you can start before your own keys and agents are configured. Every attempt verifies free eligibility through current pricing or a verified free account with billing disabled.
Free capacity is shared and can run out. When it does, bailout stops or tries another qualified free model. It never switches to a paid one.
Read how routing workscurl.Bash, curl, and the usual base utilities, including tar and a SHA-256 utility. No Git, GitHub CLI, Node, Python, local model, or configured agent. It supports Apple Silicon macOS and x64 or ARM64 Linux. You’ll need an internet connection.
The v0.7.3 native binaries are 638,592 bytes on Apple Silicon, 844,576 bytes on Linux x64, and 790,784 bytes on Linux ARM64. That’s the full uncompressed executable. The Mac download is just 318,119 bytes. See every release size.
Yes. Each launch checks for a newer stable release, verifies the download, and restarts into it. If the check fails, your existing version still runs. Set BAILOUT_NO_UPDATE=1 to opt out.
Yes. Bash can read, create, and edit files using the utilities on your machine. Bailout can repair a config, write a script, and run checks through the same tool. No separate editor or coding agent needs to be installed first.
Bailout itself needs neither. For the tools you’re setting up, you use your own accounts. Login and key entry can happen directly in your terminal, outside the model conversation. Don’t paste credentials into chat.
Bailout selects models automatically. A temporary rate limit gets a short retry; a failing route gives way to another available free model. Completed commands stay completed. Recovery stops after four attempts or two minutes, with a clear error if free capacity is exhausted. Shared quotas and the hosting cutoff still apply. How recovery works.
The hosted service uses free models and shares a limited quota. Availability and model quality vary. Rate limits or the shared hosting cutoff pause requests with a clear message. It never falls back to paid models. Read the limits. You can host your own router for a separate quota.
Bailout runs Bash with your user’s permissions. Commands execute automatically, so it can read and edit files, run programs, and access the network. It is not a sandbox. Use a container or disposable checkout when you want isolation.
Your conversation and captured tool output go through the API to a configured model provider. The guide lists provider routing and data handling. Their data policies apply. Bailout does not save conversations on the server or record prompts in application logs. Keep secrets out of prompts and files the model reads.
Just aggregate totals: binary downloads from GitHub and model requests accepted by the hosted backend. No analytics cookies, installation IDs, location tracking, or extra telemetry calls from the CLI. Downloads include updates and repeat downloads; they aren’t unique users. Requests have been counted since September 17, 2026, including client retries and streams that may fail after starting. The green dots mean the totals are fresh, not that a model is available. Our separate abuse limits use short-lived daily IP hashes. How the counters work.
Because you sometimes need an agent before you can set up your agent—or a working one to repair the one that broke. Bailout is a small, independent way to bridge that gap. Success is getting you back to your normal tools.