Official LangChain partner integration built with
langchain-core and the standard BaseTool / BaseToolkit interfaces. Passes all LangChain standard tests.Features
Semantic Search
Search across indexed repos, docs, datasets, Slack, and more with natural language queries.
Source Management
Index, list, sync, read, grep, and explore any indexed source directly from your agent.
GitHub Tools
Search code, read files, glob for patterns, and browse file trees in any GitHub repository.
Context Sharing
Save and search conversation context across agents for persistent knowledge sharing.
Installation
Setup
1. Get Your API Key
Sign up at trynia.ai to get your API key, or run the wizard:2. Set the Environment Variable
Quick Start
Using the Toolkit
TheNiaToolkit provides all 20 tools with a shared API client. Toggle tool groups with boolean flags:
Using Individual Tools
With a LangChain Agent
Available Tools
Search (5 tools)
| Tool | Description |
|---|---|
NiaSearch | Semantic search across all indexed repos, docs, and data sources |
NiaWebSearch | Web search with category filtering (github, news, research, etc.) and date range |
NiaDeepResearch | Multi-step comprehensive research with output formatting |
NiaUniversalSearch | Search all sources simultaneously with compression options |
NiaAdvisor | Analyze code against indexed documentation for recommendations |
Source Management (7 tools)
| Tool | Description |
|---|---|
NiaIndex | Index new sources — repos, docs, papers, datasets, local folders |
NiaSourceList | List indexed sources with type, status, and query filtering |
NiaSourceSubscribe | Subscribe to pre-indexed public sources |
NiaSourceSync | Re-sync an indexed source to pull latest changes |
NiaRead | Read files or pages from indexed sources (supports line ranges) |
NiaGrep | Regex pattern search within indexed sources with context lines |
NiaExplore | Browse the file tree structure of any indexed source |
GitHub (4 tools)
| Tool | Description |
|---|---|
NiaGitHubSearch | Search code in GitHub repositories via GitHub Code Search |
NiaGitHubRead | Read files from GitHub repos with optional line ranges |
NiaGitHubGlob | Find files matching glob patterns (e.g. **/*.py) |
NiaGitHubTree | Browse the file tree of any GitHub repository |
Context & Memory (2 tools)
| Tool | Description |
|---|---|
NiaContextSave | Save findings, resources, or context with tags for cross-agent sharing |
NiaContextSearch | Semantic search over previously saved contexts |
Dependencies (2 tools)
| Tool | Description |
|---|---|
NiaDependencySubscribe | Auto-subscribe to docs for all dependencies in a manifest file |
NiaDependencyAnalyze | Preview what would be indexed from a package manifest |
Async Support
All 20 tools support both synchronous and asynchronous execution:Links
GitHub
View source code and contribute
PyPI
Install from PyPI
LangChain Docs
LangChain tool integrations
Get API Key
Sign up for Nia API access

