Show HN: Run Claude Code unattended inside a fence, under a dollar budget An independent project called SIwithin released a single-file Python tool that runs the Claude Code and OpenAI Codex command-line agents unattended inside a folder fence and under a per-run dollar budget, writing one cost-and-completion record per run. SIwithin confines each run to the folders passed with --dir and --read (refusing the home folder), enforces a per-run budget plus a cap across all runs and a per-run timer, and for the Claude adapter routes all API traffic through a loopback proxy that holds a per-run token instead of the user's key and refuses requests past the budget. The tool runs only on macOS, requires Python 3.10 or newer with the standard library only, makes no network calls or telemetry of its own, and its Codex adapter was built from documentation and has not been run against a live CLI. SIwithin runs an agent CLI unattended on a brief, inside a fence around the folders you give it and under a dollar budget, and leaves one record per run. It keeps three promises with a tool and not with hope: 1. The run touches only the folders it was given. Your home folder is refused, for reading and writing, and the run's folders are allowed back. 2. The run cannot spend more than the dollars it was given. A budget per run, a cap across all runs, a timer on every run, and, for the Claude adapter, a loopback proxy that is the one door to the API: the run holds a per-run token and not your key, and every request it makes, however it makes it, is metered there and refused past the budget. Where a CLI cannot be stopped mid-run, the tool refuses it unless you say you accept that see "The ledger" and "The Codex adapter" . 3. Every run leaves one line saying what it cost and whether it was done. Works with the Claude Code and OpenAI Codex command-line tools. SIwithin is an independent project; it is not made, endorsed or sponsored by Anthropic or OpenAI. Claude, Claude Code, OpenAI and Codex are the names of their owners, used here only to say which programs SIwithin can drive. You remain bound by each vendor's terms of service and usage policies when you use their CLIs through SIwithin; SIwithin changes none of them. SIwithin runs on macOS only. On Linux and Windows it refuses to run, in one line, rather than run without a fence. SIwithin is one file, Python 3.10 or newer, standard library only. It makes no network calls of its own and sends no telemetry; the proxy it starts for a run listens on a loopback port and talks only to the API host you configure. git clone