Skip to main content
After creating your codebase, the next step is to get it up and running on Railway.
  1. Make sure you are in the agent-infra-railway directory. If you are not, run the following command:
  cd agent-infra-railway
  1. Install the Railway CLI (More details here):
brew install railway
  1. Login to your Railway account:
railway login
Note: Remember to either export the OPENAI_API_KEY environment variable.
  1. Run the deployment script:
./scripts/railway_up.sh
  1. Monitor the deployment (Optional):
railway logs --service agent_os
  1. Access the application via the Railway UI:
railway open
  1. In the CLI, you will see the domain of your application. Click on it to access your AgentOS FastAPI server. You can navigate to <railway-domain>/docs to access the API documentation.
  2. On Agno AgentOS UI, connect your OS with the domain you just created.
  • Open the Agno AgentOS UI.
  • Connect your OS with <railway-domain> as the endpoint.

Updating your Railway Deployment

To update your Railway deployment, you can run the following command after making changes to the application:
terminal
railway up --service agent_os -d
This will trigger a new deployment of your application by creating a new docker image and deploying it to Railway.

Stopping your Railway Deployment

To stop your Railway deployment, you can run the following command:
terminal
railway down --service agent_os
railway down --service pgvector

Next

Congratulations on running your Agent Infra Railway in production!