Install
Desktop app
Download the latest release for your platform:
Release downloads are published at:
https://github.com/getnanoai/NanoAgent/releases/latestCLI
Curl
curl -fsSL https://raw.githubusercontent.com/getnanoai/NanoAgent/master/scripts/install.sh | bashWindows PowerShell
irm https://raw.githubusercontent.com/getnanoai/NanoAgent/master/scripts/install.ps1 | iexNPM
npm install -g nanoai-clipnpm
pnpm add -g nanoai-clibun
bun add -g nanoai-cliFirst run & provider setup
Start NanoAgent:
nanoaiNanoAgent will guide you through provider setup:
- Choose a setup type: subscription account, API key provider, OpenAI-compatible provider, or local provider.
- Choose a provider from the matching submenu when needed.
- Enter an API key, sign in with ChatGPT Plus/Pro, Claude Pro/Max, or GitHub Copilot, enter a custom compatible base URL, or use a local provider default.
- Let NanoAgent discover available models.
- Open a desktop workspace or use the current terminal directory.
- Start a new section or resume an existing one.
Desktop workflow
The desktop app is built around workspaces, sections, chat, and controls.
Workspaces
Open a local folder to make it the active workspace. NanoAgent remembers recent workspaces so you can return later.
Sections
A section is a saved local conversation thread tied to a workspace.
Conversation
Type a prompt and let NanoAgent inspect, plan, edit, run commands, or ask for approval depending on the active profile and permissions.
Budget controls
Budget controls are disabled by default. They become active only after you enable them with /budget local or /budget cloud.
Terminal workflow
Interactive mode
nanoaiOne-shot prompt
nanoai "Find risky changes in this branch"Prompt from standard input
git diff --stat | nanoai --stdin --profile reviewTerminal input & keys
The interactive terminal UI adds keyboard controls for editing, navigating history, queueing work, and interrupting a running turn.
Queue prompts and commands
You can queue prompts while NanoAgent is busy. Queued items run automatically, in order, as soon as the active turn completes.
Interrupt a running or stuck turn
Press Esc once to request a graceful interrupt. Press Esc again to abandon it locally.
Tab-complete file and directory paths
After a ! or !! shell command and a space, Tab completes file and directory paths.
Terminal commands
| Command | Description |
|---|---|
/help | List commands and usage. |
/budget [status|local|cloud] | Show or configure budget controls. |
/config | Show provider, model, profile, thinking mode, reasoning effort. |
/models | Choose the active model with the arrow-key picker. |
/use <model> | Switch directly to a model id. |
/onboard | Re-run provider onboarding. |
/profile <name> | Switch the active profile. |
/thinking [on|off] | Show or set simple thinking mode. |
/reasoning [show|<level>] | Show or set provider reasoning effort. |
/permissions | Show permission summary. |
/allow <tool> [pattern] | Add a session allow override. |
/deny <tool> [pattern] | Add a session deny override. |
/mcp | Show MCP servers, custom tools, and dynamic tools. |
/terminals | List or stop background terminals. |
/init [recommended|minimal|custom] | Initialize workspace-local NanoAgent files. |
/update [now] | Check for updates. |
/undo | Roll back the most recent tracked edit. |
/redo | Re-apply the most recently undone edit. |
/exit | Exit the interactive shell. |
VS Code extension
NanoAgent includes a VS Code extension. Install from the Visual Studio Marketplace:
ext install rizwan3d.nanoagent| Setting | Default | Purpose |
|---|---|---|
nanoagent.command | nanoai | Command used to start NanoAgent. |
nanoagent.args | ["--acp"] | Arguments passed to the NanoAgent CLI. |
nanoagent.autoStart | false | Start NanoAgent automatically when VS Code starts. |
Visual Studio extension
NanoAgent includes a Visual Studio extension. It opens a tool window inside Visual Studio and starts the local NanoAgent CLI over ACP.
ACP editor integration
NanoAgent can run as an Agent Client Protocol server:
nanoai --acpACP mode speaks line-delimited JSON-RPC on stdin/stdout.
Review automation (CI)
NanoAgent includes copy-paste CI examples for GitHub, GitLab, and Bitbucket. Each example installs NanoAI, computes the diff, runs the workspace pr-reviewer profile in read-only mode, and posts a review comment.
Codebase indexing
NanoAgent includes a local codebase index for repository-wide discovery. The codebase_index tool can search, build, list, and show status.
Providers & models
NanoAgent stores a provider profile locally and discovers models from that provider. Use F2 or /models to switch.
Thinking mode
/thinking on\n/thinking offProfiles & subagents
| Profile | Mode | Edit behavior | Best for |
|---|---|---|---|
build | Primary | Allows edits under permissions | Implementation, fixes, tests, build loops. |
plan | Primary | Read-only | Investigation and implementation plans. |
review | Primary | Read-only | Findings-first code review. |
general | Subagent | Allows edits under permissions | Bounded delegated implementation work. |
explore | Subagent | Read-only | Fast codebase discovery. |
Code intelligence (LSP)
code_intelligence discovers language servers from built-in definitions, the current workspace, and optional profile overrides.
Permissions & sandboxing
NanoAgent evaluates every sensitive action through permission policy.
| Mode | Meaning |
|---|---|
| Allow | The action can proceed. |
| Ask | NanoAgent prompts for approval. |
| Deny | The action is blocked. |
Sandbox modes
| Mode | Meaning |
|---|---|
| ReadOnly | No file writes or unsafe shell mutation. |
| WorkspaceWrite | Workspace-scoped writes are allowed under policy. |
| DangerFullAccess | Unrestricted execution when explicitly configured or approved. |
Workspace files
Run /init. NanoAgent asks which starter files to add.
Place AGENTS.md in the workspace for persistent project instructions.
Team memory
NanoAgent stores structured team memory as ordinary markdown files in .nanoagent/memory/.
Skills & custom agents
Skills are task-specific playbooks loaded only when relevant.
MCP servers
NanoAgent can load MCP servers from user-level and workspace-level agent-profile.json files.
Custom tools
NanoAgent can expose user-defined process tools from agent-profile.json.
Memory, audit & hooks
Configure memory, audit, and lifecycle hook behavior in workspace profile.
Privacy & local data
Workspace files, configuration, sections, codebase index cache, team memory, and audit logs stay on your machine.
Troubleshooting
nanoai is not found
Restart the terminal after installation.
Provider setup is incomplete
Run nanoai and choose to reconfigure.
A command is denied
Run /permissions and /rules to see active policy.
NuGet SDK (.NET)
The NanoAgent package on NuGet.org provides the core libraries. Add it to your project:
dotnet add package NanoAgentBuild from source
Requirements
- .NET SDK compatible with
net10.0. - Node.js 20 or newer for the VS Code extension.
dotnet restore NanoAgent.CrossPlatform.slnx
dotnet build NanoAgent.CrossPlatform.slnx
dotnet test NanoAgent.Tests/NanoAgent.Tests.csproj
dotnet pack NanoAgent/NanoAgent.csproj -c ReleaseLicense
NanoAgent is licensed under the Apache License 2.0.
Gateway Setup & Connection
NanoAgent Gateway is the central control plane for engineering teams. It provides a single endpoint (https://app.getnanoai.com/v1) to track model spend, set team budgets, and audit AI usage.
How to connect NanoAgent (Zero Code)
You don't need to write any code to use the Gateway with NanoAgent. Simply configure it in your terminal or IDE:
Method 1: Interactive Setup
nanoai setupSelect Gateway from the provider list and paste your Gateway API key.
Method 2: Environment Variable
export NANOAGENT_API_KEY="your_gateway_key_here"Connecting Custom Apps & Scripts (Optional)
If your team has existing Python or Node.js scripts using OpenAI, you can point them to the Gateway by setting the standard OPENAI_BASE_URL:
export OPENAI_BASE_URL="https://app.getnanoai.com/v1"
export OPENAI_API_KEY="your_gateway_key_here"Any library (OpenAI SDK, LangChain, Vercel AI SDK, LlamaIndex) will now route through the Gateway without changing code.
Gateway Dashboard & Spend Controls
Team leads and administrators manage the Gateway via the web dashboard at app.getnanoai.com:
- Spend Attribution: See exactly how much each team member or project spends on AI models in real time.
- Monthly Budget Caps: Set dollar limits per developer to prevent accidental overuse.
- Model Access Rules: Choose which models (Claude 3.7, GPT-4o, DeepSeek, Local Ollama) developers can use.
- Security Audit Logs: Review timestamped logs of all API activity for compliance.
NanoForge App Builder
NanoForge turns natural language prompts into full-stack web applications (React frontend + Express API + PostgreSQL database).
How to build an app
- Go to NanoForge and type what you want to build (e.g. "Project dashboard with tasks, auth, and dark mode").
- Click Build. NanoForge generates the code, sets up the database schema, and spins up a live container.
- Interact with your live running app in the preview browser tab.
Extending NanoForge Apps Locally
Every NanoForge app is backed by a standard Git repository:
- Inspect Git Diffs: Review every commit generated by your prompts on GitHub before merging.
- Open in NanoAgent: Clone the repository to your machine and run
nanoaito continue coding, testing, and adding features locally.