Favicon of Nanocode

Nanocode

Minimal agentic coding tool with file operations, bash execution, and conversation history. Single Python file, zero dependencies, works with Claude or OpenRouter.

A lightweight alternative to Claude Code that brings agentic capabilities to your terminal. Built as a single Python file with zero external dependencies, Nanocode provides a complete coding assistant experience in just ~250 lines of code.

Key capabilities include:

  • Full agentic loop with Claude tool use integration
  • Essential development tools: file reading/writing, editing, glob pattern matching, regex search, and bash command execution
  • Persistent conversation history for context-aware interactions
  • Colored terminal output for better readability

Flexible model support through direct Anthropic API or OpenRouter, allowing you to choose from any available model. The tool was built using Claude Code and then used to build itself, demonstrating its practical effectiveness.

Simple command interface with /c to clear conversations and /q to quit. Perfect for developers who want powerful AI-assisted coding without heavyweight dependencies or complex setup. Just set your API key and start coding with natural language commands.

Features

JSON outputScriptable

Media

Pros

4
  • Minimalist design with zero dependencies
  • Supports multiple LLM providers including OpenRouter
  • Includes file operations and bash execution tools
  • Provides conversation history and colored terminal output

Cons

1
  • Requires API keys for LLM access

Related tools

Share:

Auto-fetched .

Similar to Nanocode

Favicon

 

  
 
Favicon

 

  
 
Favicon