nanocoder

Open terminal coding agent that runs on the model and provider you pick

Overview

nanocoder is an open coding agent that runs in the terminal, created by the Nano Collective, a community group rather than a company. It performs agent-driven coding against a model the user selects, letting developers use local models through Ollama or connect to any OpenAI-compatible API, including OpenRouter, Requesty, Anthropic, and Google. According to the README, it is privacy-respecting, local-first, and open to all, with no closed-source features or paid tiers holding back useful functionality.

The product is aimed at developers who work from a command line and want control over which provider handles their code and where their data goes. Installation is documented through NPM, Homebrew for macOS and Linux, and Nix Flakes. A quick start installs the package globally and launches the tool in any directory, and command-line flags can select a provider, a model, and a starting development mode.

What distinguishes nanocoder is its governance and stance: it is built by the people who use it, keeps the harness multi-provider on principle, and avoids telemetry that quietly sends prompts elsewhere. The README also describes a review command for checking a branch or pull request and a worktree command that opens a pull request in an isolated directory, with the original working tree left untouched.

Best for

  • Software developers
  • Terminal-focused engineers
  • Open-source contributors
  • Developers using local models
  • Platform or DevOps engineers
  • Software development
  • Open-source software

How to use

  1. Install the package globally with NPM, or use the documented Homebrew or Nix Flakes route.
  2. Run nanocoder in any directory to begin.
  3. Optionally pass provider and model flags for an interactive session.
  4. Use the run command with a task description for a non-interactive job.
  5. Choose a starting development mode such as plan or architect when needed.

What it can do

Choice of model and provider

Users decide which provider runs their code. The tool supports local models through Ollama and any OpenAI-compatible API, with OpenRouter, Requesty, Anthropic, and Google named as examples. Provider and model can be set with command-line flags for either a one-off run or an interactive session, so the same harness can follow the model policy a team already prefers.

Interactive and non-interactive runs

The agent can start an interactive session or execute a one-off task using the run command. Flags may appear before or after run, and a starting mode such as normal, auto-accept, yolo, plan, or architect can be chosen at launch. This lets a user move between hands-on conversation and a single directed job without changing tools.

Two screen rendering modes

Fullscreen is the default, using the alternate screen buffer with fixed height, in-app scrolling through PgUp and PgDn, a scroll indicator, and a snap back to the bottom when new output arrives. Inline mode renders on the main screen so finished messages print into the terminal's own scrollback, keeping the transcript after exit and allowing the terminal's normal scrollbar, mouse wheel, and search to work.

Branch and pull request review

A review command inspects a branch or pull request for bugs, security issues, and style violations. The README notes this is a diff-only first version that needs an interactive terminal, and that it cannot be combined with pipes or redirection, nor can its output presently be saved to a file. Users should plan review sessions around a direct terminal rather than scripted capture.

Session reset and export

In either screen mode, the clear command resets the terminal to a fresh welcome banner, and exiting through Ctrl+C or the exit command removes the input interface cleanly. Inline mode leaves the transcript in the scrollback, while fullscreen mode restores the terminal to its prior state, so the resume or export commands are the documented way to retrieve the transcript afterward.

Installation across common package managers

Documentation covers global installation through NPM, Homebrew tap and install steps for macOS and Linux, and running or installing through Nix Flakes. Homebrew users are told to refresh the tap cache before upgrading so a cached older formula does not mask a newer one. Development setup is also documented with Node.js 22 or later and pnpm managed through Corepack.

How it works

nanocoder runs in the terminal and connects to the model provider the user specifies, whether a local model through Ollama or an OpenAI-compatible API. Provider, model, and starting mode can be supplied at launch, and documentation also covers configuration of AI providers, MCP servers, preferences, logging, and timeouts. Screen rendering can be switched between the default fullscreen layout and an inline mode that keeps output in the terminal's native scrollback.

Workflows that touch repositories stay under user control. Review sessions require an interactive terminal. Worktree sessions require Git, an authenticated gh CLI, and an interactive terminal, and they create a separate directory and branch while leaving the original working tree alone. The user decides which provider handles the code, which development mode to run, and when to remove the worktree and branch afterward.

Supervised

The agent performs coding tasks under user direction, but users choose the provider and model and select approval-oriented modes, and review and worktree operations still depend on the user's terminal session and manual cleanup.

Where it fits

  • Analyze a source file from a one-off command with a chosen provider.
  • Audit an authentication module while starting in plan mode.
  • Refactor a database module through an interactive session.
  • Review a branch or pull request for bugs, security issues, and style problems.

Good fit

  • Developers who want agentic coding in the terminal with a model of their choice, including local models through Ollama
  • Teams and individuals who prefer an OpenAI-compatible API such as OpenRouter, Requesty, Anthropic, or Google for running code work
  • Reviewing a branch or pull request for bugs, security issues, and style violations via the diff-only review command
  • Opening a pull request in an isolated Git worktree for an interactive coding session without touching the original working tree

Not a fit

  • Pipelines or scripts that need to capture the output of the review command, since it requires an interactive terminal and its output cannot currently be saved to a file
  • Workflows that are not Git-based or lack an authenticated gh CLI, because the worktree command depends on both

How to evaluate

  1. Confirm the tool runs on your setup: it installs via npm, Homebrew on macOS/Linux, or Nix Flakes, and development requires Node 22 or newer
  2. Decide whether you will use a local model through Ollama or an OpenAI-compatible API, and verify your chosen provider works with the provider and model flags
  3. Check whether you need inline or fullscreen rendering, since the default fullscreen view does not keep the transcript on screen after exit unless you resume or export it
  4. Test the review command in an interactive terminal and confirm its diff-only scope fits your code review needs
  5. Verify Git and an authenticated gh CLI are available if you plan to use the worktree command for pull request sessions

Alternatives

AgentPricingAutonomyBest for
oh-my-claudecode—SupervisedSoftware developers using Claude Code, Engineering team leads, Code reviewers and security reviewers, UI and UX designers working in code, Data scientists, Technical writers and documentation specialists
happy—SupervisedSoftware developers, Engineering teams, Pair-programming collaborators, Developers who work across desk and mobile
plandex—SupervisedSoftware developers, Engineering teams on large codebases, Developers reviewing AI-generated changes, Teams exploring multiple models, Self-hosting developers
MiMo-Code—SupervisedSoftware developers, Engineers working in terminals, Developers managing Git repositories, Teams using multiple LLM providers
superplane—SupervisedSoftware engineers, Engineering managers, Platform and infrastructure engineers, DevOps and release engineers, Open source maintainers
ralph-claude-code—SupervisedSoftware developers, Engineering teams using Claude Code, Automation and DevOps engineers, Maintainers working from task lists or PRDs

Comments

No comments yet.

Embed a listing badge

Featured on AI Agents Marketplace
<a href="https://aiagentsmarketplace.dev/agents/nanocoder"><img src="https://aiagentsmarketplace.dev/badges/featured.svg" alt="Featured on AI Agents Marketplace" width="262" height="36"></a>
See badge options