@home-v0/cli
v0.2.0
Published
Build a house in 3D in home-v0 from a folder of photos and floor plans. Made for people and AI agents.
Maintainers
Readme
@home-v0/cli
home-v0 helps a homeowner decide what to do with the outside of their house and send the plan to whoever will build it. This CLI builds a house in 3D in home-v0 from a folder of photos and floor plans, by hand or with an AI agent (Claude Code, Codex, Cursor…). An agent in home-v0 builds the model; the CLI uploads the house, follows the build, and saves the agent's chat, renders and 3D model next to your files.
npx @home-v0/cli login --token hv0_… # API key from home-v0 → API keys
npx @home-v0/cli init our-house --name "Our house" --place "Vrbnje 53, Radovljica"
# put outside photos (Street View screenshots work) in our-house/photos, plans in our-house/drawings
npx @home-v0/cli build our-house # 10 to 40 minutes; results in our-house/runs/<time>/
npx @home-v0/cli say our-house -m "The roof is steeper: the section shows 45 degrees"| Command | What it does |
| ---------------------------------- | -------------------------------------------------------------------- |
| login [--token], logout | Save or forget an API key (or set HOME_V0_API_KEY) |
| init [dir] --name … --place … | Start a house folder: house.json, photos/, drawings/ |
| houses [dir] | List the house folders below a folder |
| build [house] | Make the house in home-v0, upload its files and follow the build |
| say [house] -m … | Tell the agent what to change and follow its answer |
| follow, pull, stop [house] | Keep following, save the latest files once, or stop the agent's turn |
| guide [--agents-md] | The folder format, the workflow and how to review a build |
A house is a folder with a house.json, the current folder by default.
With an AI agent
Tell your agent to run npx @home-v0/cli guide first: it explains the folder, the commands, how to review a build against the photos and drawings, and what each build costs. To make it stick, add the output of npx @home-v0/cli guide --agents-md to your project's AGENTS.md or CLAUDE.md, and give the agent your key as HOME_V0_API_KEY.
Exit codes: 0 done, 1 the build failed or is waiting on a key or limit, 2 a mistake in the command, 3 not signed in or the key was refused, 4 a mistake in the house folder.
Developing
From the repo root: npm run home -- <command> runs the source against --api-url http://localhost:3000 or any home-v0. A local API needs no key: the CLI makes its own account there. npm run build -w @home-v0/cli bundles dist/home-v0.js, which is what gets published. Releases go through .github/workflows/release-cli.yml: bump the version here in a PR, then run the workflow.
