Skip to content
sourcebot-devPublic

About

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

Topics

Resources

Contributing

Stars

4.0k stars

Watchers

12 watching

Forks

Latest commit

 

History

1,498 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sourcebot

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.

Repositories on GitHub, GitLab, Bitbucket, and Azure DevOps connected through Sourcebot to agents via API/MCP and humans via the web app

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.

Code Search demo: a regex query streams matching code from repositories across multiple code hosts

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.

Ask Sourcebot demo: tool calls, a streaming answer, and cited source files shown side by side

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

Feedback

Report a bug or request a feature.

About

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

Topics

Resources

Contributing

Stars

4.0k stars

Watchers

12 watching

Forks

Releases

Packages

Used by

Contributors

Languages