Guides3. Run the loop
Run the loop on Railway
Build in your own Railway account, so the build keeps going with the laptop closed.
A build normally runs on your Mac. On Railway, the same build runs in a container in your own Railway account: you can close the laptop, and the result comes back as a branch you open in Design.
What you need
- A Railway account.
- The project on GitHub: the runner clones it from there.
- A Claude token for the runner (made with
claude setup-token). - Figma connected for the runner (recommended).
- An active plan with a loop left, as for any build.
- Everything a build on your Mac needs: devlooper checks your Mac first, then hands the build to Railway.
Set it up once
- Open Settings → Remote and click Connect Railway. Sign in to Railway and pick the workspace. devlooper creates a service called
devlooper-runnerthere. - In a terminal, run
claude setup-token. Paste the whole token under Settings → Remote and click Save to runner. - Click Connect Figma under Remote. Without it, the runner reads designs without effects, variables or Dev Mode context.
Start a build
- Open the project's Loop.
- Set Runs on to Railway. The choice is remembered for the project.
- Click Start, then Start on Railway. devlooper first saves your unsaved changes and sends them to GitHub, so the runner builds what you see.
The build shows in the top bar and in Loop like a local one: scores, screenshots and the log. Every section that passes is pushed to the build's own branch, so nothing is lost if it stops.
Get the result
- Get it and open Design brings the result to your Mac and opens it. Save or send your own unsaved changes first; devlooper never overwrites them.
- Stop build stops the container (it asks first). Resume carries on from the sections already pushed.
- Logs in Railway opens the service in Railway's dashboard.
A build stops by itself after 12 hours.
Where Railway can differ from your Mac
- File name case matters on Linux: an import whose case differs from the file works on a Mac and fails on the runner.
- Fonts that exist only on macOS render with a fallback, so scores can differ slightly.
- Private npm registries from your own
~/.npmrcare not sent; a.npmrcin the repository works. - Git submodules and Git LFS are not fetched.