Milhouse Van Houten - Local CLI + web UI for running autonomous Codex AI agent loops
npm install milhouseMilhouse Van Houten is a chad pair programmer that provides a lightweight web UI for running Codex threads, starting with a quick planning phase and iterating through builds until the job is done. Inspired by a Ralph Wiggum-style autonomous loop, Milhouse focuses on simplicity, approachability, and making experimentation fun and easy to modify.
This repository contains the bare-bones version of Milhouse. It represents the core foundation, with many new features, experiments, and feedback loops currently in the pipeline.
CODEX_API_KEY set in your environment (optional if your Codex CLI is already authenticated)
``bash`
npm install -g milhouse
1. Authenticate Codex (either works):
- Set CODEX_API_KEY, or
- Use local Codex auth if your Codex CLI is already authenticated.
Example (PowerShell):
`powershell`
$env:CODEX_API_KEY="..."
2. Launch the UI:
`bash`
milhouse ui
Start the Web UI:
`bash`
milhouse uihttp://127.0.0.1:4173
This opens a local web panel at (falls back to a free port if busy).
`
$3
text
`
milhouse ui [OPTIONS]
Options:
--host
--port
--workdir
--state-dir
--no-open Don't auto-open browser
--help, -h Show help
Note: the UI's folder picker is best-effort. If it fails, you can always paste a path into the Workdir field.
bash
Start with default settings
milhouse ui
Specify a project directory
milhouse ui --workdir /path/to/project
Use a custom port
milhouse ui --port 8080
Don't auto-open browser
milhouse ui --no-open
`
How It Works
1. Plan Phase: Enter a goal in the Web UI. Milhouse generates an IMPLEMENTATION_PLAN.md with prioritized tasks.
2. Build Loop: Milhouse iteratively executes tasks from the plan, updating progress after each iteration.
3. Completion: When all tasks are done, the plan is marked STATUS: DONE and the loop exits.
Web UI Features
* Hero Status: Shows current run status and thread ID
* Controls: Start/stop runs, set goals and max iterations
* Live Logs: Real-time log streaming with auto-scroll
* Artifacts: View plan output, build logs, and implementation plan
* Sessions: History of all runs with status, timestamps, and durations
Development
`bash
Clone the repository
git clone https://github.com/ordinalOS/Milhouse-Van-Houten.git
cd Milhouse-Van-Houten
Install dependencies
npm install
Run in development mode
npm run dev -- ui
Build for production
npm run build
Run built version
npm run ui
`
Environment Variables
* CODEX_API_KEY: OpenAI Codex API key (optional if using local Codex auth)
* MILHOUSE_STATE_DIR: Override default state directory
* MILHOUSE_DEFAULT_WORKDIR: Override default working directory
(Legacy env vars MILLHOUSE_STATE_DIR / MILLHOUSE_DEFAULT_WORKDIR` are still supported.)