Skip to content

Quick Start

Installation

Repobase requires Bun runtime. Install it globally:

Terminal window
# Install with npm
npm install -g repobase
# Or with bun
bun install -g repobase

Quick Start

Using the Terminal UI

Launch the TUI to manage your repositories:

Terminal window
repobase

Use these keyboard shortcuts to navigate:

KeyAction
aAdd a new repository
dDelete selected repository
sSync selected repository
SSync all repositories
/Search across repositories
j/kNavigate up/down
qQuit

Using with AI Tools (MCP)

Add Repobase to your MCP configuration to enable AI tools to search your repositories.

For Cursor, add to ~/.cursor/mcp.json:

{
"mcpServers": {
"repobase": {
"command": "repobase-mcp"
}
}
}

For Claude Desktop, add to your Claude configuration file.

MCP Tools

When connected via MCP, AI tools can use these capabilities:

ToolDescription
list_reposList all indexed repositories
searchSearch across repositories (keyword, semantic, or hybrid)
list_filesList files in a repository
glob_filesFind files matching a glob pattern
read_fileRead file contents
grepSearch file contents with regex

How It Works

  1. Indexing – When you add a repository, Repobase clones it locally and indexes the content using embeddings
  2. Storage – All data is stored locally in ~/.repobase/ using LanceDB
  3. Search – Queries are converted to embeddings and matched against indexed content
  4. Updates – Sync repositories to pull latest changes and update the index

Next Steps

  • Add your first repository using repobase
  • Configure MCP to use Repobase with your AI tools
  • Explore semantic search to find code by meaning