Railway

Deploy CrewAI Studio

Collaborative AI workflows, data analysis, and management.

Deploy CrewAI Studio

/var/lib/postgresql/data

Just deployed

Deploy and Host CrewAI Studio on Railway

CrewAI Studio is a Streamlit-based interface for building and managing collaborative AI workflows with CrewAI. It provides tools for AI task collaboration, data analysis, visualization, and data management, backed by PostgreSQL for persistent application data.

About Hosting CrewAI Studio

Hosting CrewAI Studio on Railway involves deploying the Streamlit application alongside a PostgreSQL database. The application is provided as a Docker image and runs on HTTP port 8501, while PostgreSQL provides persistent relational storage. On Railway, the application can connect directly to the PostgreSQL service using Railway reference variables rather than hardcoded database hostnames or credentials. Once deployed, you can expose CrewAI Studio through a Railway-generated domain and configure the required LLM provider API keys for your AI workflows.

Common Use Cases

  • Building and managing collaborative CrewAI workflows and AI agents
  • Performing data analysis and visualization through a Streamlit interface
  • Managing application data and AI workflow information with PostgreSQL

Dependencies for CrewAI Studio Hosting

  • CrewAI Studio — deployed from the tham0nk/crewai-studio:latest Docker image and served on port 8501
  • PostgreSQL — required for application data storage and persistence

Deployment Dependencies

Implementation Details

CrewAI Studio connects to PostgreSQL through the DB_URL environment variable. On Railway, use a service reference instead of the original Zeabur Docker hostname:

DB_URL=${{PostgreSQL.DATABASE_URL}}

The application can also be configured with LLM provider credentials, depending on the models you intend to use:

OPENAI_API_KEY=
ANTHROPIC_API_KEY=
GOOGLE_API_KEY=
MODEL=

The CrewAI Studio service should expose port 8501. PostgreSQL should remain private within the Railway project, while CrewAI Studio can be given a public Railway domain for browser access.

Why Deploy CrewAI Studio on Railway?

Railway is a singular platform to deploy your infrastructure stack. Railway will host your infrastructure so you don't have to deal with configuration, while allowing you to vertically and horizontally scale it.

By deploying CrewAI Studio on Railway, you are one step closer to supporting a complete full-stack application with minimal burden. Host your servers, databases, AI agents, and more on Railway.


Template Content

More templates in this category

View Template
Rocky Linux
[Jul'26] Hosted Rocky Linux 9 workspace with SSH and persistent storage. 🚀

codestorm
38
View Template
Foundry Virtual Tabletop
A Self-Hosted & Modern Roleplaying Platform

Lucas
71
View Template
Letta Code Remote
Run a Letta Code agent 24/7. No inbound ports, just deploy.

Letta
51