Quickstart cipi.yml Web panel API MCP Ecosystem Guides Docs GitHub Telegram channel
  1. Home
  2. Guides
  3. White-label Laravel hosting with the Cipi API, SDK and WHMCS
Choosing Cipi

White-label Laravel hosting with the Cipi API, SDK and WHMCS

With the Cipi API and its WHMCS module, a hosting company can sell modern Laravel and PHP hosting under its own brand, automated end to end, without paying a panel vendor.

By Updated 8 min read

Ask a Laravel developer where they host, and the answer is rarely "my hosting provider". It's a VPS plus Forge or Ploi, or a managed platform, because standard hosting plans don't run what a Laravel app needs. Cipi gives a hosting company that stack on its own servers, and an API to sell it under its own brand: WHMCS runs billing and the lifecycle, and a customer panel of your own does the rest. This guide shows how the pieces fit and what to build.

The opportunity#

A Laravel app needsTypical shared or cPanel hostingOn a Cipi server
Queue workers, HorizonOften not allowed, or killedSupervisor programs per app, restarted on deploy
The scheduler every minuteCron with limits on frequencyOne cron per app, on by default
Git deploys without downtimeFTP uploads, or git pull in placeAtomic releases with rollback (Laravel), webhooks from Git forges
A PHP version per appOne or a few versionsPHP 8.3 to 8.6 side by side
Cache and queuesRare on shared plansA Valkey per app
WebSockets, OctaneNot availableReverb, and Octane on FrankenPHP
IsolationShared users or uneven containersA Linux user, PHP-FPM pool, database and Valkey per app

Your competitive advantage with Cipi

  • Laravel-native, not Laravel-tolerant. The workflow developers know from Forge and Laravel Cloud, on your infrastructure.
  • Not only Laravel. WordPress, WooCommerce, Symfony and plain PHP sites run on the same servers with the same isolation, so one product line covers agencies with mixed portfolios.
  • Secure by default. Key-only SSH, firewall, Fail2ban, optional CrowdSec and Zero Trust, encrypted backups, a tamper-evident deploy log and compliance evidence mapped to ISO 27001 and SOC 2.
  • Fully automatable. Every action is a REST call, a PHP SDK method or an MCP tool, so billing, your panel and AI assistants drive the same engine.
  • Your brand. Cipi is MIT licensed, with no account and no telemetry. The customer sees your panel; Cipi works underneath.
  • No licence per server or per account. The panel costs €0, so the margin stays with you as you grow.

Architecture#

Every Cipi server runs its own API on its own hostname. WHMCS, your customer panel, your staff and AI assistants all drive that same API, each with a token limited to what it needs.

Step 1 of 5Your customers

They sign in to your panel and pay through WHMCS. They never see a token or a server address.

Your staff can see the whole fleet in the optional web GUI, with one login for every node. Long operations (create, deploy, SSL, backups) return a job you poll until it ends.

PieceRoleWhere it runs
CipiServer engine: stack, isolation, deploys, SSL, backupsEach hosting node
Cipi APIREST, jobs, Swagger docs at /docs, MCP at /mcpEach node, own hostname, HTTPS
WHMCS moduleProduct lifecycle from billingYour WHMCS
PHP SDK (cipi/sdk)Typed client for your panel and automationsYour panel
Cipi GUIOptional panel: one login for many servers, roles and per-app grantsYour management host

WHMCS: billing drives the servers#

The Cipi server module for WHMCS turns orders, unpaid invoices and cancellations into apps that are created, suspended and removed on your Cipi servers, with no staff action. The full setup (tokens, server groups, products, a plan-limits hook) is in Cipi and WHMCS for hosting providers.

WHMCS actionOn the server
Create AccountApp created (user from the WHMCS username, domain from the order), job awaited, optional Let's Encrypt certificate
Suspend / UnsuspendA 503 maintenance page replaces the site / the normal vhost comes back; nothing is deleted
Change PackageNew PHP version, repository or branch
TerminateApp removed
Admin buttonsInstall SSL, Deploy, Rollback, Unlock deploy, list / add / remove alias, App info

What the module leaves to you. It adds no client area tab, and it doesn't copy the one-time secrets Cipi creates (SSH password, database password, deploy key, webhook URL) into WHMCS. That is exactly the space for your own panel: read the credentials from the create job, store them, and show them to the customer under your brand.

