Docs
Reference

Railway

Move variables to and from a Railway environment.

Move variables to and from a Railway environment.

The connection

WhatThis provider
VendorRailway
Keyrailway-vars
Availabilityavailable. You can connect it today.
Credential penv holdsrailway-token
Values read backyes
Activationon-request

What it moves

DirectionWhat it does
importReads names and values out of the store into penv.
exportWrites names and values from penv into the store.

When a written value goes live

on-request. A new value waits there. penv can deploy to activate it, and the sync form asks you first.

What happens to a name that exists

DirectionPolicies you can pick
importskip_existing, new_version, fail
exportcreate_only, overwrite, overwrite_and_prune

How syncs work says what each one does.

How you connect

You paste a credential you already hold. penv seals it and never shows it again.

FieldLabelKindRequiredWhat it is
tokenTokensecret, masked here and sealedyes

What a mapping asks for

Answered once per environment you map.

FieldLabelKindRequiredAdvancedWhat it is
projectIdProjecttextyesnoThe project's id, from its URL in the Railway dashboard.
environmentIdEnvironmenttextyesnoRailway's own environment id. Production and staging are different ids.
serviceIdServicetextnoyesLeave empty to write the environment's shared variables instead of one service's.
deployAfterSyncRedeploy after each syncyes or noyesyesOff, values wait for your next deploy. On, Railway redeploys this service immediately. Starts at false.

Permissions it needs

penv probes for these when it verifies the connection.

PermissionDirectionsBlockingWithout it
me:readevery directionyesWe cannot confirm which Railway account this token belongs to.
variables:readimportyesImport cannot read variable values.
variables:writeexportyesExport cannot write anything.