Sourcebot

Self-hosted code search and "ask your codebase" across all your repos, with an MCP server for coding agents.

Active Coding assistants MIT (code) + Sourcebot plan activation (Basic free, paid plans)

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

GitHub stars4.0k
Forks386
Latest releasev6.1.1Nov 18, 2026
Last commitNov 18, 2026
Est. server costfrom €16.99/mo

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)

LicenseMIT (code) + Sourcebot plan activation (Basic free, paid plans)
TypeOpen core: Core is MIT/Apache; enterprise folders need a paid license.
Internal business useAllowed under the license text
What to watchThe 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.

Source: docs.sourcebot.dev/docs/misc/service-ping

Other calls home by default (updates, marketplaces, default cloud services) Yes, by default

Activation codes are validated against the Sourcebot license server over HTTPS.

Source: docs.sourcebot.dev/docs/upgrade/v5-to-v6-guide

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.

Source: docs.sourcebot.dev/docs/configuration/auth/sso

Audit log Paid / enterprise only

Audit logs are only available in a paid plan; retention defaults to 180 days.

Source: docs.sourcebot.dev/docs/configuration/audit-logs

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.

Source: docs.sourcebot.dev/docs/deployment/deploy-sourcebot

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?

Minimum4 GB RAM
Recommended2 vCPU · 4 GB RAM · 50 GB disk
GPUNot 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.

Source: docs.sourcebot.dev/docs/deployment/sizing-guide

How much does it cost to host Sourcebot per month?

Minimum spec4 GB RAM → CPX22 (2 vCPU, 4 GB, 80 GB disk) €16.99/mo
Recommended spec2 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

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

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.