OpenClaw uses skills through ClawHub: the integration is delivered as a skill, but the day-to-day experience is still an agent-native Nia workflow inside OpenClaw.
Install with ClawHub
ClawHub Listing
Open the Nia listing in ClawHub and add it to your OpenClaw workspace.
OpenClaw Skill Docs
Learn how ClawHub installs and syncs skills into your OpenClaw workspace.
Features
Repository Indexing
Index GitHub repositories and search through code with semantic and regex search.
Documentation Search
Index entire documentation sites and search across all pages.
Research Papers
Index arXiv papers by ID, URL, or PDF link for AI-powered research.
HuggingFace Datasets
Index and search HuggingFace datasets by name or URL.
Configure Nia
1. Get Your API Key
Either run the guided wizard:2. Store the Key
3. Requirements
curljq
Most systems have these pre-installed. On macOS, install with
brew install jq if needed.Nia-First Workflow
Before using web fetch or web search, you should:- Check indexed sources first using
repos-list.shorsources-list.sh - If source exists: Use
search-universal.sh,repos-grep.sh,sources-read.shfor targeted queries - If source doesn’t exist but you know the URL: Index it with
repos-index.shorsources-index.sh, then search - Only if source unknown: Use
search-web.shorsearch-deep.shto discover URLs, then index
Why this matters: Indexed sources provide more accurate, complete context than web fetches. Web fetch returns truncated/summarized content while Nia provides full source code and documentation.
Available Scripts
All scripts are in./scripts/. Base URL: https://apigcp.trynia.ai/v2
Repositories
| Script | Description |
|---|---|
repos-list.sh | List indexed repos |
repos-index.sh "owner/repo" [branch] | Index a repo |
repos-status.sh "owner/repo" | Get repo status |
repos-tree.sh "owner/repo" [branch] | Get repo tree |
repos-read.sh "owner/repo" "path/to/file" | Read file |
repos-grep.sh "owner/repo" "pattern" | Grep code |
Data Sources (Docs, Papers, Datasets)
| Script | Description |
|---|---|
sources-list.sh [type] | List sources (documentation, research_paper, huggingface_dataset) |
sources-index.sh "https://docs.example.com" | Index docs |
sources-tree.sh "source_id_or_name" | Get source tree |
sources-read.sh "source_id" "/path" | Read from source |
sources-grep.sh "source_id" "pattern" | Grep content |
Research Papers (arXiv)
| Script | Description |
|---|---|
papers-list.sh | List indexed papers |
papers-index.sh "2312.00752" | Index paper (ID, URL, or PDF URL) |
HuggingFace Datasets
| Script | Description |
|---|---|
datasets-list.sh | List indexed datasets |
datasets-index.sh "squad" | Index dataset (name, owner/dataset, or URL) |
Search
| Script | Description |
|---|---|
search-universal.sh "query" | Search ALL indexed sources |
search-web.sh "query" [num_results] | Web search |
search-deep.sh "query" | Deep research (Pro) |
Package Search
| Script | Description |
|---|---|
package-grep.sh "npm" "react" "pattern" | Grep package (npm, py_pi, crates_io, golang_proxy) |
package-hybrid.sh "npm" "react" "query" | Semantic search in packages |
Oracle Research (Pro)
| Script | Description |
|---|---|
oracle.sh "research query" | Run autonomous research |
oracle-sessions.sh | List research sessions |
API Reference
| Type | Endpoint | Identifier Examples |
|---|---|---|
| Repository | POST /repositories | owner/repo, microsoft/vscode |
| Documentation | POST /data-sources | https://docs.example.com |
| Research Paper | POST /research-papers | 2312.00752, arXiv URL |
| HuggingFace Dataset | POST /huggingface-datasets | squad, owner/dataset |
Links
ClawHub Listing
View the Nia skill on ClawHub
OpenClaw Docs
Learn how OpenClaw loads and syncs skills

