Nia is a search and index API that continuously provides context from docs, research papers, datasets, codebases, and more—so agents never rely on stale data. Scalable, 5x cheaper, and reliable.Documentation Index
Fetch the complete documentation index at: https://docs.langchain.com/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Integration details
| Class | Package | Serializable | JS support | Version |
|---|---|---|---|---|
NiaToolkit | langchain-nia | ❌ | ❌ |
Tool features
| Returns artifact | Native async | Toolkit | Number of tools | Pricing |
|---|---|---|---|---|
| ❌ | ✅ | ✅ | 20 | Free tier available |
Setup
The integration lives in thelangchain-nia package.
Credentials
Sign up at trynia.ai to get an API key.Instantiation
Using the toolkit
TheNiaToolkit provides all 20 Nia tools with a shared API wrapper. Use include_* flags to control which tool groups are available:
Using individual tools
You can also use tools directly:Invocation
Search across indexed sources
Search the web
Read files from indexed sources
Within an agent
Available tools
Search tools
- NiaSearch - Semantic search across indexed repos, docs, datasets, and more
- NiaWebSearch - Web search with category filtering and date range
- NiaDeepResearch - Multi-step comprehensive research
- NiaUniversalSearch - Search all sources simultaneously
- NiaAdvisor - Analyze code against indexed documentation
Source management tools
- NiaIndex - Index new sources (repos, docs, papers, datasets)
- NiaSourceList - List indexed sources with filtering
- NiaSourceSubscribe - Subscribe to pre-indexed public sources
- NiaSourceSync - Re-sync sources to pull latest changes
- NiaRead - Read files/pages from indexed sources
- NiaGrep - Regex search within indexed sources
- NiaExplore - Browse file tree of indexed sources
GitHub tools
- NiaGitHubSearch - Search code in GitHub repositories
- NiaGitHubRead - Read files from GitHub repos
- NiaGitHubGlob - Find files matching glob patterns
- NiaGitHubTree - Browse repo file tree structure
Context and memory tools
- NiaContextSave - Save context for cross-agent sharing
- NiaContextSearch - Semantic search over saved contexts
Dependency tools
- NiaDependencySubscribe - Auto-subscribe to docs for project dependencies
- NiaDependencyAnalyze - Preview what would be indexed from a manifest
API reference
For detailed documentation of all Nia tools and configurations, see the langchain-nia GitHub repository.Connect these docs to Claude, VSCode, and more via MCP for real-time answers.

