Skip to main content

orbitctl

Run your own web server like a hosting panel, with every change in git.

orbit manages one Ubuntu 24.04 server and the sites on it: Laravel, plain PHP, static and Next.js. It handles:

  • nginx, PHP-FPM pools and supervisor workers;
  • cron, Let's Encrypt certificates and deploy keys;
  • MySQL and Redis;
  • backups with restic;
  • monitoring with push notifications;
  • DNS records.

There is no panel and no daemon. Each site is a folder of plain files in your own git repository. orbit plan shows what would change on the server as a diff. orbit apply makes the change.

$ orbit plan example.com
example.com: 1 changes
  ~ /etc/supervisor/conf.d/example.conf: content
      --- current
      +++ new
      @@ -1,5 +1,5 @@
       [program:example-queue]
      -command=php8.4 /home/example/example.com/artisan queue:work --sleep=3 --tries=3
      +command=php8.4 /home/example/example.com/artisan queue:work --sleep=3 --tries=5
       directory=/home/example/example.com
       user=example
       numprocs=1

Why

Hosted panels like Forge, Ploi or RunCloud are convenient, but your server's state lives in their database:

  • you can't review a change before it happens;
  • you can't see who changed what;
  • the server's configuration isn't in git.

orbit keeps the convenience and moves that state into files.

  • The repository is the truth. Sites, workers, crons and nginx are files. To change something, you edit a file, commit it and run orbit apply.
  • Look before you touch. plan is a real diff against the live server, and apply does exactly what plan shows. Then it tests the configuration with nginx -t and php-fpm -t, and puts the old files back if a test fails.
  • Built for scripts and LLM agents.
    • no interactive prompts;
    • --json on every command that reads;
    • meaningful exit codes;
    • errors that say what to do next;
    • --yes required for destructive commands.
  • Secrets stay out of the CLI. orbit shows only the names of a site's .env variables, and new values arrive on stdin. An agent can manage a site without ever seeing a password.
  • Nothing to install on the server. orbit is Python 3 with only the standard library, which Ubuntu already ships. It runs only when you call it.

What it does

Area What you get
Sites one Linux user and isolated home per site, a PHP-FPM pool per site, nginx with HTTPS, aliases redirected to the main domain
Site types laravel, php, static (with an optional build step), nextjs (next start under supervisor)
Deploys a root-owned deploy script per site, started by GitHub Actions over SSH with a key that can run only that script
Runtimes several PHP, Node and Python versions side by side, one per site in site.env
Data MySQL 8 per site (database, user, password written into .env), SQLite, Redis per site on a private socket
Backups nightly restic snapshots per site (.env, databases, uploads) to S3-compatible storage
Monitoring orbit doctor checks every 5 minutes, alerts on your phone through ntfy
Security firewall, fail2ban, key-only SSH, automatic security updates, a nightly audit of each site's dependencies against OSV
DNS records through the provider's API (OVH for now), including moving a site's records from an old server
Dashboard orbit ui: a terminal dashboard with the server, the sites, logs, and a command on each key
Migration a read-only inventory of an old Ploi server, and a copy of a site's .env, database and files from it

How it works

  your computer                                   the server
  ─────────────                                   ──────────

  orbit plan example.com
    │ 1. packs the project and orbit (tar)
    │    and sends it over ssh ──────────────────▶ /root/server (replaced as a whole)
    │ 2. runs itself on the server ──────────────▶ orbit --local plan example.com
    │                                                reads the real state and compares
    ◀──────────────────────── output (text or JSON) ─┘

On your computer, orbit changes nothing: it ships the project and forwards the command. On the server, it reads and changes the system. If nothing changed since the last command, orbit skips the upload, and most commands take a fraction of a second. More in docs/architecture.md.

Requirements

  • The server: a fresh Ubuntu 24.04, with root SSH access by key and ports 22, 80 and 443 open.
  • Your computer: macOS or Linux, with Python 3.11 or later, ssh and git.
  • Optional:
    • gh, to add deploy keys to GitHub automatically;
    • Textual, for the dashboard.

Install

pipx install orbitctl           # the CLI: standard library only
pipx install 'orbitctl[ui]'     # with the terminal dashboard, orbit ui

