The most secure and easy way to self-host a home server
source availableApache-2.0 AND Commons Clause AND Cosmos Anti Tampering Clause v1.0self-hostablefree
Cosmos (Cosmos Server, sold as Cosmos Cloud) is a self-hosted home server manager that sits in front of your apps as a secure gateway. One container on a server, NAS or Raspberry Pi gives you an app store, a Docker container manager with docker-compose support, a reverse proxy with automatic HTTPS from Let's Encrypt, an authentication server and identity provider with multi-factor authentication and OpenID, a customizable homepage, disk management with parity disks and MergerFS, rclone-based network storage, restic-based backups, monitoring with alerts, scheduled tasks and the Constellation VPN. Its SmartShield adds adaptive rate limiting, anti-bot and anti-DDoS protection, including for TCP services. The code is readable under Apache 2.0 with the Commons Clause and an anti-tampering clause, so it can't be sold or offered as a service; the free Community plan covers 5 users and one server, and Home Premium, Home Lifetime and Pro for Businesses unlock more users, servers and features.
Ways to install
On your own server
Problems it solves
- I'm worried the self-hosted apps on my home server have security holes and are exposed to the internet
- put login with two-factor authentication in front of apps that have no auth of their own
- one dashboard to install apps, set up HTTPS and manage containers on my home server
- invite family members to my self-hosted apps without sharing passwords
- reach my home server's apps from anywhere without opening ports on the router
- get automatic HTTPS certificates for every app on my home server, including wildcard ones
- rate limit and block bots hitting my self-hosted services
- manage disks with a parity disk and MergerFS from a web UI
- back up my containers and their config with encrypted incremental backups
- a self-hosted alternative to CasaOS or Umbrel with a reverse proxy and SSO built in
- an OpenID provider for my homelab apps without running Authentik or Keycloak
- a homepage that links all my self-hosted apps in one place
- monitor my home server and get notified when something goes wrong
- mount a remote Dropbox or share a folder over NFS from my home server's web UI
- stop idle containers and start them when someone visits the app
- schedule cron jobs on the server or inside containers from a web page
- manage several servers and deploy apps across them for a small business
Features
- app store with installers, automatic updates and security checks, plus docker-compose import
- container manager with docker-compose support, updates and security audits
- reverse proxy to containers, other servers or static folders, with automatic HTTPS
- authentication server and identity provider with MFA and OpenID, forward headers or HTML login
- user invitations and self-service password reset by email
- SmartShield: adaptive rate limiting, throttling, bans and strikes, anti-bot, anti-DDoS and geo-blocking, including TCP services
- storage manager with parity disks and MergerFS
- rclone-based network storage and NFS/FTP shares
- incremental, encrypted, remote backups using restic
- monitoring with history, alerts and notifications
View 5 more
- Constellation VPN for remote access without opening ports
- customizable homepage and cron scheduler
- lazy containers that start on demand
- JavaScript/TypeScript and Go SDKs and a Terraform provider
- Pro: clusters, multi-server deployments, load balancing, managed PostgreSQL and S3 storage, cloud functions, CI/CD and private registries
Limitations
- Can't be installed from Unraid templates, CasaOS or Portainer stacks: the maker says to start Cosmos with its own docker run command2
- No file manager and no virtual machine management: its comparison table marks both as missing2
Ways to run it
Cosmos Community
Not included
- more than 5 users or a second server3
- Constellation VPN, remote storage shares and storage backups, which start at Home Premium3
You arrange
- a Linux server, NAS or Raspberry Pi with Docker
- a domain name for HTTPS
- ports 80 and 443 forwarded to it
Cosmos Home Premium
$99/year ($8.25/month)3
Only in this edition
- up to 20 users and 2 servers
- Constellation VPN
- remote storage access and shares
- storage backups
Cosmos Home Lifetime
$249 one-time3
Only in this edition
- everything in Home Premium
- lifetime updates with no subscription
Cosmos Pro for Businesses
from $16/month with 16 GB RAM and 20 users; $1/GB/month and $5.99/user/month beyond35
Only in this edition
- unlimited servers
- cluster management, multi-server deployments and autoscaling
- load balancing
- managed PostgreSQL and S3 storage
- cloud functions, CI/CD and private registries
- fine-grained permissions
- priority support
Not included
- SSO, which the pricing page lists as coming soon3
Capabilities
| Has an API | plan not known |
|---|---|
| Has a command line tool | plan not known |
| Has official SDKs | plan not known |
Alternatives
The same job
These do what Cosmos does.
- Runtipi A personal homeserver for everyone, with one-click app installs
- Unraid The homelab OS for storage, Docker and VMs
- Nginx Proxy Manager Expose your services easily and securely
- CasaOS Simple, elegant open source personal cloud system around the Docker ecosystem
- umbrelOS A beautiful home server OS for self-hosting
- YunoHost Garden your own piece of the Internet: a server OS that makes self-hosting easy