Skip to main content
The Nia CLI is a standalone command-line tool that gives terminal-based agents and developers direct access to the full Nia platform — indexing, search, research, and context sharing — without an MCP server or SDK.
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

The wizard handles authentication, configuration, and CLI setup. Once complete, the nia command is available globally.

Authentication

You can also set 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.
Check indexing status:
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.
Memory types: scratchpad (temporary), episodic (session), fact (permanent), procedural (workflow).

Packages

Search public package registries without indexing.
Supported registries: npm, py_pi, crates_io, golang_proxy, ruby_gems.

GitHub (Live Access)

Read and search any public GitHub repository without indexing.

Usage

View API usage summary, plan info, and operation breakdowns.

Global Flags


CLI vs MCP vs Skill


GitHub

View CLI source code

Get API Key

Sign up for Nia API access

Need Help? Join our Discord community for support.