Built for agents. Every command supports structured JSON output, async execution with status polling, and non-interactive operation. Agents can compose commands into multi-step pipelines without human intervention.
Installation
nia command is available globally.
Alternative installation methods
Alternative installation methods
Authentication
NIA_API_KEY as an environment variable or pass --api-key to any command.
Command Reference
Index
Index repositories, documentation, papers, datasets, and local folders.Search
Unified semantic + BM25 hybrid search across all indexed sources.Read, Grep, Explore
Code-level access to any indexed source.Research
Autonomous AI research with Oracle and Tracer.Context Sharing
Save and retrieve context across agent sessions.scratchpad (temporary), episodic (session), fact (permanent), procedural (workflow).
Packages
Search public package registries without indexing.npm, py_pi, crates_io, golang_proxy, ruby_gems.
GitHub (Live Access)
Read and search any public GitHub repository without indexing.Usage
Global Flags
CLI vs MCP vs Skill
Links
GitHub
View CLI source code
Get API Key
Sign up for Nia API access

