The OpsCrew guide
One topic per page. Start with the Quickstart if you have not deployed an app yet.
Where your app runs
Section titled “Where your app runs”- Deploy to Hetzner Cloud
- Deploy to DigitalOcean
- Deploy to Contabo
- Deploy to OVHcloud
- Deploy to Kamatera
- Deploy to Amazon Web Services (AWS)
- Deploy to Microsoft Azure
- Deploy to Google Cloud (GCP)
- Deploy to a server you already have
- Host your app at home
- Deploy to a Portainer you already run
- Your app’s production stack on your own computer
- Host your site on Cloudflare, with no server
- Publish your site on GitHub Pages
- Deploy to a hosting account: cPanel, Plesk, DirectAdmin or SFTP (cPanel, Plesk, DirectAdmin, SFTP)
- Moving your app somewhere else
- Moving your app to another Cloudflare account
- dev, staging and prod: environments
- Previews: a link for every pull request
- Several apps in one repository
- A second app on another app’s server
- A server of its own for a service: split placement
- Scaling across servers: web and worker copies
- Your devices on the private network
- Portainer: a web UI for your containers
- Buying or connecting a domain
- Your domain on Cloudflare, and several apps in one zone
- Bunny.net edge proxy and DNS
- Gcore edge proxy and DNS
- Fastly edge proxy
The providers, for tools
Section titled “The providers, for tools”npx opscrew providers lists the cloud server providers, Cloudflare and the domain registrars
OpsCrew works with, one line each, with the variables each one needs. npx opscrew providers --json
prints them as a catalogue for tools, such as a guided start:
- For each provider: its kind, name, sign-up, console, pricing and guide pages, and its credentials: the
variables, which ones are secrets, where to create them and how, in the words
npx opscrew inituses. - For a cloud server provider: its currency, how it bills, its locations, and its sizes with their prices from OpsCrew’s dated built-in price list.
- Suggestions: the size design picks on each cloud provider for a small web app with PostgreSQL, and where it sends a static site.
It reads no token, no project and no network, so one OpsCrew version always prints the same
catalogue. Its schema is
provider-catalogue.schema.json.
How your app is built and shipped
Section titled “How your app is built and shipped”- How OpsCrew builds your app’s image
- When a push deploys your app
- Deploys without downtime
- Self-hosted runners and runner machines: where the deploy job and the build run
- The image supply chain
- The reverse proxy: Caddy, nginx or OpenLiteSpeed, and your own rules
What runs next to your app
Section titled “What runs next to your app”- What runs next to your app: components
- Workers and cron jobs
- Databases
- Object storage
- Message brokers and queues
- Search and analytics engines
Once your app runs
Section titled “Once your app runs”- Your app’s logs and resource figures
- OpsCrew’s agent on the server: live logs for the dashboard
- Advice on size, cost and upkeep
- Alerts: the scheduled check
- When a deploy fails, and how to recover
- Rolling back a release
- Snapshots and restores
- Beszel: charts and history for your server
- Grafana Cloud: searchable logs and metrics, free
- Self-hosted monitoring: Prometheus, Loki and Grafana on your own server
- Self-hosted Gitea: provisioning and app integration
Using OpsCrew
Section titled “Using OpsCrew”- AI models: Anthropic, OpenAI and compatible gateways
- OpsCrew in Claude Code: the plugin
- OpsCrew in Codex: the plugin
- OpsCrew in other AI apps: Claude Desktop, Codex, Cursor and VS Code
Security
Section titled “Security”- Security: what OpsCrew sets up and checks
- Only Cloudflare reaches your server: origin protection
- Close public SSH
- Your production database from your device
- Certificates, CAA records and the minimum TLS version
- The recovery copy of your app’s secrets
- Rotating your app’s credentials
- Deeper security checks
What OpsCrew adds to your repository
Section titled “What OpsCrew adds to your repository”Everything OpsCrew sets up is a plain file in your repository, which you can read, change and keep. For an app deployed to a new server, the main ones are:
your-app/├── Dockerfile your app's image, when OpsCrew writes one├── .github/│ ├── workflows/opscrew-deploy.yml the deploy workflow│ ├── workflows/opscrew-check.yml the scheduled check│ └── dependabot.yml Dependabot's update proposals└── opscrew/ ├── architecture.json what analyze found in your app ├── ARCHITECTURE.md the same, for people ├── plan.yaml the setup you chose ├── infra/prod/ the server, firewall and DNS as OpenTofu code ├── runtime/compose.yaml what runs on the server ├── secrets.sops.json the recovery copy of your secrets, encrypted to your key ├── SECURITY_REPORT.md the last security check └── RUNBOOK.md how to reach, back up and remove the deploymentAnother environment keeps its own plan, runbook, security report, runtime files and recovery copy
under opscrew/environments/<env>/, and its infrastructure code under opscrew/infra/<env>/
(environments).
Commit the plan with the files that come from it: npx opscrew drift reports generated files whose
plan isn’t committed. Keep the project in a folder that isn’t temporary: npx opscrew provision
warns when it runs from the system’s temporary folder, which the system may clear.
The plan records which OpsCrew version last wrote the generated files (deployment.generatedBy),
and npx opscrew drift shows it as a note. A build of OpsCrew between two releases names itself
<version>-dev.<commit>, so its files never pass for a release’s. The generated files themselves
don’t name the version, so upgrading OpsCrew alone changes none of them.