Your own panel on the API and SDK#

Your customer panel is a Laravel app of yours that keeps the customer relationship and calls the API of each node with cipi/sdk.

  • One API per node, on its own hostname with HTTPS, with an interactive reference at /docs.
  • Tokens with abilities. Each caller gets its own token with only the abilities it needs (apps-view, deploy-manage, ssl-manage, …). A missing ability answers 403.
  • Async jobs. Creates, deploys, certificates and backups return a job_id; GET /api/jobs/{id} reports progress, the live output of the command and the result.
  • IP whitelist. Only your panel and WHMCS reach /api/* and /mcp: sudo cipi api ip-whitelist add <ip>.
php
use Cipi\Sdk\Cipi;

$cipi = Cipi::connect(baseUrl: $node->api_url, token: decrypt($node->api_token));

$job = $cipi->wait($cipi->apps()->create([
    'user'       => $service->app_name,          // e.g. acme42
    'domain'     => $service->domain,
    'repository' => $service->repository,        // Laravel apps
    'branch'     => 'main',
    'php'        => '8.4',
]));

// One-time secrets: SSH and DB passwords, deploy key, webhook URL
$service->storeEncrypted($job['data']['result']);

$cipi->limits()->update($service->app_name, $service->plan->limits());
$cipi->wait($cipi->ssl()->install($service->app_name));
Customer featureSDK
Deploy now, deploy status and historydeploys()->start(), status(), history()
Logs: Nginx, PHP-FPM, Laravellogs()->get()
Environment (.env) editorenv()->update()
Domains, redirects, HTTPSapps()->update(), redirects()->add(), ssl()->install()
Databases, imports of large dumpsdatabases()->create(), upload()
Backups and restoresbackups()->run(), runs(), verify()
Page cache and WordPress object cachecache()->enable(), purge(), objectCache()->enable()
Plan limits and disk usagelimits()->update(), disk()->usage()
cipi.yml from the repositoryyml()->status(), apply()
Anything not wrapped yetrequest() on any /api path

Rules for a multi-tenant panel

  • Keep a table that maps each customer service to its node and app name, and authorise every request against it before calling the API: the API trusts your token, not your customer.
  • Tokens live on your server, encrypted; never send one to the browser.
  • Give the panel's token only app-level abilities. Server-wide abilities (firewall, packages, SSH keys, Zero Trust, updates) stay with your staff.
  • MCP is for your staff, or for customers with a dedicated server: an mcp-access token reaches every tool on its node.

A faster start. The Cipi GUI already has roles and per-app grants (View, Deploy, Edit, Environment, Logs, Commands, Delete), invite links, 2FA and single sign-on. It is MIT licensed like the rest of Cipi: use it for your staff on day one, and study it, or fork it, as the base of your customer panel.

Designing the product line#

Build a ladder from a single managed app to a dedicated server, all on the same engine, so customers move up without moving away.

ProductCustomer getsYou runAutomation
Managed Laravel appOne isolated app: SSH/SFTP as its own user, Git deploys, database, HTTPS, backupsShared Cipi nodesWHMCS module + your panel
WordPress & PHP siteA custom app with the PHP version and document root it needs, page and object cacheShared Cipi nodesWHMCS module (custom)
Laravel app instanceA ready instance of a SaaS or template on its own domainShared nodes, the product's repositoryWHMCS module with the repository in the product
Laravel & PHP VPSA whole VPS with Cipi and rootThe VM onlyYour VPS module + Cipi at first boot
Managed dedicated serverA server of their own, run by your teamThe server, updates, monitoringYour staff in the Cipi GUI, optional MCP for AI ops

Plans as limits, not as features. Every plan gets the full stack; what changes is the resources, applied with PUT /api/apps/{name}/limits:

Plan (example)PHP-FPM childrenmemory_limitQueue workersSoft disk limit
Starter5256M15 GB
Pro10512M220 GB
Business201G450 GB

Add-ons that cost you little and sell well

  • Staging and preview environments: the same app with an env label such as staging, and its own cipi-staging.yml.
  • Octane on FrankenPHP, Reverb WebSockets, Horizon, Meilisearch for Laravel Scout.
  • Off-site backups to your object storage or an SFTP box, with verified restores.
  • In-memory page cache for busy WordPress and WooCommerce shops.
  • Zero Trust access (Cloudflare Tunnel, Tailscale, NetBird) and CrowdSec for security-minded customers.
  • A compliance pack: sudo cipi compliance report collects evidence mapped to ISO 27001 and SOC 2, with a tamper-evident deploy log and anonymised database dumps.
  • Migrations from Forge, Ploi, cPanel or another host, and moves between your own nodes with sudo cipi sync.

Positioning: Laravel & PHP? Consider it deployed. Laravel gets the full treatment, and WordPress, Symfony and any PHP app run beside it with the same isolation: one offer for agencies and product teams.

Security and operations at scale#

On a shared node, Cipi's per-app isolation is what makes many customers on one server safe; your job is to keep the API private and the fleet watched.

ConcernWhat Cipi doesWhat you set up
Customer isolationA Linux user, PHP-FPM pool, database user and Valkey per appA Valkey per app on shared nodes: sudo cipi valkey isolate --all
API accessHTTPS, scoped tokens, IP whitelistOne token per caller with an expiry date; a whitelist with only WHMCS and your panel
Server hardeningKey-only SSH, UFW, Fail2ban, overnight PHP security patchesCrowdSec on shared nodes, Zero Trust for staff access
Noisy neighboursPHP-FPM, memory, worker and Octane limits per app; soft disk limit with alertsLimits per plan from WHMCS; disk alerts routed to your team
UpdatesCipi updates itselfAn update delay on production nodes, so a new release lands on a canary node first
BackupsEncrypted backups to S3 or SFTP, retention, verificationOff-site buckets in another region, restore tests
MonitoringPer-app CPU, memory, requests, 5xx and uptime, a heartbeat, OpenMetricsScraping into your Prometheus; alerts to your on-call channel
AuditsTamper-evident deploy log, compliance reportReports kept for customers who ask
  • Capacity: WHMCS server groups fill the least full node; set Maximum No. of Accounts from your plan limits and the node size.
  • Rebalancing and maintenance: move one app or a whole node to another Cipi server with sudo cipi sync, encrypted in transit.
  • One view: your staff see every node in the Cipi GUI, with per-server and per-app grants for each team member.
  • Suspensions: a suspended app serves a 503 page and keeps its data and certificates, so a paid invoice brings it back exactly as it was.

Rollout plan#

Step 1 of 6Pilot node

Install Cipi on one node, enable the API on its own hostname, create the WHMCS token, whitelist WHMCS, set up off-site backups and alerts.

Before going live

  1. Every node: API on HTTPS, IP whitelist, one token per caller with only its abilities.
  2. A Valkey per app on shared nodes, CrowdSec on, an update delay set.
  3. Off-site backups verified with a real restore.
  4. Alerts and metrics reaching your on-call channel.
  5. WHMCS: server groups, the plan-limits hook, automatic suspension and termination.
  6. Your panel: credentials encrypted at rest, every call authorised against the service map.
  7. A support runbook: who supports what, how to roll back a deploy, how to move an app between nodes.

Questions

Can we rebrand Cipi?

Yes. Cipi, its API, SDK, GUI and WHMCS module are MIT licensed: you can build on them, fork them and sell services under your own brand. Keep the copyright notice in copies of the code.

Do customers see Cipi?

Not in your own panel: they see your brand, and your panel talks to the Cipi API on the server side. Cipi's name stays in places like the server's MOTD.

Can customers use the Cipi web GUI instead of a panel of ours?

Yes, with roles and per-app grants they see only their own apps. It carries Cipi's look; for your own brand, build a panel on the SDK or fork the GUI.

Is one API shared by all servers?

No. Each Cipi server runs its own API on its own hostname. Your panel keeps a list of nodes and a token for each.

How do customers get their credentials?

The create job returns the one-time secrets (SSH and database passwords, deploy key, webhook URL). Your panel stores them encrypted and shows them to the customer.

Can we give customers MCP access for AI assistants?

Only on a dedicated server. An mcp-access token reaches every tool on its node, so on shared nodes keep MCP for your staff.

Are plan limits enforced?

PHP-FPM children, memory_limit, queue workers and Octane workers are enforced. The disk limit is soft: it alerts at 90% and over the limit, and the site keeps working.

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