Deploy OpenFuse
CopilotKit's personal AI agent with its own browser, always on.
openfuse-browser
Just deployed
/data
openfuse-api
Just deployed
/data
openfuse-web
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:
| Service | What it runs | Public? |
|---|---|---|
openfuse-api | The Hono API and the task worker, with a volume for the database, files and keys. | Yes (the web app calls it) |
openfuse-web | The Expo web app, served as static files. | Yes (open this one) |
openfuse-browser | Playwright 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, thennpx copilotkit@latest project select, and copyCPK_INTELLIGENCE_API_KEY(andCPK_TELEMETRY_ID) from the.envit writes. The free tier includes monthly interactions. OpenFuse won't start without this key. - A model key:
OPENAI_API_KEYfor the defaultopenai/gpt-5, or changeMODELand set the matching Anthropic or Google key.
Deployment Dependencies
- OpenFuse: https://github.com/CopilotKit/openfuse (MIT licence), built from a pinned commit
- CopilotKit: https://github.com/CopilotKit/CopilotKit
- Playwright: https://playwright.dev
- Caddy: https://caddyserver.com
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-apiruns 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, redeployopenfuse-web. - The API reaches the browser over Railway's private network with a generated token.
Variables on openfuse-api:
| Variable | Required | Purpose |
|---|---|---|
OPENFUSE_ACCESS_KEY | yes | Your sign-in key, generated at deploy (32 characters). |
CPK_INTELLIGENCE_API_KEY | yes | CopilotKit Intelligence project key (see above). |
CPK_TELEMETRY_ID | no | The identity created by the same project selection. |
MODEL | yes | Default openai/gpt-5. Use provider/model-id. |
OPENAI_API_KEY | for OpenAI models | Model provider key. |
ANTHROPIC_API_KEY, GOOGLE_API_KEY | no | Add one if you switch MODEL to that provider. |
GOOGLE_CLIENT_ID, GOOGLE_CLIENT_SECRET | no | For Gmail and Calendar. Redirect URI: https:///api/google/callback. |
TOKEN_ENCRYPTION_KEY | no | Leave empty: it's generated and kept on the volume. |
WEB_SEARCH_ENABLED | no | Set to false to turn off the built-in public web search. |
How to Use OpenFuse After Deployment
- Wait until all three services are live. The first build takes several minutes.
- On
openfuse-api, open Variables and copyOPENFUSE_ACCESS_KEY. - Open the
openfuse-webURL and sign in with that key. - 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
openfuse-browser
ashutoshanand13/openfuse-railwayopenfuse-api
ashutoshanand13/openfuse-railwayOPENAI_API_KEY
Your OpenAI API key for the default model. Stays on the server.
CPK_INTELLIGENCE_API_KEY
Free CopilotKit Intelligence project key, required. Run npx copilotkit@latest login, then npx copilotkit@latest project select, and copy it from the .env file it writes.
openfuse-web
ashutoshanand13/openfuse-railway
