Anvil
A native macOS coding agent that works with almost any chat model, with diff review, checkpoints, sub-sessions, and browser and iOS Simulator tools.
At a Glance
Anvil app is licensed under AGPL-3.0 (OSI-approved). Model usage is an external cost: bring your own model/API key, e.g. Experiential Labs priced per token, or your own ChatGPT plan.
Engagement
Available On
Listed Nov 2026
About Anvil
Anvil is an open-source native macOS desktop app, built with SwiftUI, that acts as a coding agent in the spirit of Claude Code and Codex. You open a project folder, describe a change, and review each diff as the agent reads, edits, runs commands and tests. It is at version 0.1.0 and currently has to be built from source, since the README says no signed release builds exist yet.
What It Is
Anvil is a desktop coding agent. Its agent speaks a plain-text protocol (a short piece of reasoning plus one JSON block of actions) instead of relying on native tool calling, so it can run on any chat model. The app computes every edit as a diff, applies a permission policy, and records a checkpoint before anything is written. To keep weaker models on track, it adds checks of its own: it runs the project's tests before accepting "done", has a second call review the diff, and switches model family after the same action fails twice.
Model and Provider Access
Anvil connects directly to each provider rather than through a server of its own. Supported options include Experiential Labs models, any OpenAI-compatible endpoint, and ChatGPT and Gemini web accounts. Presets cover Z.ai, OpenRouter, Groq, DeepSeek, Mistral, the OpenAI API, Ollama and LM Studio. Each provider is described by a single anvil-provider.json file, and community plugins can be installed from a GitHub URL. API keys and session cookies are stored in the macOS Keychain. The README warns that the ChatGPT and Gemini providers use the websites' private endpoints, can break when those sites change, and may violate those services' terms.
Review, Safety and Tooling
Four permission modes (Ask, Auto-accept edits, Plan only, Bypass) control what asks first, and dangerous commands such as rm -r, sudo and git push always ask. Each request is a checkpoint that can be undone. The agent works with a built-in terminal, a live browser preview it can click and type in, an iOS Simulator, git, GitHub through gh, language servers for type checks, and MCP servers in Claude's .mcp.json format. Large features can be split into sub-sessions that each run in their own git worktree and are merged back with conflict checks.
Setup Path
Building requires macOS 15 or later, Xcode 26 or later, and XcodeGen. A headless CLI mode runs the same agent for scripts and evals. The repository includes 16 eval tasks with hidden checks, and the README reports 16/16 passes for several models on its own eval run.
Community Discussions
Be the first to start a conversation about Anvil
Share your experience with Anvil, ask questions, or help others learn from your insights.
Pricing
Open Source (AGPL-3.0)
Anvil app is licensed under AGPL-3.0 (OSI-approved). Model usage is an external cost: bring your own model/API key, e.g. Experiential Labs priced per token, or your own ChatGPT plan.
- Licensed under GNU Affero General Public License v3.0
- Native macOS coding agent (macOS 15+)
- Bring your own model: any OpenAI-compatible API, ChatGPT (web), Gemini (web)
- Model provider costs are external (e.g. Experiential Labs priced per token; ChatGPT uses your ChatGPT plan; Gemini web free)
- If you run a modified version for others over a network, you must offer them its source
Capabilities
Key Features
- Works with any OpenAI-compatible API without native tool calling
- Every edit shown as a diff before it is written
- Per-request checkpoints with undo and rewind
- Four permission modes: Ask, Auto-accept edits, Plan only, Bypass
- Test run and diff review before accepting done
- Model family switch after repeated failures
- Parallel sub-sessions in separate git worktrees
- Background task queue
- Built-in terminal with tabs
- Live browser preview the agent can drive
- iOS Simulator build, launch and tap tools
- MCP server support via .mcp.json
- GitHub integration for issues, PRs and CI logs
- LSP type checks after edits
- AGENTS.md / CLAUDE.md project memory
- SKILL.md skills and custom slash commands
- Provider plugins via JSON file or GitHub link
- Headless CLI mode
- Keychain storage for keys and session cookies
