Welcome to OpenGround
OpenGround lets you give controlled access to documentation to AI agents. Everything happens on-device.OpenGround is an on-device RAG system that extracts documentation from git repos and sitemaps, embeds it for semantic search, and exposes it to AI agents via MCP.
What is OpenGround?
OpenGround bridges the gap between your AI coding assistant and official documentation. Instead of relying on potentially outdated training data, your AI agents can search accurate, up-to-date documentation stored locally on your machine.On-Device Processing
All data stays on your machine. No cloud services, no API keys, complete privacy.
Hybrid Search
Combines semantic vector search with BM25 full-text search for accurate results.
MCP Integration
Seamlessly integrates with Claude Code, Cursor, OpenCode, and other MCP-compatible agents.
Multi-Version Support
Store and query multiple versions of the same library simultaneously.
Architecture
- Source - Extract docs from git repos, sitemaps, or local directories
- Process - Chunk text and generate embeddings using local models
- Storage - Store in LanceDB with vector + BM25 indices
- Query - Search via CLI or expose to AI agents through MCP
Key Features
Privacy First
All processing happens on your machine. No data leaves your device. No cloud dependencies.Flexible Sources
Extract documentation from:- Git repositories - Clone specific versions, sparse checkout for docs folders
- Sitemaps - Crawl documentation sites automatically
- Local directories - Index your own documentation or notes
Powerful Search
Hybrid search combines:- Semantic search - Understands meaning and context
- BM25 - Traditional keyword matching for precise queries
AI Agent Integration
Seamless integration with:- Claude Code
- Cursor
- OpenCode
- Any MCP-compatible agent
Version Management
- Store multiple versions of the same library
- Query specific versions
- Incremental updates with content hash detection
Multiple Embedding Backends
- Sentence-Transformers - Full GPU/MPS/CPU support, larger package
- FastEmbed - Lightweight, CPU-optimized
- FastEmbed-GPU - Experimental CUDA support
Use Cases
AI Coding Assistants
AI Coding Assistants
Give your AI assistant access to official documentation without polluting your conversation context. Ask questions like “How do I use React’s useEffect hook?” and get answers directly from the React documentation.
Multi-Project Development
Multi-Project Development
Work with multiple versions of the same framework? Store React 17 and React 18 docs side-by-side, query the version you’re currently using.
Offline Development
Offline Development
Download documentation once, use it forever offline. Perfect for planes, remote locations, or when you want to avoid distractions.
Private Documentation
Private Documentation
Index your company’s internal documentation and make it searchable for AI agents, without sending it to the cloud.
Supported File Formats
When extracting from git repos or local directories, OpenGround supports:- Markdown (
.md,.mdx) - reStructuredText (
.rst) - Plain text (
.txt) - Jupyter Notebooks (
.ipynb) - HTML (
.html,.htm)
How It Works
OpenGround uses a Retrieval-Augmented Generation (RAG) approach:- Extract - Download documentation from various sources
- Chunk - Split documents into manageable pieces (800 chars with 200 char overlap)
- Embed - Generate vector embeddings using BGE-small-en-v1.5 model
- Index - Store in LanceDB with both vector and BM25 full-text indices
- Query - Search using hybrid approach that combines semantic and keyword matching
- Serve - Expose results via CLI or MCP server for AI agents