Docs cipi.yml Web panel API MCP Ecosystem Guides Compare GitHub Telegram channel
  1. Home
  2. Guides
  3. Open source licences, explained: what they allow, and why Cipi's stack is built on them
Choosing Cipi

Open source licences, explained: what they allow, and why Cipi's stack is built on them

A licence decides what you may do with software today, and what its owner may change tomorrow. On the servers that run your business, both matter.

By Updated 8 min read

Your hosting stack is the last place you want a surprise. A licence is the contract that says what you may do with each piece of it, what you must do in return, and how much its owner can change your situation later. This guide explains the families in plain words, looks at the licence changes that caught teams out, and shows how Cipi's choices are made to keep you out of that story.

This is an engineer's overview, not legal advice. For a specific contract or product, ask a lawyer who knows software licensing.

The licence families, in plain words#

FamilyExamplesYou mayYou mustWatch out for
PermissiveMIT, BSD-2/3-Clause, Apache-2.0, PostgreSQL, PHP LicenseUse, modify, sell, embed in closed productsKeep the copyright and licence notice (Apache-2.0: also state changes, keep NOTICE)Almost nothing. Apache-2.0 adds an explicit patent licence
Weak copyleftLGPL, MPL-2.0Use in closed productsShare changes to those files or that libraryMixing code at file level (MPL) or static linking (LGPL)
Strong copyleftGPL-2.0, GPL-3.0Use, modify, run anywhereIf you distribute the program or a derivative, do it under the GPL with sourceShipping GPL code inside a product you sell as a binary
Network copyleftAGPL-3.0Use, modifyIf you modify it and users reach it over a network, offer them your sourcePatched AGPL servers offered as a service
Source-availableBSL/BUSL, SSPL, Elastic License, RSALRead the code, use it within the licence's limitsRespect the restrictions (often: no competing hosted service)Not open source; terms set by one company and changeable for future versions

Two things are worth knowing about copyleft. It is triggered by distribution (or, for AGPL, network use of a modified version), not by running software: a server running GPL databases doesn't make your Laravel app GPL. And it protects users' freedoms rather than restricting them: it stops anyone from taking the code closed.

What "open source" actually guarantees#

"Open source" has a definition, maintained by the Open Source Initiative. Among its criteria: free redistribution, source code available, derived works allowed, and no discrimination against persons, groups or fields of use. That last one is why source-available licences don't qualify: forbidding "offering the software as a service" discriminates a field of use.

For infrastructure, the definition turns into four practical guarantees:

GuaranteeWhy it matters on a server
You can read itYou (or an auditor) can check what runs as root
You can change itA fix doesn't have to wait for the vendor
You can share itA community can maintain it if the original owner stops
Nobody can forbid your use caseHosting clients, competing with someone, selling services: all allowed

When licences change#

Single-company projects can release future versions under a different licence. It has happened to some of the best-known infrastructure software:

YearProjectChangeWhat the community did
2018MongoDBAGPL-3.0 → SSPLDistributions dropped it from their archives
2021Elasticsearch, KibanaApache-2.0 → SSPL / Elastic LicenseAWS and others forked OpenSearch (Elastic later added the AGPL as an option, in 2024)
2023Terraform, Vault (HashiCorp)MPL-2.0 → BSL 1.1OpenTofu and OpenBao forks, under the Linux Foundation
2024RedisBSD-3-Clause → RSALv2 / SSPLv1Valkey fork, BSD-3-Clause, under the Linux Foundation (Redis later added the AGPL as an option)

The lessons are the same each time. Versions already released keep their licence, so a fork can always start from the last open one. The cost falls on users who must re-evaluate, migrate or freeze versions, usually in a hurry. And the risk is highest where one company owns all the rights and earns from a hosted version of the same software.

Cipi's own licences#

Every part of Cipi is released under the MIT licence, the most permissive common open source licence:

RepositoryWhat it isLicence
cipi-sh/cipiThe server CLI and installerMIT
cipi-sh/agentLaravel package: webhook deploys, health, MCP, anonymized dumpsMIT
cipi-sh/apiREST API and MCP server for the serverMIT
cipi-sh/guiOptional web panelMIT
cipi-sh/clicipi-cli for your laptopMIT
cipi-sh/sdkPHP SDKMIT
cipi-sh/whmcsWHMCS provisioning moduleMIT

What MIT means for you, concretely: no fee, no account, no per-server or per-site limit, commercial use allowed (agencies, hosting companies, SaaS), modifications allowed, private forks allowed. The only obligation is to keep the copyright and licence notice in copies of the code. What it doesn't give you is a warranty: the licence disclaims it, as every open source licence does. Support comes from the docs, GitHub and the community, and the enterprise guide covers what to put around it in a larger organisation.

The stack, component by component#

Cipi installs well-known open source components from their official packages, and chooses them with licences in mind:

