← Open Source
sourcebot-dev

sourcebot

Sourcebot is a self-hosted tool that helps humans and agents understand your codebase.

ApplicationsCodingResearch & knowledgePython
Open on GitHub
Momentum
+0stars in 24 hours0.0%
3.99k
Stars
372
Forks
+4
This week
64
Contributors
Created 2024-08-23 · Updated 2026-10-16 · #7729 today
Top developers
README

Code understanding for humans and agents

Website · Docs · Public demo · Changelog

Sourcebot is a self-hosted code context layer for humans and AI agents. Index all your repos in one place so you and your agents can search and navigate them.

Get started

Run the setup wizard:

npx setup-sourcebot

You'll need Node.js (24 LTS recommended), Docker, and Docker Compose.

This wizard walks you through indexing your repos, optionally configuring a language model provider (for Ask Sourcebot), and then creates the config files for you and starts up Sourcebot.

For manual setup, use Docker Compose or the Helm chart. Check out our docs for more info on how to configure Sourcebot.

Code Context for Agents

Your agent can use Sourcebot MCP to search repos you haven't checked out locally. For example, it can find callers of an API in other services or read the implementation for dependencies that you don't have checked out locally.

The MCP server exposes code search, file reading, and symbol definitions and references for the repos you've indexed. Open Settings → MCP in Sourcebot to connect Claude Code, Codex, Cursor, or another MCP client. The MCP docs cover setup and authentication for each client.

Connect repos from GitHub, GitLab, Bitbucket, Azure DevOps, or local Git directories using the connection guides. Permission syncing controls access based on your code host's repository permissions.

Code Search

Code Search lets you search across all your indexed repos and branches in one place. Find uses of a dependency, track down a function, or look for a pattern across services without cloning each repo.

Use regular expressions and boolean queries, then narrow the results by repo, file, language, or symbol definition. Results include syntax-highlighted code, with repo and language filters alongside them.

Try it: example search in the public demo.

Ask Sourcebot

Ask Sourcebot answers questions about your codebase, including repos you haven't checked out locally. Ask how a feature works or what a migration would involve. Connectors let Ask access your apps and services with your permissions, so it can pull in context and take actions like creating a Linear or Jira issue with its findings. It searches your code and follows references using the same tools as the MCP server.

Open cited code alongside the answer, explore generated diagrams, and share the conversation with your team. Ask runs on a language model provider you configure (Bring Your Own Key), so you control where your code is sent.

Try it: explore an example Ask Sourcebot conversation in the public demo.

Try both in the public demo. See pricing for plan details.

Feedback

Report a bug or request a feature.

Nearby in the ranking
Similar items