Deploy OpenFuse

CopilotKit's personal AI agent with its own browser, always on.

Deploy OpenFuse

Just deployed

/data

Just deployed

/data

Just deployed

Deploy and Host OpenFuse on Railway

Run OpenFuse, CopilotKit's open-source personal agent, on Railway. It has its own browser, files and tasks, and it stays on, so you can hand it work from your phone and come back to the results.

About Hosting OpenFuse

OpenFuse is a personal AI agent with a chat app, a private Chromium browser it can read pages and take screenshots with (and that you can take control of), saved documents, and background tasks that keep running after you close the app. Every email send or calendar change waits for your review.

This template deploys three services, the same layout as OpenFuse's own Render blueprint:

ServiceWhat it runsPublic?
openfuse-apiThe Hono API and the task worker, with a volume for the database, files and keys.Yes (the web app calls it)
openfuse-webThe Expo web app, served as static files.Yes (open this one)
openfuse-browserPlaywright and Chromium for page reads, screenshots and Take control.No, private network only

Common Use Cases

  • A personal research agent: "find the official setup steps for X and cite the sources."
  • Background tasks that keep going when your phone is locked.
  • Reading and drafting email and calendar changes, with every send reviewed by you (needs your own Google OAuth app).
  • A self-hosted alternative to hosted personal agents, with your data on your own volume.

Dependencies for OpenFuse Hosting

  • A Railway account.
  • A free CopilotKit Intelligence project key. On your computer, run npx copilotkit@latest login, then npx copilotkit@latest project select, and copy CPK_INTELLIGENCE_API_KEY (and CPK_TELEMETRY_ID) from the .env it writes. The free tier includes monthly interactions. OpenFuse won't start without this key.
  • A model key: OPENAI_API_KEY for the default openai/gpt-5, or change MODEL and set the matching Anthropic or Google key.

Deployment Dependencies

Implementation Details

  • The services build from upstream OpenFuse at a pinned commit, so a breaking change upstream doesn't reach new deploys until the template is bumped and re-tested.
  • openfuse-api runs in live mode, behind Railway's proxy (TRUST_PROXY=true), as an unprivileged user. It creates the 32-byte credential encryption key on first start and keeps it on its volume.
  • The web app's API address is baked in at build time from openfuse-api's Railway domain. If you add a custom domain to the API, redeploy openfuse-web.
  • The API reaches the browser over Railway's private network with a generated token.

Variables on openfuse-api:

VariableRequiredPurpose
OPENFUSE_ACCESS_KEYyesYour sign-in key, generated at deploy (32 characters).
CPK_INTELLIGENCE_API_KEYyesCopilotKit Intelligence project key (see above).
CPK_TELEMETRY_IDnoThe identity created by the same project selection.
MODELyesDefault openai/gpt-5. Use provider/model-id.
OPENAI_API_KEYfor OpenAI modelsModel provider key.
ANTHROPIC_API_KEY, GOOGLE_API_KEYnoAdd one if you switch MODEL to that provider.
GOOGLE_CLIENT_ID, GOOGLE_CLIENT_SECRETnoFor Gmail and Calendar. Redirect URI: https:///api/google/callback.
TOKEN_ENCRYPTION_KEYnoLeave empty: it's generated and kept on the volume.
WEB_SEARCH_ENABLEDnoSet to false to turn off the built-in public web search.

How to Use OpenFuse After Deployment

  1. Wait until all three services are live. The first build takes several minutes.
  2. On openfuse-api, open Variables and copy OPENFUSE_ACCESS_KEY.
  3. Open the openfuse-web URL and sign in with that key.
  4. Send a message, for example: "Find the official CopilotKit React Native setup instructions and cite the sources."

If the API keeps restarting, its logs will say which key is missing. Usually it's CPK_INTELLIGENCE_API_KEY.

Resource use measured on Railway: about 860 MB of memory across the three services (API about 380 MB, browser about 460 MB, web about 24 MB), low CPU when idle. That's roughly US$9–11 a month at Railway's list prices.

Why Deploy OpenFuse 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 OpenFuse 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.


This template is a community wrapper and is not made by CopilotKit. OpenFuse is © its authors under the MIT licence. OpenFuse is alpha software and sends runtime telemetry to CopilotKit by default; see its docs/TELEMETRY.md for opt-outs.


Template Content

More templates in this category

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

okisdev
118
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.

Tracklayer
4