ComponentRoleLicenceInstalled
Ubuntu LTSOperating systemMostly GPL and other OSI licencesBase
Nginx (nginx.org packages)Web serverBSD-2-ClauseAlways
PHP (packages.sury.org)RuntimePHP License (BSD-style, permissive)Always
MariaDB ServerDatabase on port 3306GPL-2.0Default
MySQL CommunityAlternative on port 3306GPL-2.0Only with cipi db switch mysql
PostgreSQLDatabase on port 5432PostgreSQL License (permissive)Optional
ValkeyCache, sessions, queuesBSD-3-ClauseAlways
SupervisorQueue workers, Horizon, Reverb, OctaneBSD-styleAlways
DeployerZero-downtime releasesMITAlways
Composer, Node.jsBuildsMITAlways
CertbotLet's Encrypt certificatesApache-2.0Always
UFW, Fail2banFirewall, bansGPL-3.0, GPL-2.0Always
CrowdSecShared threat intelligenceMITOptional
ClamAVMalware scanGPL-2.0Optional
MeilisearchSearch for Laravel ScoutMIT (Community Edition)Optional
FrankenPHPOctane runtimeMITOptional

Three choices worth noting:

ChoiceReason
Valkey instead of RedisSame protocol, same phpredis, same REDIS_* keys, but BSD-licensed and stewarded by the Linux Foundation. Servers moved automatically on cipi self-update (why)
MariaDB by defaultA GPL community server with no enterprise edition gating features and no dual licensing to navigate; MySQL stays available as an explicit choice (guide)
No source-available componentNothing Cipi installs carries a "no competing service" clause, so you can host clients, sell hosting or build a platform on it

None of these components is AGPL. Cipi installs them from their official packages and configures them, it doesn't ship modified copies, so running them creates no licence obligation for you as the operator of the server.

Transparency: you can read what runs as root#

What you can checkWhere
Every command Cipi runsBash and PHP in /opt/cipi/lib on your server, the same code as on GitHub
Every change between versionsThe changelog, written to explain why, with the tests each release adds
What leaves the serverNothing by default: no telemetry, no account, no control plane. Alerts and backups go only where you configure them
What the panel and API may doA sudo allowlist of cipi commands (/etc/sudoers.d/cipi-api), readable on the server
Who deployed whatA hash-chained deploy ledger, copied to syslog
How the server measures upcipi compliance, which says plainly what it can't prove

A closed SaaS panel asks you to trust a dashboard. An open source tool on your own server lets you verify instead.

Security: why openness helps#

Open source doesn't make software secure by itself. It makes security checkable, and it changes who you depend on:

PropertyWhat it gives you
AuditableYou, your security team or an external auditor can review the code that has root on your servers
Patched upstreamComponents come from their official repositories (Ubuntu, nginx.org, packages.sury.org, MariaDB.org), so fixes arrive with the vendor's own release; Cipi applies PHP and stack patches nightly
No vendor in the pathNo external control plane to breach, and no outage at a vendor that takes your deploys down
Responsible disclosurePrivate vulnerability reports on GitHub, with a security.txt on this site
ReproducibleThe same standard packages on every server: what's secure on one is secure on all
No surprise relicensing at the coreMIT for Cipi, permissive or copyleft OSI licences for the stack, no single-vendor source-available component

Continuity: if the project stops tomorrow#

If…Then
cipi.sh went offlineYour servers keep running: nothing on them calls home. Deploys, backups, renewals and alerts work as before
Development stoppedThe last version keeps working; MIT lets anyone fork and maintain it
You want to leave CipiThe server is standard Ubuntu with standard packages, configs in their usual places. Any sysadmin can take it over

That's the practical value of a licence nobody can take away, on software that doesn't depend on a service.

Check your own app#

The same reasoning applies to your Laravel app's dependencies:

bash
composer licenses                        # every PHP package and its licence
composer licenses --format=json > licences.json
composer require --dev cyclonedx/cyclonedx-php-composer
composer CycloneDX:make-sbom             # a software bill of materials
Look forWhy
AGPL packages in a SaaS you modifyThe network clause may apply to your changes
Source-available packagesCheck their restrictions against your business model
"proprietary" or unknown licencesAsk the vendor, or replace them
Abandoned packagesA licence doesn't patch vulnerabilities: combine with security scanning

Questions

Can I use Cipi commercially, for clients or to sell hosting?

Yes. The MIT licence allows any use, including commercial use, modification and resale. Keep the copyright and licence notice in copies of Cipi's code.

Does running GPL software on my server make my app GPL?

No. Running MariaDB, MySQL or Fail2ban doesn't touch your code's licence. GPL obligations start when you distribute the GPL program itself, modified or not.

What about the AGPL?

It adds one obligation: if you modify an AGPL program and let users interact with it over a network, you must offer them your modified source. None of the components Cipi installs is AGPL.

Can Cipi change its licence?

Future versions of any project can be released under another licence by whoever holds the rights. Versions already released under MIT stay MIT: anyone can keep using, forking and maintaining them.

Is "source available" the same as open source?

No. You can read the code, but the licence restricts use (often competing services or hosting). It's not open source under the Open Source Definition.

Does open source mean secure?

Not automatically. It means the code can be checked, by you, your auditor or anyone. Security comes from review, patching and defaults; open source makes all three verifiable.

How do I check my own app's dependencies?

composer licenses lists every PHP package with its licence; for a full inventory, generate an SBOM with CycloneDX. Scanners such as Hackly add vulnerability checks.

Try it on your own server

Free and open source. One command on a fresh Ubuntu 24.04 or 26.04 VPS.

wget -O - https://cipi.sh/setup.sh | bash
Read the quickstart