Deploy on Railway
Railway gives your server a public HTTPS address. Your AI client and anyone you invite can reach it. You need a Railway account, Git, and Node.js to install the Railway CLI. Hosting is billed by Railway.
Deploy from your terminal
Choose your username and replace choose-a-long-password with a password of at least 12 characters before running:
npm install -g @railway/cli
railway login
git clone https://github.com/dusanstanojeviccs/open-artifact.git
cd open-artifact
railway init --name open-artifact
railway environment production
railway add --service open-artifact \
--variables 'ARTIFACT_USERNAME=admin' \
--variables 'ARTIFACT_PASSWORD=choose-a-long-password'
railway volume add --mount-path /data
railway domain --port 3000
railway up --detachrailway login opens your browser. Select your workspace when asked. railway init creates the project and its production environment; the next command selects that environment.
The commands create the service, set your admin login, attach a persistent volume, generate a domain, and deploy the repository’s Dockerfile. railway up --detach uploads the code and starts the build. Follow it with railway logs --build, or open railway open to see the deployment in the dashboard.
Once the deployment is ready, open the HTTPS address printed by railway domain and sign in. The server reads Railway’s public domain automatically. You do not need a host, data-directory, or API-token setting.
Then connect your AI with that address plus /mcp.
Set up from the dashboard
Create a project from the repository (opens in a new tab), or your fork. Keep the root directory at the repository root so Railway builds Dockerfile.
- Set
ARTIFACT_USERNAMEandARTIFACT_PASSWORDin the service’s Variables tab. - Add a volume mounted at
/data. - Generate a public domain in Settings → Networking, with target port
3000. - Deploy the changes, then open the domain and sign in.
The first deployment may fail before you add the login. Once configured, redeploy it. Keep one replica: artifacts use local SQLite databases and files. You do not need a separate database service.
For a custom domain, follow Railway’s DNS instructions and set PUBLIC_URL to that exact HTTPS origin. Railway’s generated domain needs no extra setting.
Keep your work
The /data volume keeps code, assets, and saved state through deployments. Do not remove it when updating. Set up volume backups and watch disk usage.
Before sharing your server, create an artifact that saves a value. Change that value, redeploy, and check that it is still there.
Troubleshooting
- Server exits: check the username and password. The password needs at least 12 characters.
- Origin error: open the generated Railway domain. With a custom domain, make sure
PUBLIC_URLmatches it exactly. - Data disappears: confirm the volume is attached at
/dataand you have one replica. - AI cannot connect: use the HTTPS address followed by
/mcp, then sign in through the browser.
See Railway’s CLI (opens in a new tab), volumes (opens in a new tab), and public networking (opens in a new tab) guides for platform settings.