tldr: 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. It uses a local embedding model, and local lancedb for storing embeddings and for hybrid vector similarity and BM25 full-text search.
┌─────────────────────────────────────────────────────────────────────┐ │ OPENGROUND │ ├─────────────────────────────────────────────────────────────────────┤ │ │ │ SOURCE PROCESS STORAGE/CLIENT │ │ │ │ ┌──────────┐ ┌───────────┐ ┌──────────┐ ┌──────────┐ │ │ │ git repo ├─────>│ Extract ├──>│ Chunk ├──>│ LanceDB │ │ │ | -or- | │ (raw_data)│ │ Text │ │ (vector │ │ │ │ sitemap │ └───────────┘ └──────────┘ │ +BM25) │ │ │ │ -or- │ │ └────┬─────┘ │ │ │ local dir│ │ │ │ │ └──────────┘ │ │ │ │ ▼ │ │ │ ┌───────────┐ │ │ │ │ Local |<────────┘ │ │ │ Embedding │ │ │ │ │ Model │ ▼ │ │ └───────────┘ ┌─────────────┐ │ │ │ CLI / MCP │ │ │ │ (hybrid │ │ | | search) | | │ └─────────────┘ │ │ │ └─────────────────────────────────────────────────────────────────────┘ Quick Start Install uv tool install openground # sentence-transformers (GPU/MPS/CPU) uv tool install 'openground[fastembed-cpu]' # also installs fastembed (or fastembed-gpu) fastembed is optional; select it with "embedding_backend": "fastembed" in the config file below.
openground add NAME SOURCE figures out the source type from SOURCE:
# git repo (optionally a docs folder and a tag/branch) openground add fastembed https://github.com/qdrant/fastembed.git -d docs -v v0.7.4 # sitemap (optionally only URLs containing a keyword) openground add claude-code https://code.claude.com/docs/sitemap.xml -f /en/ # local directory openground add my-docs ./docs Git and local sources index .md, .rst, .txt, .mdx, .ipynb, .html and .htm files. GitHub/GitLab web URLs like https://github.com/o/r/tree/v1.0/docs also work; the tag and folder are picked up from the URL.
add adds; update refreshes. Each library has one source, remembered in sources.json next to the config file, and openground update re-extracts every stored version of every library from it (update NAME for one), re-embedding only pages that changed. Use add NAME -v VERSION to add another version from the same source. add NAME SOURCE with a different source than the one a stored library uses is an error: rm the library or pick another name. Adding a name and version that is already stored updates it in place.
openground install-mcp claude-code # or cursor, opencode openground install-mcp # print JSON for any other client Then ask your agent something like "What models are available in fastembed?" and it will search your local docs.
Run one server for all local agent sessions. The server loads the embedding model on the first semantic search. Both openground-mcp and openground serve default to stdio.
openground-mcp --transport http The endpoint is http://127.0.0.1:8765/mcp. Use --host and --port to override the bind address and port. The endpoint is unauthenticated, so keep it on loopback for local use.
For a persistent server on Linux, save this as ~/.config/systemd/user/openground-mcp.service. Set ExecStart to the absolute path reported by command -v openground-mcp if it differs from the example.
[Unit] Description=OpenGround MCP server [Service] ExecStart=%h/.local/bin/openground-mcp --transport http Restart=on-failure RestartSec=5 [Install] WantedBy=default.target systemctl --user daemon-reload systemctl --user enable --now openground-mcp.service Run loginctl enable-linger "$USER" to keep the user service running after logout.
For Claude Code, replace the existing user-scoped stdio entry if you used openground install-mcp claude-code. If you registered it at another scope, use that scope for both commands.
claude mcp remove openground --scope user claude mcp add --transport http --scope user openground http://127.0.0.1:8765/mcp For OpenCode v2, replace the openground entry under mcp.servers in ~/.config/opencode/opencode.json (or your project config).
{ "mcp": { "servers": { "openground": { "type": "remote", "url": "http://127.0.0.1:8765/mcp", "oauth": false } } } } For OpenCode v1, put the entry directly under mcp and allow extra time for the first search to load or download the model.
{ "mcp": { "openground": { "type": "remote", "url": "http://127.0.0.1:8765/mcp", "enabled": true, "timeout": 120000 } } } Both transports default to one math thread per library and disable tokenizer parallelism. Set OPENGROUND_MATH_THREADS=2 in the server environment to raise the default, including FastEmbed's ONNX Runtime thread count. Existing OMP_NUM_THREADS, MKL_NUM_THREADS, OPENBLAS_NUM_THREADS, and TOKENIZERS_PARALLELISM settings take precedence for their respective libraries. For a systemd service, add Environment=OPENGROUND_MATH_THREADS=2 under [Service].
Defaults work out of the box. To change them, create config.json in the config directory: $XDG_CONFIG_HOME/openground if set, otherwise ~/.config/openground (Linux/macOS) or %USERPROFILE%\AppData\Roaming\openground (Windows). Every key is optional:
{ "embedding_backend": "sentence-transformers", "embedding_model": "BAAI/bge-small-en-v1.5", "embedding_dimensions": 384, "batch_size": 32, "chunk_size": 800, "chunk_overlap": 200, "top_k": 5 } embedding_backend is sentence-transformers or fastembed. embedding_dimensions can be omitted (or 0) for the common bge and MiniLM models, where it is filled in automatically and a different value is rejected; set it yourself for any other model. Unknown keys are rejected, chunk_size, batch_size and top_k must be positive, and chunk_overlap (may be 0) must be smaller than chunk_size. Delete the file to reset.
The database remembers the backend and model its embeddings were made with, and openground uses them automatically unless config.json sets embedding_backend or embedding_model. If those explicitly disagree with the stored ones, add and search refuse to run until you remove them or run openground reset and re-add your libraries. Data lives in $XDG_DATA_HOME/openground or ~/.local/share/openground (%USERPROFILE%\AppData\Local\openground on Windows); run openground config to see all paths.
Your existing setup is migrated automatically, with a notice, the first time openground needs it:
Openground includes a custom Claude Code agent that searches official documentation without polluting your main conversation context. See docs/claude-code-agent.md for installation and usage instructions.
To contribute or work on openground locally:
git clone https://github.com/poweroutlet2/openground.git cd openground uv sync . License MIT
ai coding-assistant documentation embeddings mcp vector-database
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
None of the files in this release were uploaded with provenance metadata.
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.
Nov 23, 2026 2 release files No provenance
Mar 27, 2026 2 release files No provenance
Feb 6, 2026 2 release files No provenance
Feb 3, 2026 2 release files No provenance
Jan 30, 2026 2 release files No provenance
Jan 29, 2026 2 release files No provenance
Jan 27, 2026 2 release files No provenance
Jan 26, 2026 2 release files No provenance
Jan 18, 2026 2 release files No provenance
Jan 17, 2026 2 release files No provenance
Jan 12, 2026 2 release files No provenance
Jan 11, 2026 2 release files No provenance
Jan 10, 2026 2 release files No provenance
Jan 9, 2026 2 release files No provenance
Jan 3, 2026 2 release files No provenance
Dec 31, 2025 2 release files No provenance
Dec 30, 2025 2 release files No provenance
Dec 29, 2025 2 release files No provenance
Dec 28, 2025 2 release files No provenance
Dec 27, 2025 2 release files No provenance
Dec 14, 2025 2 release files No provenance




