by docsagent
DocsAgent is a local-first AI documents assistant that lets you securely index and chat with thousands of desktop documents with zero cloud leakage.
# Add to your Claude Code skills
git clone https://github.com/docsagent/docsagentDocsAgent is a local-first documentation engine designed to perform lightning-fast hybrid search (text and semantic search) over your private local files.
DocsAgent is a CLI toolkit, when you install the global docsagent package, You can directly use 'docsagent' command.
npm install -g @docsagent/docsagent
For more information, please see https://github.com/docsagent/docsagent.
Adds directory or file paths (PDF, DOCX, PPTX) to the index. You can pass multiple paths at once.
# Add a single directory
docsagent add ./documents/manuals
# Add multiple files and directories at once
docsagent add ./reports/q1.pdf ./presentation.pptx ./notes/meeting-files
The High-Performance Local Intelligence Layer for AI Agents.
DocsAgent is a professional, local-first documents intelligence engine and MCP (Model Context Protocol) server. It provides a secure, near-instant bridge between your private local files and advanced agentic platforms like OpenClaw, Claude Code, and Cursor.
100% Local. 100% Private. Zero Data Leakage.
Modern AI Agents are incredibly smart, but they are "blind" to your private desktop documents. DocsAgent acts as a High-Performance Intelligence Engine that indexes your local data, allowing agents to search, read, and analyze thousands of files (1,000+) with absolute privacy.
This file provides detailed instructions and guidelines for using the DocsAgent skill, including its purpose, features, and usage examples.
No comments yet. Be the first to share your thoughts!
Performs a hybrid search (text + semantic) across your indexed private documents.
# Search for a specific topic
docsagent search "how to configure local encryption"
# Search for technical concepts
docsagent search "API authentication process"
The tool returns the most relevant snippets with their source paths and scores.
add operation before searching.Lists all files currently being monitored or indexed.
docsagent list
Shows the indexing progress and service health.
docsagent status
Stops the indexing service.
docsagent stop
search first.search with a specific query derived from the user's request.search returns "No results found", inform the user and ask if they want to index a specific directory using add.add, verify the path exists before retrying.npm install -g @docsagent/docsagent
DocsAgent provides a powerful CLI for managing your local knowledge base.
# Add one or more directories or files to the index
docsagent add ~/Documents/Legal_Archive ~/Documents/Research
# Perform a semantic search directly from the terminal
docsagent search "What are the key terms in the Barclays contract?"
DocsAgent is a native Model Context Protocol (MCP) server. This allows AI agents to "see" your local documents.
Start the MCP server:
docsagent server
Connect DocsAgent to your favorite tools using the following configurations:
OpenClaw is the most powerful UI for local-first agents. Add DocsAgent in your config.yaml:
mcpServers:
docsagent:
command: "docsagent"
args: ["server"]
Integrate with Anthropic's CLI tool:
claude code mcp add docsagent -- docsagent server
DocsAgentcommanddocsagent serverOnce integrated, your AI agent gains professional-grade document capabilities through these tools:
search: Perform deep semantic search across your entire local library to find relevant snippets.add_docs: Instantly index new local folders or files during a conversation.list_documents, remove_document, status)DocsAgent provides a powerful CLI with convenient aliases (dag, da):
| Command | Alias Example | Description |
| :--- | :--- | :--- |
| server | da server | Start the MCP server service |
| add | dag add <path> | Add directories or files to the index |
| search | da search "query"| Search for documents directly from CLI |
| status| dag status | Check engine and indexing status |
| stop | da stop | Stop the background engine service |
| Format | Status | Features | | :--- | :--- | :--- | | PDF | ✅ Full | Deep layout analysis & high-speed parsing | | Word (.docx) | ✅ Full | Table extraction & heading hierarchy preserved | | PPTX | ✅ Full | Extracts slides, shapes, and speaker notes |
We are building the open standard for Local RAG. Join us in making AI respect personal data sovereignty!
DocsAgent is open-source under the Apache-2.0 License.
Desktop Sovereignty is here. Empower your Agents with DocsAgent.