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.1
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.1.tar.gz | 96.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| nanopycodeagent-0.5.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 108.9 kB
Release files / nanopycodeagent-0.5.1.tar.gz
| Download URL | nanopycodeagent-0.5.1.tar.gz |
|---|---|
| Size | 96.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bd024bbe22ba50f606277946acd49a028725397c6c42aa2f3b141eb95e8f0049
|
|
BLAKE2b-256 checksum How to use checksums |
69ef4487e7b6976216bc6617957caafe02f7be8c4ab8feb62bee50352878ef94
|
| 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.1-py3-none-any.whl
| Download URL | nanopycodeagent-0.5.1-py3-none-any.whl |
|---|---|
| Size | 12.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d50a098ca013e0c1204c70c6624a5ec90ad13728621db360f0883ec3652f7b6c
|
|
BLAKE2b-256 checksum How to use checksums |
f0489a5cbd8a864550a7f8f92b5a6d11737f196c0ca9b7588925179032e9c7df
|
| 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}
|