Skip to content

zhsh9/nano-code

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NanoCode logo

The lightweight AI coding agent.

Python GitHub Last Commit pypi

EdgeRazor Demo

Installation

pip install pynanocode

Usage

export ANTHROPIC_API_KEY="YOUR_KEY"
export ANTHROPIC_BASE_URL="https://api.deepseek.com/anthropic"
nanocode

Agents

NanoCode includes two built-in agents you can switch between with the /switch edit and /switch plan commands.

  • edit: Default, full-access agent for development work.
  • plan: Read-only agent for exploration and analysis.
    • Deny editing files by default.
    • Ask permission before running bash commands.

Built-in Tools

  • bash: Run shell commands in your terminal.
  • read: Read any file with line numbers.
  • write: Create or overwrite a file.
  • edit: Search-and-replace inside a file.
  • grep: Search code by regex pattern.
  • glob: Find files by name pattern.

LLM Provider

  • DeepSeek
  • Anthropic
  • OpenAI

About

NanoCode: Lightweight AI coding agent. Claude Code alternative.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages