Skip to main content

Quickstart

Get OpenGround up and running in 5 minutes. This guide will take you from installation to your first documentation search.

Prerequisites

  • Python 3.10, 3.11, or 3.12
  • pip or uv package manager

Step 1: Install OpenGround

Install OpenGround using your preferred package manager:
The default package includes sentence-transformers with automatic GPU/MPS/CPU support. For a lighter install, see Installation Options.

Step 2: Add Documentation

Let’s add the FastAPI documentation as an example:
This command:
  • Clones the FastAPI repository at version 0.115.5
  • Extracts documentation from the docs/ folder
  • Chunks the text into manageable pieces
  • Generates embeddings using a local model
  • Stores everything in a local LanceDB database
The first time you add documentation, OpenGround will download the embedding model (~200MB for BGE-small-en-v1.5). This only happens once.
Expected output:

Step 3: Search Documentation

Now you can search the documentation:
Example output:
OpenGround uses hybrid search that combines semantic understanding with keyword matching for the best results.

Step 4: List Your Libraries

View all documentation you’ve added:
Output:

Step 5: Connect to Your AI Agent

OpenGround really shines when connected to AI coding assistants. Install the MCP server:
Restart Claude Code and you’re ready! Your AI assistant can now search FastAPI documentation automatically.

What’s Next?

You now have OpenGround installed and working! Here are some next steps:

Add More Sources

Add documentation from git repos, sitemaps, or local files

Configure Settings

Customize chunk size, embedding models, and more

MCP Integration

Deep dive into AI agent integration

Advanced Search

Learn about hybrid search and tuning

Common Use Cases

This extracts all pages containing “reference” in the URL from NumPy’s documentation.
Indexes documentation from your local project. Great for internal or private docs.
Omit the --library flag to search across all installed documentation.
OpenGround intelligently updates only what changed using content hashes.

Example: Complete Workflow

Here’s a complete workflow for a Python developer:
1

Install OpenGround

2

Add Python Framework Documentation

3

Install MCP for Claude Code

4

Use in Your AI Assistant

In Claude Code, ask:
“How do I create a Pydantic model with validation?”
Claude will automatically search your local Pydantic documentation and provide accurate answers with sources.

Troubleshooting

The package isn’t in your PATH.Solution:
  • If using uv: Run uv tool update-shell and restart your terminal
  • If using pip: Ensure pip’s bin directory is in your PATH
  • Try running with full path: python -m openground
First extraction downloads the embedding model and clones repositories.This is normal:
  • Embedding model download: ~200MB, happens once
  • Git clone: depends on repo size
  • Subsequent additions are faster
To speed up:
  • Use --docs-path to extract only specific folders
  • Use faster internet connection for initial setup
  • Consider fastembed backend for faster CPU embeddings
Check that the library was added successfully.Solution:

Next Steps

Now that you have the basics, explore: