Quickstart cipi.yml Web panel API MCP Ecosystem Guides Docs GitHub Telegram channel
  1. Home
  2. Quickstart
Quickstart · 15 guided paths

Pick a path.
Follow the steps.

Pick what you want to do, follow the steps. Every path uses the real commands, says where to type them, and links to the docs and guides when you want more.

What do you want to do?

Five minutes, no jargon

Cipi for dummies

Never run a server? Five ideas and you're in.

  1. 1A VPS is a computer you rent

    A server in a data center, always on, with its own address on the internet. A few euros a month at Hetzner, DigitalOcean, AWS or any provider.

  2. 2Cipi turns it into a host

    One command installs everything a website needs (web server, PHP, database, cache, firewall) and keeps it patched every night.

  3. 3Each app lives in its own box

    A Laravel app, a WordPress blog, a Symfony API: each gets its own user, database and HTTPS certificate. One can't touch the other.

  4. 4Deploy means: publish your code

    Push to Git and Cipi builds the new version next to the live one, then switches in one step. Something wrong? Roll back.

  5. 5You're in charge

    Type sudo cipi … over SSH, or add the optional web panel. It's free, open source, and nothing leaves your server.

Start here

Set up a VPS from zero

From a provider account to a hardened server you can log in to, in about twenty minutes.

20 minBeginner0 of 5 done
  1. Create your SSH key

    On your laptop

    Your key is how you'll log in: no passwords. Press Enter for the default file and choose a passphrase. Then print the public half: that's the one you give the server.

    terminal
    $ ssh-keygen -t ed25519 -C "you@example.com"
    $ cat ~/.ssh/id_ed25519.pub
  2. Create the server

    In the browser

    At your provider, create a server with Ubuntu 24.04 or 26.04 LTS. 1–2 GB of RAM is enough for a small app, 4 GB for several. Paste your public key when asked, and pick a region close to your visitors. Write down the IP address.

  3. Point your domain at it

    In the browser

    At your domain's DNS provider, add an A record from your domain (and www) to the server's IP. It can take a few minutes to spread.

  4. Install Cipi

    On the server

    Log in as root and run the installer. It asks for your SSH public key, shows its plan and installs the whole stack in about ten minutes. Save the credentials it prints: they are shown once.

    terminal
    $ ssh root@203.0.113.10
    $ wget -O - https://cipi.sh/setup.sh | bash
  5. Log in as cipi

    On your laptop

    Root login is now off. From now on you connect as cipi, with your key, and type every command after sudo.

    terminal
    $ ssh cipi@203.0.113.10
    $ sudo cipi status
Deploy apps

Deploy a Laravel app with Git and SSH

Your repository on HTTPS with a queue worker, the scheduler, zero-downtime deploys on every push and instant rollback.

15 minBeginner0 of 7 done
  1. Let Cipi talk to your Git provider

    On the server

    Optional, but it saves clicks: with a token, Cipi adds the read-only deploy key and the push webhook to the repository for you.

    terminal
    $ sudo cipi git github-token ghp_xxx
  2. Create the app

    On the server

    The wizard asks for the type (Laravel), PHP-FPM or Octane, the database, the name, the domain and the repository. It builds an isolated app: Linux user, database, PHP pool, Nginx, worker, scheduler and deploy key.

    terminal
    $ sudo cipi app create
    # or in one line
    $ sudo cipi app create --user=myapp --domain=myapp.com \
      --repository=git@github.com:you/myapp.git --branch=main --php=8.6
  3. No token? Add the deploy key

    In the browser

    Copy the key from the summary (or print it again) and add it to the repository as a read-only deploy key.

    terminal
    $ sudo cipi deploy myapp --key
  4. Add the Cipi Agent to your project

    On your laptop

    The agent adds a signed deploy webhook and a health endpoint to your app. Commit and push.

    terminal
    $ composer require cipi/agent
    $ git commit -am "Add Cipi Agent" && git push
  5. Deploy, then turn on HTTPS

    On the server

    The first deploy builds a release next to nothing and goes live. Then a free Let's Encrypt certificate, renewed automatically.

    terminal
    $ sudo cipi deploy myapp
    $ sudo cipi ssl install myapp
  6. Push to deploy from now on

    On your laptop

    Every push to your branch is live about a minute later. If the webhook wasn't created for you, print its URL and secret and add them to the repository.

    terminal
    $ git push
    # on the server, if needed
    $ sudo cipi deploy myapp --webhook
  7. Work on the app over SSH

    On the server

    Your admin key also opens the app's own shell. Run Artisan, read the logs, edit the .env, roll back in a second.

    terminal
    $ sudo cipi app artisan myapp migrate:status
    $ sudo cipi app logs myapp
    $ sudo cipi app env myapp
    $ sudo cipi deploy myapp --rollback
Deploy apps

Deploy WordPress, with page cache

A WordPress site in its own isolated box, with HTTPS, a page cache that answers without PHP, an object cache and real cron.

15 minBeginner0 of 7 done
  1. Create the app and its database

    On the server

    A custom app hosts any PHP site. --db makes its database, user and password with it: save the password from the summary, it's shown once.

    terminal
    $ sudo cipi app create --custom --user=blog --domain=blog.example.com --db=blog
  2. Upload WordPress

    On the server

    Log in as the app user and unpack WordPress into htdocs. Prefer SFTP? Connect with any SFTP client as the same user.

    terminal
    $ ssh blog@203.0.113.10
    $ cd ~/htdocs
    $ curl -sO https://wordpress.org/latest.tar.gz && tar xzf latest.tar.gz --strip-components=1 && rm latest.tar.gz
  3. HTTPS, then the installer

    In the browser

    Issue the certificate, open the site and run WordPress's installer: database blog, user blog, the saved password, host 127.0.0.1.

    terminal
    $ sudo cipi ssl install blog
  4. Turn on the page cache

    On the server

    Nginx keeps the pages WordPress makes and answers the next visitors without running PHP. Logged-in users, wp-admin and carts are never cached.

    terminal
    $ sudo cipi cache blog on --ttl=1h
    $ curl -sI https://blog.example.com/ | grep -i x-cache-status
  5. Purge only what changed

    In the browser

    Install the Cipi Cache plugin (Plugins → Add New → Upload Plugin, with cipi-cache.zip): an edited post drops its own pages from the cache at once, so pages can be kept for hours.

    terminal
    $ sudo cipi cache blog ttl 8h
  6. Add the object cache

    On the server

    For what the page cache can't keep (wp-admin, logged-in users), an object cache on a Valkey of its own. Then, in WordPress, install Redis Object Cache and press Enable Object Cache.

    terminal
    $ sudo cipi cache blog object on
  7. Real cron instead of WP-Cron

    On the server

    Add define('DISABLE_WP_CRON', true); to wp-config.php, then as the app user (crontab -e) run WordPress's cron every five minutes.

    crontab
    */5 * * * * php ~/htdocs/wp-cron.php >/dev/null 2>&1
Deploy apps

Deploy a Symfony app from its repository

A Symfony app from Git, with its database, build steps on every deploy, HTTPS and a health check.

20 minIntermediate0 of 5 done
  1. Create the app from the repository

    On the server

    A custom app serving the public/ folder, with its database. Add the deploy key from the summary to the repository (read-only), or set a Git token first as in the Laravel path.

    terminal
    $ sudo cipi app create --custom --user=billing --domain=billing.example.com \
      --repository=git@github.com:acme/billing.git --branch=main \
      --docroot=public --php=8.4 --db=billing
  2. Configure the environment

    On the server

    As the app user, create ~/htdocs/.env.local (never committed) with APP_ENV=prod, an APP_SECRET and the DATABASE_URL with the saved password.

    terminal
    $ ssh billing@203.0.113.10
    $ nano ~/htdocs/.env.local
  3. Describe the build in cipi.yml

    In your repository

    Commit a cipi.yml at the root of the repository: Cipi runs these steps after every deploy.

    yaml
    version: 1
    deploy:
      post:
        - composer install --no-dev --optimize-autoloader --no-interaction
        - php bin/console doctrine:migrations:migrate --no-interaction
        - php bin/console cache:clear
      post_on_failure: abort
  4. Deploy and turn on HTTPS

    On the server

    The deploy pulls the code into htdocs and runs the steps. Then the certificate, and a health check every five minutes.

    terminal
    $ sudo cipi deploy billing
    $ sudo cipi ssl install billing
    $ sudo cipi health set billing --url=https://billing.example.com/ --expect=200
  5. Want atomic releases and rollback?

    In your repository

    Custom apps deploy in place. For releases with a switch in one step and rollback, give the app a Deployer recipe or a CI pipeline: the guide below has both, ready to copy.

Deploy apps

Deploy a Next.js, Nuxt or static frontend

A frontend built on the server at every deploy and served by Nginx: SPA, static or SSR with blue/green restarts.

10 minBeginner0 of 3 done
  1. Create a Node app

    On the server

    Pick spa, static or ssr, and the framework: Cipi fills in the build and start commands.

    terminal
    $ sudo cipi app create --user=web --domain=www.example.com \
      --repository=git@github.com:you/web.git --node=ssr --framework=next --node-version=24
  2. Deploy and turn on HTTPS

    On the server

    Every deploy installs, builds and switches with no dropped request; hashed assets are cached for good, HTML never.

    terminal
    $ sudo cipi deploy web
    $ sudo cipi ssl install web
  3. Pin the Node version

    On the server

    Each app can run its own Node LTS major, from official, checksum-verified builds. Push-to-deploy works without any agent: Cipi verifies the provider's signed webhook itself.

    terminal
    $ sudo cipi node install 24
    $ sudo cipi node list
Deploy apps

Keep server settings in Git with cipi.yml

PHP version, workers, scheduler, health check and deploy steps next to your code: reviewed in pull requests, applied all or nothing.

10 minIntermediate0 of 5 done
  1. Start from your code

    On your laptop

    The agent reads your app and writes a first cipi.yml the server will accept. Or start from the commented template.

    terminal
    $ php artisan cipi:yml generate --write
    # or
    $ php artisan cipi:yml example --write
  2. Shape it

    In your repository

    Keep only what you want the repository to decide. Secrets never go here: the server keeps them.

    yaml
    version: 1
    app:
      php: "8.6"
    workers:
      horizon: true
    schedule: true
    health:
      url: "https://myapp.com/up"
      rollback_on_unhealthy: true
  3. Validate before you push

    On your laptop

    The same parser and validator as the server, on your laptop and in CI.

    terminal
    $ php artisan cipi:yml validate
  4. Plan, then apply

    On the server

    After a deploy, see every change the file would make, then apply it all or nothing. Or let it apply after every deploy.

    terminal
    $ sudo cipi yml plan myapp
    $ sudo cipi yml apply myapp
    $ sudo cipi yml auto myapp on
  5. One repository, every environment

    In your repository

    Add cipi-staging.yml next to cipi.yml: an app created with --env=staging reads it first.

Run & monitor

Back up your apps and databases

Encrypted, scheduled backups on the server and off it, to S3 or SFTP, checked and restorable.

10 minBeginner0 of 5 done
  1. Set backups up

    On the server

    Creates the local folder and a nightly profile, default, with every app and database. Then it offers to add an S3 bucket or an SFTP server.

    terminal
    $ sudo cipi backup configure
  2. Send them off the server

    On the server

    A copy only on the server is lost with the server. Add a bucket (the secret is read from a file, never typed on the command line) or an SFTP server, and use it for the nightly profile.

    terminal
    $ sudo cipi backup destination add s3 --bucket=acme-backups --key=AKIA… \
      --secret-stdin --endpoint=https://fsn1.your-objectstorage.com --use=default < secret.txt
    $ sudo cipi backup destination test
  3. Back up the database more often

    On the server

    A shop or a busy app: a database dump every 30 minutes, kept for a day.

    terminal
    $ sudo cipi backup profile add db-often --scope=db --every=30m --keep=48 --dest=local
  4. Run one and check it

    On the server

    Don't wait for tonight. status says what no profile covers yet.

    terminal
    $ sudo cipi backup run
    $ sudo cipi backup status
    $ sudo cipi backup verify
  5. Keep the key, test a restore

    On the server

    Store the encryption key in your password manager: without it an encrypted archive can't be opened. Then download a run once, so you know how.

    terminal
    $ sudo cipi backup key show
    $ sudo cipi backup list
    $ sudo cipi backup fetch default <run>
Run & monitor

Turn on notifications

Failed deploys, backups, health checks, logins and patches on Telegram, Slack, e-mail or a webhook.

5 minBeginner0 of 3 done
  1. Add a channel

    On the server

    One command per channel. Telegram here; Slack, Discord, e-mail, Resend, SES, ntfy, Pushover and webhooks work the same way.

    terminal
    $ sudo cipi notification add telegram oncall --token=<bot-token> --chat-id=<chat-id>
    $ sudo cipi notification add slack team --url=https://hooks.slack.com/services/…
  2. Send each channel what it needs

    On the server

    The phone gets only what needs someone now; the team's chat gets the deploys.

    terminal
    $ sudo cipi notification events oncall urgent
    $ sudo cipi notification events team deploy
  3. Test it

    On the server

    A test message on every channel. Then look at which events are on.

    terminal
    $ sudo cipi notification test all
    $ sudo cipi notification triggers
Run & monitor

Watch uptime, health and metrics

A health check per app, automatic rollback of a bad release, and a month of CPU, memory, requests and uptime.

5 minBeginner0 of 3 done
  1. Add a health check

    On the server

    Checked every five minutes and right after every deploy.

    terminal
    $ sudo cipi health set myapp --url=https://myapp.com/up --expect=200
  2. Roll back a bad release by itself

    On the server

    If the app doesn't answer after a deploy, the previous release comes back within seconds.

    terminal
    $ sudo cipi health set myapp --rollback-on-unhealthy
  3. Look at the numbers

    On the server

    Every minute the server records itself and each app: no agent, nothing listening, nothing sent anywhere. The web panel draws them.

    terminal
    $ sudo cipi metrics
    $ sudo cipi metrics uptime --range=30d
    $ sudo cipi monitor
Run & monitor

Turn on the web panel

A self-hosted dashboard for one or many servers: apps, deploys, databases, backups, metrics, your team with roles, 2FA and SSO.

15 minBeginner0 of 4 done
  1. Give each server its API

    On the server

    The panel talks to servers only through their API. On every server you want to manage: install it on its own hostname and make a token for the panel.

    terminal
    $ sudo cipi api api.example.com
    $ sudo cipi api token create --name=gui --full-access
  2. Install the panel

    On the server

    On the server that will host it. It checks the DNS, creates its own isolated app, asks for the first administrator and issues the certificate.

    terminal
    $ sudo cipi gui panel.example.com
  3. Log in and add your servers

    In the web panel

    Open https://panel.example.com, turn on two-factor login, then add each server with its API address and token.

  4. Invite your team

    In the web panel

    Invite links, a role per server and permissions per app. Single sign-on with Google, Entra ID or any OpenID Connect provider is one command away.

    terminal
    $ sudo cipi gui sso set
Domains & security

Integrate Cloudflare and the other connectors

Cloudflare's proxy with the real visitor IP, certificates through its DNS, Zero Trust for private parts, and 28 provider connectors in the panel.

15 minIntermediate0 of 4 done
  1. Proxy, and see real visitors

    On the server

    With the orange cloud on, set SSL/TLS to Full (strict) in Cloudflare, and teach Nginx, Fail2ban and CrowdSec to read the visitor's real IP.

    terminal
    $ sudo cipi nginx real-ip cloudflare
  2. Certificates through Cloudflare DNS

    On the server

    No need for port 80, works with the proxy on, and allows wildcards.

    terminal
    $ sudo cipi ssl dns set --token=CF_TOKEN
    $ sudo cipi ssl install myapp --dns=cloudflare
  3. Private parts behind Zero Trust

    On the server

    Optional: sites through a Cloudflare Tunnel, a login wall in front of /admin or staging, and later no inbound port at all.

    terminal
    $ sudo cipi zt token set --token=CF_API_TOKEN --account=ACCOUNT_ID
    $ sudo cipi zt enable
    $ sudo cipi zt hostname add myapp
    $ sudo cipi zt access enable myapp --path=/admin --allow=@example.com
  4. Connect your providers in the panel

    In the web panel

    Panel → Connectors: Cloudflare DNS, DigitalOcean, Hetzner, AWS, Vultr, buckets and keys, mail domains, Sentry, Oh Dear and more — 28 in all, each with its own token, next to the servers they belong to.

Domains & security

Manage wildcard domains

Every customer on their own subdomain (acme.myapp.com) from one Laravel app, with one wildcard certificate.

10 minIntermediate0 of 4 done
  1. Add the wildcard DNS record

    In the browser

    At Cloudflare: *.myapp.com pointing at the server (A record), next to myapp.com.

  2. Give Cipi the DNS token

    On the server

    Wildcard certificates are issued through DNS validation.

    terminal
    $ sudo cipi ssl dns set --token=YOUR_CLOUDFLARE_TOKEN
  3. Add the wildcard and the certificate

    On the server

    Quote the wildcard. One certificate covers myapp.com and every subdomain.

    terminal
    $ sudo cipi alias add myapp '*.myapp.com'
    $ sudo cipi ssl install myapp --dns=cloudflare
  4. Check a tenant

    On your laptop

    Any name works at once. In Laravel, route by subdomain with Route::domain('{tenant}.myapp.com').

    terminal
    $ curl -sI https://acme.myapp.com | head -1
Domains & security

Secure SSH and close port 22

Good keys, an alert on every login, and SSH reachable only from your own devices.

15 minIntermediate0 of 4 done
  1. One key per person, named

    On the server

    Add your teammates' keys and remove them the day they leave. You can't remove your own session's key or the last one.

    terminal
    $ sudo cipi ssh add "ssh-ed25519 AAAA… mario@laptop"
    $ sudo cipi ssh list
  2. An alert for every login

    On the server

    SSH logins, sudo, su and key changes are security events: send them to your phone.

    terminal
    $ sudo cipi notification events oncall urgent
  3. Join a private network

    On the server

    The server gets an address only your devices can reach. It closes nothing yet.

    terminal
    $ sudo cipi zt tailscale enable --auth-key=tskey-auth-…
  4. Prove it, then lock

    On your laptop

    Log in over the private network, and from that session close port 22 to the rest of the world.

    terminal
    $ ssh cipi@100.101.102.103
    $ sudo cipi zt tailscale lock ssh
Start here

Move from Forge, Ploi or another server

Bring an app over with a rehearsal first, cut over in minutes, and keep the old server as your plan B.

1 hourIntermediate0 of 4 done
  1. Create the app on the new server

    On the server

    Same repository, same branch, a temporary domain or the real one. Copy the .env from the old server.

    terminal
    $ sudo cipi app create
    $ sudo cipi app env myapp
  2. Deploy once and rehearse the data copy

    On the server

    Deploy, then copy the database and the uploads once, to see how long it takes and that the app works on the new server.

  3. Cut over

    In the browser

    Lower the DNS TTL beforehand, put the old app in maintenance, copy the data a last time, point the DNS at the new server and issue the certificate.

    terminal
    $ sudo cipi ssl install myapp
  4. Between two Cipi servers, one command

    On the server

    Moving from one Cipi server to another? sync copies apps, keys, workers, crontab, database and storage in encrypted archives.

    terminal
    $ sudo cipi sync check --host=203.0.113.20
    $ sudo cipi sync push --host=203.0.113.20 --with-db --with-storage --import
Run & monitor

Ask your app from Claude, Cursor or VS Code

An MCP server in your Laravel app: health, logs, schema and deploys from your AI assistant, with a token and guardrails.

10 minIntermediate0 of 3 done
  1. Turn on the agent's MCP

    On the server

    As the app user, in the live release: enable the service and make its token.

    terminal
    $ php artisan cipi:service mcp --enable
    $ php artisan cipi:generate-token mcp
    $ php artisan cipi:mcp
  2. Connect your assistant

    On your laptop

    cipi:mcp prints the endpoint and a ready-to-paste configuration. For Claude Code:

    terminal
    $ claude mcp add --transport http cipi-myapp https://myapp.com/cipi/mcp \
      --header "Authorization: Bearer YOUR_CIPI_MCP_TOKEN"
  3. Ask

    On your laptop

    "Is the app healthy? What failed last night? Show the last deploys." SQL and Artisan are guarded and secrets are redacted.

Stuck on a step?

Search the docs and the guides, or ask on Telegram. Every command has a page that explains each option.

Read the docsTelegram channel