Deploy
Deploy Python, on a server run for you.
Ship a Django, Flask, or FastAPI app straight from GitHub. Selfhost.dev auto-detects the build, runs it on a dedicated server, and puts a one-click Postgres right beside it, no server to provision, no DevOps.
What you get
Your Python app, deployed.
Database included, run for you.
Selfhost.dev detects your Python project from GitHub with Nixpacks (requirements.txt or pyproject.toml), installs dependencies, and runs your app behind a production server. Add a managed Postgres to the same project in one click, point a domain, and you are live. No host to patch, no reverse proxy to configure.
Deploy in 5 steps
From zero to live.
No server to set up.
From GitHub to a live URL in five steps. Selfhost.dev detects the build; you set the start command and env.
Create a Project
Give it a name and Selfhost.dev provisions a dedicated server for you in a couple of minutes.
Add your GitHub repo
Connect the GitHub App or paste a public repo URL, pick a branch, and Selfhost.dev auto-detects Python via Nixpacks (or use your own Dockerfile).
Set the start command and env
Point Selfhost.dev at your server command (gunicorn for Django or Flask, uvicorn for FastAPI), set the port, and paste a .env for your secrets.
Add a database
Add a one-click PostgreSQL to the same project and wire its connection string into your app as DATABASE_URL.
Point your domain and deploy
Add a custom domain (SSL handled automatically) and deploy. Every push redeploys, with live logs and one-click rollback.
Environment variables
Configure it
in minutes.
Set your runtime config per service, paste a .env to import in bulk:
Paste a .env to import in bulk, or set keys one by one. Values are wired into every build and deploy.
Key variables
Why Selfhost.dev
Python, the easy way.
On a server you control.
Django, Flask, FastAPI
Any Python web framework. Selfhost.dev auto-detects the build from requirements.txt or pyproject.toml.
A database, one click away
Add a one-click PostgreSQL, Redis, MySQL, or MongoDB to the same project, right beside your app.
Auto-deploy from GitHub
Every push ships automatically, with PR preview environments, streaming logs, and one-click rollback.
A server you control
Dedicated compute with live CPU, memory, and connection metrics, not an opaque platform.
Custom domain + SSL
Add a domain, verify DNS, and HTTPS is provisioned and renewed for you.
Pay only for what you run
Billed by the hour against prepaid credits, from ~$0.02/hr. Pause and pay nothing.
Drive it from your AI editor
Trigger deploys, stream logs, set env vars, and add domains from Claude, Cursor, or any MCP client: 150+ MCP tools.
Need production-grade data?
A one-click in-project Postgres is perfect for most apps. If you need a dedicated, production database with point-in-time recovery, pooling, and Multi-AZ, use managed PostgreSQL instead and connect it to your app.