1rgs/nanocode
1rgs/nanocode has 2,794 GitHub stars and 279 forks. GitHot measured 0 stars in 24 hours. Last checked 2026-11-08 18:53 UTC. Last push 2026-01-14.
Minimal Claude Code alternative. Single Python file, zero dependencies, ~250 lines.
What you can do
- Full agentic loop with tool use
- Tools: read, write, edit, glob, grep, bash
- Conversation history
- Colored terminal output
Measured star growth
- in 24h
- 0
- in 7 days
- Collecting history
- in 15 days
- Collecting history
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
Originalnanocode
Minimal Claude Code alternative. Single Python file, zero dependencies, ~250 lines.
Built using Claude Code, then used to build itself.

Features
- Full agentic loop with tool use
- Tools:
read,write,edit,glob,grep,bash - Conversation history
- Colored terminal output
Usage
export ANTHROPIC_API_KEY="your-key"
python nanocode.py
OpenRouter
Use OpenRouter to access any model:
export OPENROUTER_API_KEY="your-key"
python nanocode.py
To use a different model:
export OPENROUTER_API_KEY="your-key"
export MODEL="openai/gpt-5.2"
python nanocode.py
Commands
/c- Clear conversation/qorexit- Quit
Tools
| Tool | Description |
|---|---|
read |
Read file with line numbers, offset/limit |
write |
Write content to file |
edit |
Replace string in file (must be unique) |
glob |
Find files by pattern, sorted by mtime |
grep |
Search files for regex |
bash |
Run shell command |
Example
────────────────────────────────────────
❯ what files are here?
────────────────────────────────────────
⏺ Glob(**/*.py)
⎿ nanocode.py
⏺ There's one Python file: nanocode.py
License
MIT
Explore related projects
codecrafters-io/build-your-own-x
Master programming by recreating your favorite technologies from scratch.
561,067 starspublic-apis/public-apis
A collective list of free APIs
497,309 starsmorluto/rea
Reverse engineer anything with agents, from app behavior down to native binaries.
443,567 starsopenclaw/openclaw
The AI that really does things. Any OS. Any Platform. The lobster way. 🦞
394,215 stars