Quick start

A project is a git repository that describes one server. orbit finds it in the ORBIT_PROJECT environment variable. Without that variable, it looks for a server.env in the current directory and then in each parent directory.

mkdir my-server && cd my-server && git init
cat > server.env <<'EOF'
HOST=203.0.113.10
SSH_USER=root
TIMEZONE=Europe/Berlin
EOF
git add server.env && git commit -m "chore: my server"

orbit status        # ships orbit to /root/server; fails until the server is prepared
ssh root@203.0.113.10 'PHP_VERSIONS="8.4" /root/server/orbitctl/bootstrap.sh'
orbit doctor        # the server's checks

Then add a site:

orbit site new example.com --repo git@github.com:you/example.git --cert-email you@example.com
git add sites/example.com && git commit -m "feat: example.com"
orbit site create example.com       # user, deploy key on GitHub, clone, apply
orbit env set example.com APP_KEY   # asks for the value without echo; one per variable
orbit deploy example.com
# point the DNS of example.com and www.example.com to the server, then:
orbit cert example.com

docs/getting-started.md walks through every step, including automatic deploys from GitHub Actions.

Every day

orbit sites                         # every site: PHP, certificate, workers, last deploy and apply
orbit doctor                        # what is wrong, and what to do about it
orbit logs example.com laravel -f   # follow a log
orbit artisan example.com -- migrate:status
orbit env keys example.com          # variable names, never values
$EDITOR sites/example.com/supervisor.conf && orbit plan example.com
git commit -am "config: example.com, more retries" && orbit apply example.com

Documentation

Getting started from an empty server to a site deployed from GitHub
Architecture how orbit works, the project layout, the files on the server
Commands every command, doctor, audit, exit codes
Site configuration site.env, site types, workers, crons, nginx and PHP settings, templates
Sites site new, create, migrate and remove
apply what apply writes, site isolation, reloads and rollback
Deploys deploy scripts, deploy keys, GitHub Actions
Server setup what bootstrap.sh installs and configures
Certificates Let's Encrypt
Runtimes PHP, Node and Python versions, OPcache
MySQL, Redis databases and Redis for each site
Backups restic, restore, disaster recovery
Monitoring alerts with ntfy
DNS DNS providers, moving a site to the new server
Dashboard orbit ui
LLM agents rules and permissions for coding agents

Status

orbit runs its author's production server, but it is young:

  • version 0.1;
  • one server per project;
  • Ubuntu 24.04 only;
  • OVH is the only DNS provider.

Expect changes before 1.0. Ideas and bug reports are welcome, see CONTRIBUTING.md. For security issues, see SECURITY.md.

License

MIT

Metadata

Release files for orbitctl 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for orbitctl 0.1.0
File Size Uploaded Provenance Actions
orbitctl-0.1.0.tar.gz 209.9 kB With provenance Details for orbitctl-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for orbitctl 0.1.0
File Interpreter ABI Platform Actions
orbitctl-0.1.0-py3-none-any.whl Python 3 none any Details for orbitctl-0.1.0-py3-none-any.whl

Total release size: 363.7 kB

Release files / orbitctl-0.1.0.tar.gz

Download URL orbitctl-0.1.0.tar.gz
Size 209.9 kB
Tags Source
SHA-256 checksum
How to use checksums
712bac4b6709dc7ea6ce0b43f48e35dc40b9d7df7b15b8cec73347855b227f63
BLAKE2b-256 checksum
How to use checksums
792e16c06f9cccc49020cc00174d5391af8fc729bcd41ca86100eaafbe096459
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 10, 2026.

Transparency log

Release files / orbitctl-0.1.0-py3-none-any.whl

Download URL orbitctl-0.1.0-py3-none-any.whl
Size 153.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5958b27795cec271264e518e4cb7b5e22f8040bd263f3323f690ccc9938b0a6a
BLAKE2b-256 checksum
How to use checksums
eddf90ed3946dcc5424b0d732cf3170aa90717c8456c032c9881e3c39c0380a9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 10, 2026.

Transparency log

Security for orbitctl 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for orbitctl-0.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 10, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page