Skip to main content

A lightweight terminal-based AI coding assistant

Project description

nanocode

A lightweight terminal-based AI coding assistant.

nanocode is used to help building itself, including features such as @file path completion.

Screenshots

Screenshot 1 Screenshot 2

Install

uv tool install nanocode-cli

Upgrade an existing install:

uv tool upgrade nanocode-cli

For local development:

uv sync --extra dev
uv run nanocode

Environment Variables

Required:

export NANOCODE_API_URL="https://api.example.com/v1"
export NANOCODE_API_KEY="your-api-key"
export NANOCODE_MODEL="your-model"

Optional:

export NANOCODE_DIR=".nanocode"
export NANOCODE_TEMPERATURE="0.7"
export NANOCODE_REASONING="on"
export NANOCODE_REASONING_EFFORT="medium"
export NANOCODE_STREAM="on"
export NANOCODE_MODEL_TIMEOUT="60"
export NANOCODE_SHELL_TIMEOUT="60"
export NANOCODE_COMPACT_AT="100"

Usage

Start nanocode:

nanocode

Show available commands:

/help

Ask a source-aware question about nanocode itself:

/help how does compact work?

Safety

nanocode does not provide sandbox protection. It can run shell commands and edit files in the environment where you start it.

If you do not fully trust the model, tools, prompts, or workspace, run nanocode inside your own sandbox, container, VM, or other isolated environment.

Use at your own risk.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nanocode_cli-0.2.8.tar.gz (38.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nanocode_cli-0.2.8-py3-none-any.whl (37.4 kB view details)

Uploaded Python 3

File details

Details for the file nanocode_cli-0.2.8.tar.gz.

File metadata

  • Download URL: nanocode_cli-0.2.8.tar.gz
  • Upload date:
  • Size: 38.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","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":null}

File hashes

Hashes for nanocode_cli-0.2.8.tar.gz
Algorithm Hash digest
SHA256 e8469b933d5875087d34fcc4b6e8d93403fdb8ebfeb0a1651a5371af21ad62fa
MD5 7603f0cf1f8dda40b573b61a5eeb2cfb
BLAKE2b-256 2c51bc3570a423f912ad6e6b5b00d5e1a4d6f21f801e849df6183085d5ff183e

See more details on using hashes here.

File details

Details for the file nanocode_cli-0.2.8-py3-none-any.whl.

File metadata

  • Download URL: nanocode_cli-0.2.8-py3-none-any.whl
  • Upload date:
  • Size: 37.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","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":null}

File hashes

Hashes for nanocode_cli-0.2.8-py3-none-any.whl
Algorithm Hash digest
SHA256 61c2e656c5322d117d42e8b6787431290afd24b84f486b8eaacda6706e7b53fd
MD5 bf7508c481433f15eb8ec4a9c10172a7
BLAKE2b-256 6d312210f518a7214044f41fe801ea7d44157d2290fcd9717c9e303c70c8b997

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page