
nanocoder
Open-source coding agent for the terminal that works with local or hosted models
nanocoder is an open-source agent for ai models and llm tooling. It is available on CLI, macOS, Linux and Self-hosted.
- Pricing
- Open source
- Platforms
- CLI, macOS, Linux
- GitHub stars
- 2.6K
- Last commit
- Language
- TypeScript
- Listing updated
Similar agents
About nanocoder
Nanocoder is a terminal-based coding assistant that runs agentic coding sessions against whichever model you choose. You can point it at local models served through Ollama or at any OpenAI-compatible endpoint, including OpenRouter, Requesty, Anthropic and Google, so the choice of provider and the route your code takes stay in your hands.
Beyond interactive sessions, it offers a non-interactive run mode for single prompts, a review command that checks a branch or pull request for bugs, security issues and style problems, and a worktree command that opens a PR in an isolated git worktree for a focused coding session. It has fullscreen and inline rendering modes, and several development modes ranging from normal prompting to auto-accept and plan-first workflows.
The project is aimed at developers who want a coding agent without a subscription or vendor lock-in, and who prefer tooling they can read, modify and run on their own machine.
What it does
- Multi-provider model support
- Connects to local Ollama models or any OpenAI-compatible API, letting you switch providers from the command line.
- Non-interactive run mode
- Runs a single task from the shell with a chosen provider and model, useful for scripted analysis or refactors.
- Branch and PR review
- Reviews a git branch or pull request for bugs, security issues and style violations from the terminal.
- Isolated worktree sessions
- Checks out a pull request into a separate worktree so the original working tree is left untouched.
- Development modes
- Offers normal, auto-accept, yolo, plan and architect modes to control how much the agent does without asking.
- Flexible screen rendering
- Switches between a fullscreen layout with in-app scrolling and an inline mode that uses the native terminal scrollback.
Good for
- Refactoring a module in a local repository using a model running on your own machine
- Reviewing a teammate's branch or pull request for bugs before merging
- Planning an audit of an authentication module before making changes
- Opening an open pull request in a separate worktree to test it interactively
- Running one-off code analysis from scripts with a chosen provider
Pricing
Open source
Free and open source; no paid tiers.
Prices change. Check docs.nanocollective.org before you buy.
nanocoder FAQ
Does Nanocoder require a paid plan?
No. The project states it has no paid tiers gating its features and no closed-source components.
Which model providers can nanocoder use?
Local models through Ollama and any OpenAI-compatible API, with OpenRouter, Requesty, Anthropic and Google named as examples.
How is nanocoder installed?
It installs globally with npm as @nanocollective/nanocoder, and is also available through Homebrew and Nix Flakes.
What does the worktree command need?
It requires Git, an authenticated gh CLI and an interactive terminal.
What are the best alternatives to nanocoder?
The closest alternatives to nanocoder are opencode, Harny, agenc-core, openclaude and omk.
Where this comes from
- Description: written from the project's README and the project's website.



