Hosting · Integration · New in 0.4.0

Railway cost tracking: invoices and this period's usage

See what Railway costs next to the rest of your stack: closed billing periods from your invoices, and the period so far, estimated per project.

What Burnstack tracks

  • Closed billing periods from your Railway invoice totals, spread evenly over each period's days: what you were billed
  • The current period per project, estimated from CPU, memory, volume and egress usage at Railway's list prices (Railway pricing) and marked est. The invoice replaces it once the period closes
  • Usage of deleted projects too, so a removed service's cost doesn't vanish

Alerts

  • Vendor spend spike: a day above 2.5× Railway's 14-day median. Invoices are spread evenly, so spikes show up in the current period's daily estimates

The key you'll need

A workspace token, created at railway.com/account/tokens with your workspace picked in the dropdown; it reaches only that workspace (Railway docs). Railway tokens have no scopes, so it could change anything in the workspace; Burnstack only sends read queries. Your role must be able to see billing. Project tokens can't read billing. An account token works too; if it sees several workspaces, paste WORKSPACE_ID:TOKEN.

Burnstack checks the key with Railway, shows the account it belongs to when Railway lets the key see it, and stores it in your computer's keychain (macOS Keychain or Windows Credential Manager). It only reads billing and usage.

Connect it: Railway

About 2 minEstimated

Need

  • Key: Workspace token
  • Plan: Any plan; your role must see the workspace's billing.
  • Permissions: Workspace: your workspace (a workspace token; no narrower scopes)

Create a token and pick the workspace to track in the Workspace dropdown (a workspace token). An account token ("No workspace") also works; if it sees several workspaces, paste WORKSPACE_ID:TOKEN. Project tokens can't read billing, and your role must be able to see the workspace's billing. Railway tokens can't be read-only: they can change anything you can, though Burnstack only reads. Closed billing periods use your invoice totals, spread over their days. The current period is estimated per project from Railway's undocumented usage query at list prices (est.), before your plan's included usage, and may stop working if Railway changes it.

Steps

Open Railway's key page ↗

  1. Open Account Settings → Tokens.
  2. Name the token Burnstack and pick the workspace in the Workspace dropdown.
  3. Create it and copy the token.
  4. Paste it into Burnstack (an account token that sees several workspaces: WORKSPACE_ID:TOKEN).

Paste it

In Burnstack: Connectors → Railway → Add key → paste → Validate & save. The key goes straight into your computer's keychain.

If it fails

Not Authorized
Project tokens can't read billing: use a workspace or account token. If it already is one, your role can't see the workspace's billing.
This token sees several workspaces
Paste WORKSPACE_ID:TOKEN; the error lists the workspaces and their ids.

Let your AI do the clicking not yet verified

Paste this into an AI assistant that can use your browser, such as Claude in Chrome. It opens Railway's key page and sets only the permissions above, then stops before the final button that creates the key.

Open https://railway.com/account/tokens in my browser. Name the new token 'Burnstack' and in the Workspace dropdown pick the workspace I want to track (not 'No workspace'). Railway has no expiry setting for this token, so skip that. Stop before clicking 'Create' (the final button that creates the token) and tell me it's ready. I'll click it, copy the token and paste it into Burnstack myself. Don't copy, read or paste the token, and don't grant broader access or change any other setting. If Railway asks me to sign in or confirm with 2FA, wait for me.

The key never passes through the AI: you click that last button yourself, copy the key and paste it into Burnstack.

What you'll see

  • Estimated: Estimated from Railway's usage at list prices, marked est. in Burnstack.
  • History: All invoices; usage estimates for the current period.
  • Delay: Closed periods use the invoice; the current period is estimated at each sync.

Good to know

  • Undocumented: Railway's public API docs cover the endpoint, tokens and rate limits, but not invoices or usage (Railway docs). Burnstack uses fields from the GraphQL schema Railway publishes, which can change without notice. If the usage query breaks, invoices still sync.
  • The current period's estimate leaves out the subscription fee and the usage it includes ($5 on Hobby, $20 on Pro, Railway pricing), so a small Hobby workspace reads lower than its bill. Backups, VM (sandbox) rates and Enterprise pricing aren't modeled.
  • Invoices are workspace totals: closed periods have no split per project.
  • Railway's billing periods start on your subscription date, not the 1st. Days at a period boundary can keep their estimate; re-sync the connector from scratch to replace them all with the invoice.
Burnstack Connectors, Add cost source tab: a search box, category filters and one card per vendor with its key steps

One bill, not a dashboard per vendor

Burnstack puts Railway next to the rest of your spend and lets you group it by product with applications. Other integrations: Vercel, Neon, Supabase, OpenAI, Anthropic, GitHub, OpenRouter, DigitalOcean, Twilio, Stripe fees, Cloudflare, Netlify, AWS, Datadog, Sentry, Cursor, PlanetScale, Azure, Google Cloud, MongoDB Atlas, Render, Heroku, Akamai (Linode), Vultr, Fastly, Runpod, xAI, Together AI, fal.ai, Runway, Upstash.

Railway questions

Why are some Railway costs marked est.?
Railway's invoice covers a period once it closes. Until then Burnstack prices the period's usage per project from Railway's list prices and marks it est. The invoice total replaces the estimate when the period closes.
Can I use a Railway project token?
No. Project tokens are scoped to one environment of one project and can't read workspace billing. Create a workspace token instead.

Start watching back.

Five minutes to connect your first vendor. Free for Mac, forever, and every byte stays yours.