Installation
Get Based running on your VPS in under a minute. You need a server with SSH access and a domain.
Prerequisites
A VPS (any provider — Scaleway, Hetzner, DigitalOcean, etc.) with SSH access. Based installs Docker and Nginx automatically.
A domain with two DNS A records pointing to your VPS IP:
based.yourdomain.com → YOUR_VPS_IP
*.based.yourdomain.com → YOUR_VPS_IPInstall the CLI
One command — requires bun and git:
terminal
curl -fsSL https://based.weirdscience.dev/install.sh | shOr from the repo:
terminal
git clone https://github.com/WeirdScience-dev/based.git
cd based && bun install && bun run setupInitialize your server
Point Based at your VPS. This installs Docker, Nginx, deploys the container, and generates your admin key.
terminal
based init YOUR_VPS_IP --domain based.yourdomain.comThe admin key is saved in ~/.based/config.json. You never need to type it again.
Options
terminal
based init <host> --domain <domain>
Options:
-u, --user <user> SSH user (default: ubuntu)
-i, --identity <path> SSH key (default: ~/.ssh/id_ed25519)
--remote-dir <path> Install directory (default: /var/www/based)
--skip-ssl Skip SSL setupWhat happens during init
The CLI connects via SSH and:
- Installs Docker and Nginx if not present
- Syncs the Based server code via rsync
- Generates a random admin key
- Builds and starts the Docker container
- Configures Nginx for wildcard subdomain routing
- Saves the config to
~/.based/config.json