百科.dev
全部条目AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
N

nanocode

> 编程语言
开源

最小的 Claude 代码替代方案。单个 Python 文件,无依赖项,约 250 行。

2.5K stars0 点赞0 次浏览
访问官网GitHub

工具介绍

最小的 Claude 代码替代方案。单个 Python 文件,无依赖项,约 250 行。

nanocode

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
  • /q or exit - 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

GitHub Issues· 0 开放

在 GitHub 查看全部

暂无开放 Issues,或尚未同步最近议题。

核心特点

  • •Full agentic loop with tool use
  • •Tools: read, write, edit, glob, grep, bash
  • •Conversation history
  • •Colored terminal output
  • •/c - Clear conversation
  • •/q or exit - Quit

> 标签

Python

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言