Licensing at Sourcegraph can be confusing: the word “license” (or “licence”) is used in two overlapping contexts within Sourcegraph:
- The software license under which our users obtain and potentially modify our source code, and
- The team or enterprise plan that users are paying for on Sourcegraph Enterprise, which is controlled via a license key. (The Free plan does not have a license key.)
Sourcegraph’s software license has two parts. The core of Sourcegraph is licensed under the Apache License, version 2.0. Some features and all our container images are licensed under our enterprise license.
As described in the open source FAQ, users can use Sourcegraph OSS without agreeing to any enterprise licensing terms by building their own server image. If they do so, no code from our enterprise licensed features will be included in their Sourcegraph deployment.
Sourcegraph OSS only includes universal code search functionality, and does not include any code intelligence platform features (code navigation, Batch Changes, Code Insights, etc.). You must use Sourcegraph Enterprise to access the full code intelligence platform.
In practice, Sourcegraph OSS involves:
- Removing the
enterprisedirectories from the repo
- Building your own docker image (you can’t just use ours)
This means you have the following limitations:
- No path to upgrade to a Business or Enterprise plan down the line (you can’t change your mind without launching a new instance)
- No external dependencies (means no extensions!)
- No enterprise or code intelligence platform features (SSO, repository permissions, Batch Changes, Code Insights, Notebooks, code monitoring, code navigation, admin analytics, etc.)
- No access to browser or IDE extensions
- Built as a single container (limited scalability)
Benefits to the OSS option include:
- No user limit
- Some people prefer OSS ideologically
If someone is talking to Sales or CE and says they’re using the OSS version, they are 99% of the time using the free tier of Sourcegraph Enterprise. If they say they’re hitting a user limit, they’re using the free version of Sourcegraph Enterprise, not Sourcegraph OSS.
Determining which new features are added to Sourcegraph OSS
Sourcegraph OSS only includes core search functionality. We will only add new features to Sourcegraph OSS if both of the following are true:
- They are required for parity with open source code search tools, and
- They don’t significantly reduce the differentiation of Sourcegraph Enterprise or Sourcegraph as a code intelligence platform.
If you believe a feature you are working on should be added to Sourcegraph OSS or you aren’t sure if your feature should be added to Sourcegraph OSS, please send a note to #pricing and the team will either approve the addition or help determine if it should be added.
Example: Search aggregations powered by Code Insights
- No other open source code search tools provide this functionality, and
- This functionality does reduce the differentation between Sourcegraph Enterprise and Sourcegraph OSS.
Recommendation: Search aggregations should not be added to Sourcegraph OSS.
Sourcegraph Enterprise includes all code intelligence platform features and is more than just universal code search.
If someone follows the install instructions for our Docker, Docker Compose, or Kubernetes options (reference), or they are on Sourcegraph Cloud they will be using Sourcegraph Enterprise.
Sourcegraph Enterprise offers three plans: Free, Business, and Enterprise as defined in pricing. The Free plan is the default plan. It does not require a license key to run.
Customers on the Business and Enterprise plan of Sourcegraph Enterprise are provided with a license key, usually by a customer engineer. When a prebuilt image is configured with a license key, the functionality covered under the customer’s plan is enabled.
Talking about license, plans, users
What is a “License”? What is a “Free user”? What is an “Enterprise user”?
The word license is ambiguous: the answer to “what’s the license of this user?” depends on the context.
“Free user” is also ambiguous, as it can refer to a Sourcegraph OSS user, or a Sourcegraph Enterprise user on a Free plan.
“Enterprise user” is ambiguous as well, as it can refer to a Sourcegraph Enterprise user (on any plan), or specifically to a Sourcegraph Enterprise user on an Enterprise plan. “Enterprise customer” is similarly ambiguous.
To prevent confusion, avoid using “License” or “Free user”. Instead, say:
- a Sourcegraph OSS user
- a Sourcegraph Enterprise user on a Free plan
- a Sourcegraph Enterprise user on a Business/Enterprise plan
- a license key for the Business/Enterprise plan of Sourcegraph Enterprise
The only case where “license” alone is appropriate is when someone asks “What’s the license of Sourcegraph?“. The answer to that is Apache 2.0 for Sourcegraph OSS, and the enterprise license for Sourcegraph Enterprise.
You can think of this as a set of three options from the user’s perspective:
- Run a fully open source deployment of Sourcegraph. No enterprise code is included in this deployment, no enterprise features (or even landing pages for those features) are enabled, and no option is provided to do so.
- Run Sourcegraph Core. This corresponds to the Free option on the pricing page. A Sourcegraph Core deployment includes enterprise code, but without a license key, any functionality provided therein is extremely limited. (For example, Batch Changes can only be made with up to ten changesets.)
- Run Sourcegraph with a paid plan. This corresponds to the Business or Enterprise options on the pricing page. These deployments include enterprise code, with paid features available based on the customer’s plan, controlled by their license key.
For more information, you may also want to refer to our explanation of Sourcegraph Enterprise vs Sourcegraph OSS.