▸ self-hosted · open source · Apache 2.0

Build in parallel.
Stay in control.

Anvil runs Codex, Claude Code and OpenCode as tasks, each in its own Git worktree, on a server you host. Every task can build on what earlier ones learned. Read the diff as it lands. Nothing ships until you say so.

anvil — Personal / anvil
Download for macOS

also on windows · linux · or run the headless server

works withCodexClaude CodeOpenCode

Agents do the work.
You keep the decisions.

  1. 01

    Tasks, not conversations

    Hand an agent a job, not a chat thread. Follow the run if you want, or come back when there is code or a decision waiting.

  2. 02

    One task, one worktree

    Every task gets its own branch and worktree off your current commit. Agents never touch your checkout or each other.

  3. 03

    The diff is always live

    The Changes pane shows the task's diff while the agent works. Comment on exact lines to steer it, then hold Ship to land the change.

  4. 04

    Your machine, your call

    Agents, repositories and data stay on the host. Nothing ships or leaves it until you say so.

WORKTREES~/code/api
main ──────────────────────────────────────────── HEAD
 ├─▶ anvil/add-oauth-login           running  █░░░░░░░░░░░
 ├─▶ anvil/split-api-handlers        queued   ░░░░░░░░░░░░
 │   └─▶ anvil/api-handler-tests     queued   ░░░░░░░░░░░░
 └─▶ anvil/fix-flaky-e2e             running  ███░░░░░░░░░

▸ main only moves when you ship.

Runs on your hardware.
Learns from your work.

Self-hosted, end to end

Anvil is a client and a server, and you run both. Start the server on your laptop, a box under the desk or a VPS, then connect from the desktop app or any browser on your LAN or Tailscale.

  • No hosted backend and no Anvil account
  • Repositories, tasks, diffs and memory stay on your host
  • Agents run through the CLIs and logins you already have
  • Self-contained server builds, no Node.js required
anvil serveryour host · :4780
agentscodex · claude · opencodegitrepos, branches, mergesdatatasks, diffs, memory
Desktopsame machinestreaming
BrowserLANconnected
BrowserTailscaleconnected

Learns from previous tasks

Turn on project memory and every task that succeeds is saved with its output and diff. When you start the next task in that project, Anvil recalls the most relevant earlier work and hands it to the agent, so it builds on what was done instead of rediscovering it.

  • Memory is scoped to each project and workspace
  • Embeddings run locally with Ollama
  • Stored in embedded PGlite or your own Postgres
  • Off by default; turn it on in Settings › Memory
PROJECT MEMORYon · api
1 · remember
indexing “Add OAuth login” · output + diff +74 −6
2 · recall
> Add rate limiting to the login route
prior task 1Add OAuth login
prior task 2Fix flaky login redirect test
prior task 3Split the API handlers
searching this project’s memory…
embeddingsollama · on this hoststored inpglite or your postgres

Everything a task needs.
Nothing it doesn’t.

Read the diff, then ship

The Changes pane stays live while the agent works. Comment on exact lines to steer it, then hold Ship to commit with an agent-written message, or open a pull request instead.

OutputChanges 3 +74 −6Issues◆Ready to ship
src/auth/login.ts+2 −1
4141 export async function login(req: Request) {
42− const user = await findUser(req.body.email)
42+ const session = await oauth.exchange(req.query.code)
43+ const user = await upsertUser(session.profile)
4344 return issueToken(user)
4445 }
Open PRHold to ship

One kind of task

Describe the work or ask a question. In an isolated worktree the agent handles small changes directly and plans larger work step by step. In the local checkout it runs a single turn in place.

Isolated worktreeLocal checkoutanvil/started-4
Runs on a dedicated branch. Small changes land directly, larger work gets a step plan.

Stack follow-ups

Queue dependent tasks as a chain. Each waits for its parent, then starts from what it delivered.

Build the APIWorking
Add the frontendQueued
Write the testsQueued

Watch it run

Live output, tool calls, tokens and cost for every task, plus a terminal docked in the task’s worktree. Come back when it needs you.

Add provider usage limitsWorking
Elapsed 4sTokens 1.2kCost $0.0050
OutputChanges 0Issues
message 1tool_use 0tool_result 0
messageI’ll add workspace usage limits and keep provider data behind the account bridge.
Writing a response…

Local analytics

Tokens, cost, task outcomes and code churn across every agent and model, computed from your own task history.

ANALYTICS7d30dThis monthAll
TOKENS1.8M
COST$14.20
TASKS23
AVG WORK6m 12s
InputCachedOutputon this host

A workspace per context

Keep personal and work apart. Each workspace has its own projects, agent accounts, credentials, history, settings and memory. Switch in one click.

WORKSPACESPersonalWork
Personal
accountChatGPT · Codexprojectsanvil, dotfilestasks128
Weekly74% left

Get Anvil

Free, open source and self-hosted. Download the desktop app, or run the server on any machine you own and open it from a browser.

>_ TERMINAL~/code
$ brew install --cask lucaspiritogit/tap/anvil
==> Installing Cask anvil
anvil was successfully installed!
$ ./anvil-server --tailscale
serving on https://anvil.tailnet.ts.net