# Migrate from Railway

Move from usage based service billing to a predictable pool of machine resources while still deploying with a push. Tokay runs the application's web Services, workers, jobs, and databases together on one dedicated virtual machine.

## The application maps without a redesign

You can bring over the same repository and environment variable contract. [Connect GitHub or add a Tokay remote](/getting-started), then push and review the web Services, workers, and scheduled jobs Tokay detects from the code.

Railway variables become encrypted Project secrets under the same names. When the code expects Postgres, MySQL, MongoDB, or Redis, Tokay creates the resource and supplies its connection.

## One resource pool makes the limit predictable

Your capacity and cost are easier to predict because the whole Project shares one fixed resource pool. The Workspace machine includes 2 vCPU, 2 GB of RAM, and 20 GB of storage, so ten small Services use the same reserved capacity as one.

The tradeoff is a visible capacity ceiling. Scaling past the machine means moving to a larger machine rather than paying per unit of usage. Railway is the stronger fit when automatic consumption based scaling is more important than a fixed resource pool.

## The move stays reversible until traffic changes

Export each Railway database, load it into the corresponding Project resource, and deploy the application on Tokay. Verify every public URL before moving the domain.

Tokay runs health checks before new releases receive traffic and restores the working version automatically if they fail. Database migrations are rehearsed against a copy of production data before the live database changes.

## Your AI agent can remove the provisioning steps

A coding agent like Claude Code or Codex can read Railway variables, submit the repository, set the values as write only Tokay secrets, and deploy the detected Services through the GraphQL API. Supported databases are created from the code's connections, so the agent does not need a separate infrastructure workflow.

Point your agent to [app.tokay.io/llms.txt](https://app.tokay.io/llms.txt) for the deployment protocol.

Tokay has a very generous free tier with no credit card. [Get started](/getting-started).
