Free hosting, no credit card
Checked on 28 November 2026 against each provider's own docs (linked). Free tiers change. Check the linked page before you rely on a number.
Koko has two parts to host. The server is one small binary with a SQLite file. It needs a process that stays up, a disk that survives restarts, and WebSocket support. The web client is static files and can live on any static host. The server does not serve the web client.
The short answer
- Cheapest honest cloud path with no card: Railway Free plan for the server, plus a free static host for the web client. It has limits, listed below.
- Most reliable with no card: your own machine (an old laptop, a Raspberry Pi, a spare PC) with a Cloudflare tunnel. No limits except your own uptime.
- Not an option if you refuse to give a card: Oracle Cloud Always Free (best hardware, but sign-up needs a credit or debit card) and Fly.io (the free credit without a card is $1 and expires after 7 days).
Option 1: Railway Free plan (server)
What Railway says about its Free plan (docs.railway.com/pricing/free-plan):
- $0, no credit card, $1 of usage each month. $1 covers about 100 MB of RAM or 0.05 vCPU around the clock, or 20 GB of egress. The Koko server idles at about 4 MB of RAM, so it uses a small part of that.
- One 0.5 GB volume. That holds a SQLite database for a long time (messages are text).
- Services sleep after 5 to 10 minutes without outbound traffic and wake on the next request. Railway's FAQ says a service with an open WebSocket stays awake. Connected Koko clients keep a WebSocket open, so the server should stay up while someone is online. We have not run Koko on Railway ourselves, so watch the first day.
- When the $1 is used up, services stop until the next cycle. Volumes are kept.
- New accounts also get a 30-day trial with a one-time $5. After it, you continue on the Free plan.
Steps (the Dockerfile in this repo builds the server):
- Push this repository to your own GitHub account.
- Create a Railway project, choose "Deploy from GitHub repo", and pick it. Railway builds the
Dockerfileat the repo root. - Add a volume to the service and mount it at
/data. - Set
RAILWAY_RUN_UID=0on the service. The image runs as a non-root user, and Railway's volume docs say that causes permission errors on volumes unless you set this (docs.railway.com/volumes/reference). - Set
KOKO_BIND=0.0.0.0:8080andKOKO_DB=/data/koko.db(the Dockerfile already defaults to these). - Under Networking, generate a public domain that points at port 8080. You get an
https://address, and the WebSocket useswss://on the same host. - Check
https://YOUR-DOMAIN/healthz. It printsok.
The Dockerfile itself has been checked with a local cargo build of the same steps, but not with a real Docker build.
Option 2: your own machine and a Cloudflare tunnel
Run koko-server on any machine that can stay on, then give it a public HTTPS address without opening router ports.
- Quick tunnel, no account:
cloudflared tunnel --url http://localhost:8080. It prints a randomtrycloudflare.comaddress. No Cloudflare account or domain needed (developers.cloudflare.com/tunnel/get-started/quick-tunnels). Cloudflare says quick tunnels are for testing. The address changes every time you restart it, so clients have to be pointed at the new one. Fine for trying Koko with friends. - Named tunnel: a stable address, needs a free Cloudflare account and a domain on it (developers.cloudflare.com/tunnel/concepts). We have not checked what Cloudflare asks at sign-up or what a domain costs.
Your data stays on your disk. Back it up with the command in the self-hosting guide.
Static web client
Build it (see Build from source), then upload the web/build folder to a static host:
- GitHub Pages: free for public repositories on a free account. Limits: 1 GB site, 100 GB a month soft bandwidth (docs.github.com).
- Cloudflare Pages: Free plan allows 500 builds a month and 20,000 files per site (developers.cloudflare.com/pages/platform/limits). We did not check what its sign-up asks for.
Because the client and server are on different origins, set KOKO_CORS_ORIGIN on the server to the address of your web client (for example https://you.github.io), and build the client with PUBLIC_SERVER_URL=https://YOUR-SERVER-DOMAIN so it points at your server. Users can also type a server address on the login screen.
Why not the others
| Provider | No card? | Problem for Koko |
|---|---|---|
| Render free web service (render.com/docs/free) | Yes | The filesystem is wiped on every redeploy, restart and spin-down (after 15 idle minutes), and free services cannot attach a disk. A SQLite database would be lost. Its free Postgres expires after 30 days. Only good for a throwaway demo. |
| Oracle Cloud Always Free (oracle.com/cloud/free/faq) | No | Needs a credit or debit card for identity checks. Virtual, single-use and prepaid cards are not accepted. Accounts idle for 30 days can be reclaimed. |
| Fly.io (docs.fly.io/about/free-plan) | Partly | Without a card you get $1 once, and it expires after 7 days. The $5 a month needs a card. |
| Koyeb | No | Third-party reviews from late 2026 report no free tier for new users and a card hold. Check koyeb.com/pricing. |
What free hosting cannot give you
No uptime promise, no backups unless you make them, and limits that can change. If Koko becomes something people depend on, a small paid server (a few dollars a month) is the better home.