nanoPyCodeAgent
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.5.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| nanopycodeagent-0.5.0.tar.gz | 92.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| nanopycodeagent-0.5.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 104.9 kB
Release files / nanopycodeagent-0.5.0.tar.gz
| Download URL | nanopycodeagent-0.5.0.tar.gz |
|---|---|
| Size | 92.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d35f193f7de818cb9aab90b8467d7943f20952b433971018be3b9f4cbbae1649
|
|
BLAKE2b-256 checksum How to use checksums |
872c855895a4dac7f8a23a8cc004514998927903d519d4cd5477c36cdf6fea48
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.0 {"installer":{"name":"uv","version":"0.12.0","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.5.0-py3-none-any.whl
| Download URL | nanopycodeagent-0.5.0-py3-none-any.whl |
|---|---|
| Size | 12.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
807d041bc18c428f6575f5e5b22f40516a0f33e3e298e6705c021a0610ded5b0
|
|
BLAKE2b-256 checksum How to use checksums |
e60dea7be6341ada63a89350ee6895dcd52170dd356f1d06e8657b5ce6df6ca4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.0 {"installer":{"name":"uv","version":"0.12.0","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}
|