Skip to main content

nanoPyCodeAgent

English | 简体中文

A nano code agent built in pure Python.

"What I cannot create, I do not understand." — Richard Feynman, 1988

Usage

nanoPyCodeAgent requires Python 3.13 or newer.

How to Run

There are a few ways to run it — pick whichever fits your workflow.

Run without installing

Use uvx to run the latest release without installing anything:

uvx nanoPyCodeAgent

Run after installing

Install it as a persistent command-line tool, then run it from anywhere:

uv tool install nanoPyCodeAgent   # or: pipx install nanoPyCodeAgent
nanoPyCodeAgent

Run a branch or tagged version

Run an unreleased branch or a specific release tag straight from GitHub:

# latest commit on a branch
uvx --from "git+https://github.com/minixalpha/nanoPyCodeAgent@main" nanoPyCodeAgent

# a specific tag
uvx --from "git+https://github.com/minixalpha/nanoPyCodeAgent@v0.1.0" nanoPyCodeAgent

Configuration

Credentials and the model come from two sources: environment variables and an optional user-level config file at ~/.nanoPyCodeAgent/settings.json. Environment variables take precedence — the config file only fills in keys you have not set in the environment.

The config file mirrors Claude Code's settings: put the values under an env object. Empty or whitespace-only values are ignored.

{
  "env": {
    "ANTHROPIC_API_KEY": "",
    "ANTHROPIC_BASE_URL": "",
    "ANTHROPIC_MODEL": ""
  }
}
Variable Required Default Description
ANTHROPIC_API_KEY Yes — Your Anthropic API key, or the key for a third-party / proxy service.
ANTHROPIC_BASE_URL No https://api.anthropic.com Point the SDK at a non-official / proxy endpoint. Leave it unset to use the official API — an empty value breaks requests.
ANTHROPIC_MODEL No claude-sonnet-4-6 Override the model. An empty or whitespace-only value falls back to the default.

How to Update

Upgrade an installed tool to the latest release:

uv tool upgrade nanoPyCodeAgent   # or: pipx upgrade nanoPyCodeAgent

Releasing

For maintainers: see docs/RELEASING.md for the release process and prerequisites.

Metadata

Release files for nanoPyCodeAgent 0.7.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for nanoPyCodeAgent 0.7.0
File Size Uploaded
nanopycodeagent-0.7.0.tar.gz 221.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for nanoPyCodeAgent 0.7.0
File Interpreter ABI Platform
nanopycodeagent-0.7.0-py3-none-any.whl Python 3 none any Details

Total release size: 242.9 kB

Release files / nanopycodeagent-0.7.0.tar.gz

Download URL nanopycodeagent-0.7.0.tar.gz
Size 221.9 kB
Tags Source
SHA-256 checksum
How to use checksums
2857586b680eb71d54150d97ae42e3d0325f6672f076f2fea87ee526f56b5cdf
BLAKE2b-256 checksum
How to use checksums
5af72a3d868f2aa854adeb27a39bf8629c6fcbb0964e5b7c64f2c9934c0e9b6a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.5 {"installer":{"name":"uv","version":"0.12.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / nanopycodeagent-0.7.0-py3-none-any.whl

Download URL nanopycodeagent-0.7.0-py3-none-any.whl
Size 21.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e39d6e2a40749faadb0a336ef91d5445909615c29870ac2adfcee29046bd8acf
BLAKE2b-256 checksum
How to use checksums
33ebdd64170ce12b844b7f6390bf87374defea2947162a92ca3702c052ea93b2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.5 {"installer":{"name":"uv","version":"0.12.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release history Release notifications | RSS feed

0.9.0

2 release files

0.8.0

2 release files

This release

0.7.0 This release

2 release files

0.6.0

2 release files

0.5.1

2 release files

0.5.0

2 release files

0.4.0

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page