# Tokay pricing

Every billing account includes one permanent Free workspace. It is not a trial and does not require a credit card. Paid workspaces are priced by size.

## What each workspace size costs

| Workspace size | Price | vCPU | RAM | Storage |
| --- | --- | --- | --- | --- |
| Free | $0, one per billing account | 2 | 2.5 GB | 20 GB |
| Small | $30/month | 4 | 8 GB | 60 GB |
| Medium | $60/month | 8 | 16 GB | 120 GB |
| Large | $120/month | 16 | 32 GB | 240 GB |

Every size from Free to Large is self serve. Workspaces scale beyond Large by request, up to 3 TB of RAM and 384 CPU threads. Horizontal scaling for stateless services is coming soon and can be set up by request today. Write to hello@tokay.io.

Storage holds your data. App files, uploads, and managed databases count toward it. Container images and the runtime do not.

## Sizing a workspace

Everything in one Workspace shares its RAM. That means every Service and every managed database, across all of its Projects. Size by RAM first. CPU rarely limits typical apps.

1. Start with 0.5 GB for the platform. It runs routing, logs, and health checks inside the Workspace.
2. Add the steady RAM of each Service and each managed database.
3. Multiply the total by 1.25 for headroom.
4. Choose the smallest size whose RAM covers the result.

Deploys do not need headroom of their own. During a rolling deploy, Tokay gives the Workspace extra RAM while the old and new versions overlap.

For example, a Next.js app with a background worker and PostgreSQL adds up like this.

- Platform 0.5 GB
- Next.js web app 0.3 GB
- Background worker 0.15 GB
- PostgreSQL 0.15 GB
- Total 1.1 GB, times 1.25 is 1.4 GB. Free fits.

A Rails app with Sidekiq, PostgreSQL, and Redis needs more.

- Platform 0.5 GB
- Rails web app with three Puma workers 0.9 GB
- Sidekiq 0.4 GB
- PostgreSQL with a warm working set 0.5 GB
- Redis 0.1 GB
- Total 2.4 GB, times 1.25 is 3 GB. Small fits.

The per Service figures above are illustrations. Real apps vary. After a deploy, measure instead of estimating. In the dashboard, each Project's Usage tab shows RAM for its Services and databases. Agents call `get_usage` on the Workspace, which returns its RAM use, the largest consumers, the headroom left, and the next size that fits when the Workspace runs short.

## Included with every workspace size

- Each Workspace runs on a dedicated KVM virtual machine that is always on and is not shared with other customers.
- The machine may host unlimited web apps, APIs, scheduled jobs, webhooks, and background workers.
- Tokay provisions PostgreSQL, MySQL, MongoDB, and Redis, connects them to your Services, and validates supported database migrations before production.
- Every Web Service receives an HTTPS URL. Custom domains include routing and automatic SSL certificate renewal.
- Encrypted Project Secrets keep private runtime values out of source code.
- Health checks support zero downtime deploys, while deployment history lets you roll back to an earlier version in one click.
- Each Service includes streaming logs, complete deployment history, and automatic restarts after a crash.

## Free workspace permanence

The Free workspace is permanent. Running apps will not be shut down as paid billing rolls out.

## Acceptable use

The Free workspace is for building and running real apps. Crypto mining and abusive bots are not allowed and lead to removal.

Questions: hello@tokay.io. Rendered page: https://tokay.io/pricing
