Sourcebot
Self-hosted code search and "ask your codebase" across all your repos, with an MCP server for coding agents.
Quick answer
Sourcebot is a self-hosted code search and "ask your codebase" across all your repos, with an MCP server for coding agents, listed under Coding assistants. A typical small-business use: one search box across every repo the team owns, without cloning each one. Official hardware: minimum 4 GB RAM (recommended 2 vCPU · 4 GB RAM · 50 GB disk). That fits a Hetzner Cloud CPX22 server at about €16.99/month (server only, excl. VAT). License: MIT (code) + Sourcebot plan activation (Basic free, paid plans), which allows internal business use.
Last updated · facts verified against official docs on · sources
Activity data comes from GitHub and was last refreshed Nov 23, 2026.
What is Sourcebot?
Sourcebot indexes repositories from GitHub, GitLab, Bitbucket, Azure DevOps and local Git directories so people and AI agents can search them in one place. Code Search supports regex and boolean queries with repo, file, language and symbol filters (built on Zoekt). Ask Sourcebot answers questions about the code with citations using a language model provider you configure, and the built-in MCP server lets agents such as Claude Code, Codex or Cursor search repos they have not checked out.
Where it fits in a 10–200 person business
- One search box across every repo the team owns, without cloning each one
- Give coding agents read access to internal code through MCP
- Ask how a feature or integration works across several services, with cited files
These use cases are our editorial suggestions, not claims made by the project.
Can a business use Sourcebot? (license)
| License | MIT (code) + Sourcebot plan activation (Basic free, paid plans) |
|---|---|
| Type | Open core: Core is MIT/Apache; enterprise folders need a paid license. |
| Internal business use | Allowed under the license text |
| What to watch | The repository is MIT. Since v6 every deployment must be activated: the free Basic plan needs an activation code checked against Sourcebot's license server and is limited to five active users; role management, audit logs and permission syncing need a paid plan. |
This is a plain-English summary of the license text, not legal advice. Third-party models you run with it have their own licenses.
Data & compliance: does Sourcebot phone home?
| Telemetry (usage data sent to the vendor) | On by default Every deployment sends a Service Ping to deployments.sourcebot.dev every 24 hours with an install ID, hostname, version, user and repo counts, daily/weekly/monthly active users, deployment type, activation code and CPU/memory/disk facts. The docs say no source code, AI inputs/outputs, credentials or user information is sent. How to turn it off: No opt-out is documented; the ping is used to validate Basic and paid activation codes. Offline license keys are available from sales. |
|---|---|
| Other calls home by default (updates, marketplaces, default cloud services) | Yes, by default Activation codes are validated against the Sourcebot license server over HTTPS. |
| Single sign-on (OIDC / SAML / LDAP) | Not documented SSO through Auth.js providers (GitHub, GitLab, Google, Okta and others) is documented; the docs do not say which plan includes it. |
| Audit log | Paid / enterprise only Audit logs are only available in a paid plan; retention defaults to 180 days. |
| Role-based access control (RBAC) | Paid / enterprise only Owner and Member roles; on the free Basic plan everyone is an Owner and role management needs a paid plan. Source: docs.sourcebot.dev/docs/configuration/auth/roles-and-permissions |
| Data residency / GDPR notes from the project | Documented The deployment docs say Sourcebot runs entirely in your infrastructure and code, AI inputs/outputs and personal data never leave your environment. |
Checked against the project's own docs and repository on . "Not documented" means we could not find the answer in official sources; it does not mean the feature is missing or that no data is sent. Third-party services you connect (model APIs, vector databases, search engines) have their own data policies. Compare all apps.
What hardware does Sourcebot need?
| Minimum | 4 GB RAM |
|---|---|
| Recommended | 2 vCPU · 4 GB RAM · 50 GB disk |
| GPU | Not required. Ask Sourcebot uses a language model provider you configure. |
The Docker Compose guide asks for at least 4 GB of RAM. The sizing guide's Small tier (up to 100 repos) is 2 cores, 4 GB and 50 GB disk; Medium (100 to 500 repos) is 4 cores, 8 GB and 100 GB. The guide says these come from real-world deployments and to plan disk at 2 to 3 times the size of the indexed code.
How much does it cost to host Sourcebot per month?
| Minimum spec | 4 GB RAM → CPX22 (2 vCPU, 4 GB, 80 GB disk) €16.99/mo |
|---|---|
| Recommended spec | 2 vCPU · 4 GB RAM · 50 GB disk → CPX22 (2 vCPU, 4 GB, 80 GB disk) €16.99/mo |
How we got this: we took the cheapest Hetzner Cloud Regular Performance (shared AMD vCPU) plan with at least the RAM and vCPU the project lists, using prices read from www.hetzner.com/cloud/regular-performance on 2026-11-23. "From" monthly price cap shown by Hetzner, excluding VAT. Prices vary by location. Covers the server only; it excludes LLM API usage, backups, extra storage, GPUs and your time. Disk is not matched; add a volume if you need more than the plan includes.
How to deploy Sourcebot
Method: Docker Compose
curl -o docker-compose.yml https://raw.githubusercontent.com/sourcebot-dev/sourcebot/main/docker-compose.yml
# create config.json listing the repos/connections to index (see the guide), update the secrets, then:
docker compose up
# open http://localhost:3000 From the official instructions: docs.sourcebot.dev/docs/deployment/docker-compose. Always check the source for the current version before you run it.
Known gotchas when self-hosting Sourcebot
- From v6 a deployment without a valid license starts in restricted mode (search, Ask, the API and MCP are blocked). The free Basic plan needs an activation code validated at deployments.sourcebot.dev; if the server cannot reach it for 7 days it goes back to restricted mode. Air-gapped installs need an offline license key from sales. source
- The Basic plan allows five active users; with more, the deployment stays restricted. On Basic every signed-in user is an Owner and roles cannot be changed. source
- The official compose file falls back to all-zero AUTH_SECRET and SOURCEBOT_ENCRYPTION_KEY values and postgres/postgres credentials marked CHANGEME. Set real values before first start; the encryption key protects connection secrets and API keys. source
- If you deploy Sourcebot behind a domain you must set the AUTH_URL environment variable. source
Alternatives in Coding assistants
- OpenHands Self-hosted control center for AI coding agents that write code, review PRs and run automations. Compare OpenHands vs Sourcebot
- Tabby Self-hosted AI coding assistant (Copilot alternative) for your team. Compare Sourcebot vs Tabby
- Chat2DB AI-assisted SQL client for 40+ databases, as a desktop app or a single-user Docker web app, with your own model. Compare Chat2DB vs Sourcebot
- Dyad Local desktop AI app builder, like Lovable, v0 or Bolt, using your own model API keys or local models. Compare Dyad vs Sourcebot
- bolt.diy Open-source prompt-to-web-app builder that writes, runs and previews full-stack apps in the browser. Compare bolt.diy vs Sourcebot
- PR-Agent Open-source AI pull-request reviewer that comments and answers questions on PRs. Compare PR-Agent vs Sourcebot
Sourcebot FAQ
How much RAM does Sourcebot need?
The official minimum is 4 GB RAM. The recommended spec is 2 vCPU · 4 GB RAM · 50 GB disk. The Docker Compose guide asks for at least 4 GB of RAM. The sizing guide's Small tier (up to 100 repos) is 2 cores, 4 GB and 50 GB disk; Medium (100 to 500 repos) is 4 cores, 8 GB and 100 GB. The guide says these come from real-world deployments and to plan disk at 2 to 3 times the size of the indexed code.
Does Sourcebot need a GPU?
Not required. Ask Sourcebot uses a language model provider you configure.
How much does it cost to self-host Sourcebot?
The software is free to download. Based on the official minimum 4 GB RAM (recommended 2 vCPU · 4 GB RAM · 50 GB disk): That fits a Hetzner Cloud CPX22 server at about €16.99/month (server only, excl. VAT). That covers the server only, not LLM API usage, backups, extra storage or your time.
Is Sourcebot free for commercial use?
Sourcebot is licensed under MIT (code) + Sourcebot plan activation (Basic free, paid plans) (Open core). Internal business use is allowed under the license text. The repository is MIT. Since v6 every deployment must be activated: the free Basic plan needs an activation code checked against Sourcebot's license server and is limited to five active users; role management, audit logs and permission syncing need a paid plan. This is a summary, not legal advice.
What are common problems when self-hosting Sourcebot?
From v6 a deployment without a valid license starts in restricted mode (search, Ask, the API and MCP are blocked). The free Basic plan needs an activation code validated at deployments.sourcebot.dev; if the server cannot reach it for 7 days it goes back to restricted mode. Air-gapped installs need an offline license key from sales. The Basic plan allows five active users; with more, the deployment stays restricted. On Basic every signed-in user is an Owner and roles cannot be changed. The official compose file falls back to all-zero AUTH_SECRET and SOURCEBOT_ENCRYPTION_KEY values and postgres/postgres credentials marked CHANGEME. Set real values before first start; the encryption key protects connection secrets and API keys. If you deploy Sourcebot behind a domain you must set the AUTH_URL environment variable.
Is Sourcebot still maintained?
Yes, it is actively developed. Last commit: Nov 18, 2026. Latest release: v6.1.1 (Nov 18, 2026). Checked Nov 23, 2026.
How do I install Sourcebot?
The official method is Docker Compose. The exact commands are in the "How to deploy" section above and in the official instructions: https://docs.sourcebot.dev/docs/deployment/docker-compose
What are self-hosted alternatives to Sourcebot?
Other apps in Coding assistants: OpenHands, Tabby, Chat2DB, Dyad, bolt.diy, PR-Agent.
Sources
- GitHub repository: github.com/sourcebot-dev/sourcebot
- Official documentation: docs.sourcebot.dev/
- License text: github.com/sourcebot-dev/sourcebot/blob/main/LICENSE.md
- Hardware requirements: docs.sourcebot.dev/docs/deployment/sizing-guide
- Deploy instructions: docs.sourcebot.dev/docs/deployment/docker-compose
- Gotcha 1: docs.sourcebot.dev/docs/upgrade/v5-to-v6-guide
- Gotcha 2: docs.sourcebot.dev/docs/configuration/auth/roles-and-permissions
- Gotcha 3: github.com/sourcebot-dev/sourcebot/blob/main/docker-compose.yml
- Gotcha 4: docs.sourcebot.dev/docs/configuration/auth/authentication
- Hetzner Cloud pricing (cost estimate): www.hetzner.com/cloud/regular-performance
- GitHub stars, commits and releases: GitHub REST API, fetched
Facts on this page were checked against the project's own repository and docs on 2026-11-11. Spotted something out of date? Tell us.