Skip to content
AgentOpen-source agent

Harny

Open-source VS Code coding agent that runs on local or cloud LLMs

Harny is an open-source agent for coding. It is available on VS Code, Self-hosted and API.

Pricing
Open source
Platforms
VS Code, Self-hosted, API
Listing updated

Similar agents

About Harny

Harny sits in the Activity Bar of VS Code or VSCodium as a chat panel that reads a project, edits files, runs shell commands, searches the web and keeps one persistent conversation per folder. Tool calls and model output stream into the transcript while the agent works, so each run can be followed step by step.

The model is a configurable provider rather than a bundled subscription. Ollama, LM Studio, llama.cpp and MLX can run fully on the local machine with no key, while OpenAI, Anthropic, OpenRouter and any host speaking the OpenAI chat completions protocol can be added as cloud providers. New sessions start in Analyze mode, where file-modifying tools produce diffs without writing, and a switch to Build applies the changes.

It suits developers who want an agent inside their editor but prefer control over where their code goes and which model handles it. Sessions are stored in a local SQLite database outside the repository, and MCP servers can be enabled per conversation.

What it does

Analyze dry-run mode
File-modifying tools return the exact diff without writing, so changes can be reviewed before Build applies them.
Local or cloud models
Connect to Ollama, LM Studio or llama.cpp on localhost, or to OpenAI, Anthropic and OpenRouter, switching per session.
Parallel sub-agents
An orchestrator splits tasks into sub-agents, serializing writes to overlapping files.
Context compaction
Long sessions are compacted at turn boundaries, keeping recent turns verbatim and carrying a summary forward.
Loop guard
Detects repeated tool calls and repeated reasoning, then injects a correction instead of stopping the run.
Per-session MCP scoping
MCP servers install at machine level but are switched on per conversation, with an allow list for Analyze mode.

Good for

  • Reviewing an AI-proposed refactor as a diff before letting it write to disk
  • Running a coding agent against a local model so no code leaves the laptop
  • Splitting independent test-writing and documentation tasks across parallel sub-agents
  • Keeping a long debugging session going within a fixed context window
  • Reusing project-specific skill instructions via /skill commands

Pricing

Open source

Free and MIT licensed; cloud providers billed by their own API keys

Prices change. Check harny.dev before you buy.

Harny FAQ

Can I use a local LLM as the coding agent?

Yes. Any OpenAI-compatible endpoint works, including models served by Ollama, LM Studio or llama.cpp on your own machine, with no API key required.

Does Harny write to my files without asking?

New sessions start in Analyze, where file-modifying tools run as dry runs and write nothing. Build mode applies changes and is one click away once previews are ready.

Does Harny run in VSCodium and Cursor?

Yes. It is published on Open VSX, which VSCodium, Cursor, Windsurf and Theia use, and VSCodium 1.101+ is supported directly.

Where are chats and API keys stored?

Sessions are stored in a central SQLite database outside the project, and keys are kept in Harny's own data folder rather than the repository.

Is Harny free?

Yes. Harny is open source, so you can use and self-host it for free.

What are the best alternatives to Harny?

The closest alternatives to Harny are openclaude, munder-difflin, Agav, devika and CoderBaba.

Where this comes from

  • Description: written from the project's website.