Deploy Open Executive
AI executive team: one persona backed by 8 specialist agents
openexecutive-api
Just deployed
openexecutive-ui
Just deployed
Deploy and Host Open Executive on Railway
Open Executive is an AI-powered virtual executive team: a single coherent executive persona backed by 8 specialist agents, with a FastAPI backend and a Next.js web app. It keeps episodic memory, a people roster, scheduled briefings and a company knowledge base, and can connect to Slack, Telegram, Google Workspace and Microsoft 365.
About Hosting Open Executive
This template runs the two official containers from the project's GitHub Container Registry:
- openexecutive-api: the FastAPI backend (port 8000), private only, reached by the UI over Railway's private network.
- openexecutive-ui: the Next.js web app (port 3000) with a public Railway domain. It proxies every API call server side.
- Volume mounted at
/dataon the API: SQLite episodic memory, ChromaDB vector index, company profile and uploaded documents. - Generated secrets:
BACKEND_SHARED_SECRET(shared by UI and API, gates every API route) andAUTH_SECRET(signs the UI session). - Auth: the API runs with
OE_PUBLIC_DEPLOYMENT=1, so it refuses to boot without the shared secret. The UI redirects every page to/signin, which accepts only Google or OpenID Connect sign-ins whose verified email is onALLOWED_EMAILS(or the People roster).
After deploy:
- In Google Cloud Console create an OAuth client (Web application). Add
https://YOUR-RAILWAY-DOMAINas an authorized JavaScript origin andhttps://YOUR-RAILWAY-DOMAIN/api/auth/callback/googleas an authorized redirect URI. - On the openexecutive-ui service set
AUTH_GOOGLE_ID,AUTH_GOOGLE_SECRETandALLOWED_EMAILS(your email). For SSO instead, setAUTH_OIDC_ISSUER,AUTH_OIDC_IDandAUTH_OIDC_SECRETwith the redirect URIhttps://YOUR-RAILWAY-DOMAIN/api/auth/callback/oidc. - Make sure
ANTHROPIC_API_KEYandEXEC_EMAIL_ADDRESSare set on openexecutive-api (asked at deploy time). - Open
https://YOUR-RAILWAY-DOMAIN, sign in, and run the onboarding wizard. A "no company profile" message before onboarding is expected. - Optional integrations (Slack, Telegram, Google Workspace, Microsoft 365, Honcho) are configured with extra variables on openexecutive-api; see the project's
.env.example.
Common Use Cases
- A founder or executive delegating briefings, follow-ups and inbox triage to an AI chief of staff
- A small company keeping institutional memory: people, decisions, documents and commitments in one place
- Scheduled morning and end-of-day briefings and goal reviews
- Drafting replies and meeting actions across Gmail, Outlook, Slack and Telegram with human approval
Dependencies for Open Executive Hosting
- Source: ForeactLabs/OpenExecutive (Apache-2.0)
- Images:
ghcr.io/foreactlabs/openexecutive-api:mainandghcr.io/foreactlabs/openexecutive-ui:main - Required: an Anthropic API key, the Executive's email address, and a Google OAuth client or an OpenID Connect provider for sign-in
Deployment Dependencies
- Deployment guide
- Authentication guide
- Anthropic Console (API keys)
- Google Cloud Console (OAuth clients)
Implementation Details
- The project publishes rolling
mainimages (no release tags are on the registry yet), so the template tracksmain. Pin asha-...tag on both services if you want a frozen version. - The API must run exactly one replica: the scheduler has no leader election. Do not scale it horizontally.
- The API has no public domain; the UI reaches it at
http://openexecutive-api.railway.internal:8000over Railway's private network. - Healthcheck
/healthwith a 300 second timeout: a cold start builds the vector index before serving. Give the API at least 2 GB of memory. AUTH_URLis set to the UI's public Railway domain so sign-in redirects return to the right host; update it if you attach a custom domain, together withBACKEND_ALLOWED_ORIGINSon the API.- Signed callers (
CALLER_ASSERTION_PRIVATE_KEY/CALLER_ASSERTION_PUBLIC_KEYS) are recommended by the project but need an Ed25519 key pair made withscripts/make-caller-keys.py; add them after deploy. - Back up
/data/episodic_memory.dbwithsqlite3 .backup; it is the part you cannot rebuild.
Why Deploy Open Executive 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 Open Executive 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
openexecutive-api
ghcr.io/foreactlabs/openexecutive-api:mainANTHROPIC_API_KEY
Anthropic API key used for every agent call. Required; the API will not start without it.
EXEC_EMAIL_ADDRESS
The Executive's own mailbox address (e.g. exec@yourcompany.com). Required; used for Gmail/Outlook identity.
openexecutive-ui
ghcr.io/foreactlabs/openexecutive-ui:main
