Skip to main content

Self-host

Run your own Kosmos server (API + UI) on Docker, Coolify, a VPS, or a homelab — without Kosmos Cloud provisioning.

This page is a short pointer. Full deploy steps live in the Kosmos repo.

Server-only (built UI + API)

From Kosmos-computer/Kosmos:

npm run build
npm start # serves :4600

Or use the repo Dockerfile / Coolify compose. For HTTPS, set ARCO_SECURE_COOKIES=1 and configure CORS as documented in the deploy guides.

Coolify / Docker

See the Coolify runbook in the Kosmos repo:

Important: mount a named volume at /data (or your ARCO_DATA_DIR) so redeploys do not wipe chats, apps, and settings.

Clients

ClientHow it connects
Browser / PWAOpen your HTTPS origin
DesktopSettings → Kosmos Cloud (or server profile) with your origin
Mobile APKEnter the server host at first run / Settings → Server

Each server is a separate instance (own accounts, drive, sessions).

Kosmos Cloud vs self-host

Kosmos CloudSelf-host
ProvisioningControl plane + StripeYou run Docker/VPS
Billing / creditsHosted plan + gatewayBring your own model keys
URLkosmos-*.fly.devYour domain
OpsManagedYou own backups, TLS, upgrades

Next steps