# Harny

> Harny is an open-source agent for coding. Open-source VS Code coding agent that runs on local or cloud LLMs. It is available on VS Code, Self-hosted and API.

- **Kind:** Agent
- **Pricing:** Open source
- **Platforms:** VS Code, Self-hosted, API
- **Website:** https://harny.dev
- **Categories:** [coding](https://ai-powered.com/categories/coding-agents)
- **Listing updated:** 2026-11-27

## About

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.

## Features

- **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

## 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.

## Alternatives

- [openclaude](https://ai-powered.com/agents/openclaude): openclaude is an open-source agent for coding.
- [munder-difflin](https://ai-powered.com/agents/munder-difflin): munder-difflin is an open-source agent for multi-agent frameworks.
- [Agav](https://ai-powered.com/agents/agav): Agav is an open-source agent for coding.
- [devika](https://ai-powered.com/agents/devika): devika is an open-source agent for coding.
- [CoderBaba](https://ai-powered.com/agents/coderbaba): CoderBaba is a free open-source agent for coding.
- [omnigent](https://ai-powered.com/agents/omnigent): omnigent is an open-source agent framework for multi-agent frameworks.
- [command-code](https://ai-powered.com/agents/command-code): command-code is a paid hosted agent for coding.
- [Devon](https://ai-powered.com/agents/devon): Devon is an open-source agent for coding.

---
Source: https://ai-powered.com/agents/harny-2
