Skip to content

CLI Reference

Usage

bash
nav [options] [prompt]

If no prompt is given, nav starts in interactive mode.

Options

FlagDescription
-m, --model <name>Model name (default: gpt-4.1)
-p, --provider <name>Provider: openai, anthropic, google, ollama, azure
-b, --base-url <url>API base URL
-s, --sandboxEnable macOS Seatbelt sandboxing
-v, --verboseShow diffs, token counts, and timing

Environment variables

VariableDescription
OPENAI_API_KEYOpenAI API key
ANTHROPIC_API_KEYAnthropic API key
GEMINI_API_KEYGoogle Gemini API key
AZURE_OPENAI_API_KEYAzure OpenAI API key
AZURE_OPENAI_API_BASE_URLAzure OpenAI endpoint (include /openai/v1)
AZURE_OPENAI_DEPLOYMENT_NAMEAzure deployment name
NAV_API_KEYUnified API key (any provider)
NAV_MODELDefault model name
NAV_PROVIDERDefault provider
NAV_BASE_URLDefault API base URL
NAV_SANDBOXEnable sandbox (1 to enable)
NAV_CONTEXT_WINDOWContext window size in tokens
NAV_OLLAMA_BATCH_SIZEOllama num_batch option (default: 1024)
NAV_HANDOVER_THRESHOLDAuto-handover threshold, 0--1 (default: 0.8)
NAV_THEMEColor theme: nordic or classic

Interactive commands

CommandDescription
/clearClear conversation history
/model [name]Show or switch model
/handover [prompt]Manual handover with optional prompt
/initGenerate AGENTS.md
/planEnter plan mode
/plansList plans
/plans split <id>Split plan into tasks
/plans microsplit <id>Split plan into micro-tasks
/plans run <id>Run all tasks in a plan
/tasksList tasks
/tasks add <desc>Add a task
/tasks run [id]Run a task (or next available)
/tasks rm <id>Remove a task
/skillsList skills
/create-skillCreate a skill interactively
/helpShow help

Config files

LocationScope
.nav/nav.config.jsonProject-level
~/.config/nav/nav.config.jsonUser-level

See Configuration for details (including optional editMode: hashline vs searchReplace).

Keyboard shortcuts

KeyAction
ESCStop agent execution
Ctrl-DExit nav
TabAutocomplete slash commands
Type during executionQueue follow-up message

Logs

Session logs are written to .nav/logs/ as JSONL files. Each line captures a message, tool call, or result with timestamps.

Released under the MIT License.