# Is RudderStack open source?


> RudderStack's SDKs are MIT licensed, and rudder-server and rudder-transformer are source available under the Elastic License 2.0. See what you can self-host.



RudderStack's SDKs are MIT licensed. rudder-server (the data plane) and rudder-transformer are source available under the Elastic License 2.0.

You can read the code and run the data plane in your own infrastructure. Self-hosting uses the RudderStack-managed control plane: sign up for a free RudderStack Open Source account and [generate a workspace token](https://www.rudderstack.com/docs/get-started/rudderstack-open-source/control-plane-setup/index.md). "RudderStack Open Source" is a plan name, not the server's license. See the [self-hosted overview](https://www.rudderstack.com/docs/get-started/rudderstack-open-source/index.md).

## Which license covers each part?

Check each component's license file; SDKs and services do not share a single license.

| Component | License | License file |
| :--- | :--- | :--- |
| JavaScript SDK | MIT | [LICENSE.md](https://github.com/rudderlabs/rudder-sdk-js/blob/develop/LICENSE.md) |
| iOS (Swift) SDK | MIT | [LICENSE](https://github.com/rudderlabs/rudder-sdk-swift/blob/main/LICENSE) |
| Android (Kotlin) SDK | MIT | [LICENSE.md](https://github.com/rudderlabs/rudder-sdk-kotlin/blob/develop/LICENSE.md) |
| Node.js SDK | MIT | [LICENSE.md](https://github.com/rudderlabs/rudder-sdk-node/blob/master/LICENSE.md) |
| Python SDK | MIT | [LICENSE.md](https://github.com/rudderlabs/rudder-sdk-python/blob/master/LICENSE.md) |
| Go SDK | MIT | [License.md](https://github.com/rudderlabs/analytics-go/blob/master/License.md) |
| rudder-server (data plane) | Elastic License 2.0 (ELv2) | [LICENSE](https://github.com/rudderlabs/rudder-server/blob/master/LICENSE) |
| rudder-transformer | Elastic License 2.0 (ELv2) | [LICENSE](https://github.com/rudderlabs/rudder-transformer/blob/develop/LICENSE) |

Code for cloud destinations lives in `rudder-transformer`; `rudder-server` routes events to them.

## What does the Elastic License 2.0 allow?

The [Elastic License 2.0](https://www.elastic.co/licensing/elastic-license) permits you to use, copy, distribute, make available, and prepare derivative works of the software, subject to its terms. You can run the data plane in your own cloud. The license states these three limitations:

> You may not provide the software to third parties as a hosted or managed service, where the service provides users with access to any substantial set of the features or functionality of the software.
>
> You may not move, change, disable, or circumvent the license key functionality in the software, and you may not remove or obscure any functionality in the software that is protected by the license key.
>
> You may not alter, remove, or obscure any licensing, copyright, or other notices of the licensor in the software. Any use of the licensor’s trademarks is subject to applicable law.

See the linked license files for the complete terms.

## How has the license changed?

rudder-server moved from AGPL-3.0 to the Elastic License 2.0 in September 2023. AGPL-3.0 applied from March 2020; before that, the repository used SSPL from 2019. See the [rudder-server LICENSE commit history](https://github.com/rudderlabs/rudder-server/commits/master/LICENSE). If you deploy an older version, check its license file.

## What does a self-hosted data plane include?

The self-hosted data plane supports event tracking, collection, and routing, Live Events for cloud-mode destinations only, and up to 5 transformations. The hosted control plane supplies connection configuration through its workspace token; event processing runs in your infrastructure.

Tracking plans, Reverse ETL, event replay, single sign-on (SSO), audit logs, and VPC deployment are available through RudderStack-managed plans, not the self-hosted Open Source plan. They vary by managed tier: the managed **Free** plan already includes **1 tracking plan** and **10 Reverse ETL connections**, while event replay starts in Growth and SSO, audit logs, and VPC deployment are Enterprise features. Compare the [self-hosted and managed setups](https://www.rudderstack.com/docs/get-started/rudderstack-open-source/hosted-vs-open-source/index.md) and the [managed plan limits](https://www.rudderstack.com/docs/dashboard-guides/billings-plans/plan-comparison/index.md) before selecting an account.

**Warning:** [Control Plane Lite](https://www.rudderstack.com/docs/get-started/rudderstack-open-source/control-plane-lite/index.md) is deprecated and does not work with `rudder-server` versions after v1.2. For current self-hosted data planes, use the RudderStack-hosted control plane.

## How do I run it?

You can run the data plane using [Docker](https://www.rudderstack.com/docs/get-started/rudderstack-open-source/data-plane-setup/docker/index.md), [Kubernetes](https://www.rudderstack.com/docs/get-started/rudderstack-open-source/data-plane-setup/kubernetes/index.md), or a [developer machine](https://www.rudderstack.com/docs/get-started/rudderstack-open-source/data-plane-setup/developer-machine-setup/index.md). Generate your workspace token before starting; the Docker compose file needs that token. For Docker, download the file, replace the placeholder in it, and then start the services:

```bash
# Download the compose file, then replace <your_workspace_token> in it
curl -O https://raw.githubusercontent.com/rudderlabs/rudder-server/master/rudder-docker.yml
docker compose -f rudder-docker.yml up -d

# Update the transformer later
docker pull rudderstack/rudder-transformer:<version>
```

Follow the linked guides for prerequisites and compatible server and transformer versions.

## Questions

#### Is RudderStack open source?

RudderStack's SDKs are MIT licensed. rudder-server (the data plane) and rudder-transformer are source available under the Elastic License 2.0.

#### What license is rudder-server under?

The Elastic License 2.0 (ELv2), since September 2023. Older references to AGPL-3.0 refer to the license before that change.

#### Can I self-host RudderStack for free?

Yes. The license lets you run the data plane in your own infrastructure, and the RudderStack Open Source account for its hosted control plane is free. You are responsible for your own infrastructure.

#### Do I need a RudderStack account to self-host?

Yes, for the hosted control plane. It issues the workspace token that your data plane reads to get its source and destination configuration.

#### Can I change the code?

Yes. The Elastic License 2.0 permits derivative works. You must keep the licensor's licensing, copyright, and other notices, give anyone you share the software with a copy of the license terms, and add prominent notices to modified copies stating that you changed the software. Read the complete license terms before modifying or distributing the software.

RudderStack's SDKs are MIT licensed. rudder-server (the data plane) and rudder-transformer are source available under the Elastic License 2.0. If you'd rather not run the data plane yourself, the [Free plan](https://www.rudderstack.com/pricing/) is the fastest way to start.

