Deploy Open Executive

AI executive team: one persona backed by 8 specialist agents

Deploy Open Executive

Just deployed

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 /data on 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) and AUTH_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 on ALLOWED_EMAILS (or the People roster).

After deploy:

  1. In Google Cloud Console create an OAuth client (Web application). Add https://YOUR-RAILWAY-DOMAIN as an authorized JavaScript origin and https://YOUR-RAILWAY-DOMAIN/api/auth/callback/google as an authorized redirect URI.
  2. On the openexecutive-ui service set AUTH_GOOGLE_ID, AUTH_GOOGLE_SECRET and ALLOWED_EMAILS (your email). For SSO instead, set AUTH_OIDC_ISSUER, AUTH_OIDC_ID and AUTH_OIDC_SECRET with the redirect URI https://YOUR-RAILWAY-DOMAIN/api/auth/callback/oidc.
  3. Make sure ANTHROPIC_API_KEY and EXEC_EMAIL_ADDRESS are set on openexecutive-api (asked at deploy time).
  4. Open https://YOUR-RAILWAY-DOMAIN, sign in, and run the onboarding wizard. A "no company profile" message before onboarding is expected.
  5. 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:main and ghcr.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

Implementation Details

  • The project publishes rolling main images (no release tags are on the registry yet), so the template tracks main. Pin a sha-... 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:8000 over Railway's private network.
  • Healthcheck /health with a 300 second timeout: a cold start builds the vector index before serving. Give the API at least 2 GB of memory.
  • AUTH_URL is 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 with BACKEND_ALLOWED_ORIGINS on the API.
  • Signed callers (CALLER_ASSERTION_PRIVATE_KEY / CALLER_ASSERTION_PUBLIC_KEYS) are recommended by the project but need an Ed25519 key pair made with scripts/make-caller-keys.py; add them after deploy.
  • Back up /data/episodic_memory.db with sqlite3 .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

More templates in this category

View Template
Chat Chat
Chat Chat, your own unified chat and search to AI platform.

okisdev
117
View Template
Weaviate
Vector database with hybrid search and an API key-protected API

GitHub Locker
1
View Template
Möbius Personal AI OS
Self-hosted AI agent that builds and runs apps for you, with memory.

bento
1