---
title: "Deploy OpenFuse"
description: "CopilotKit's personal AI agent with its own browser, always on."
category: "AI/ML"
url: https://railway.com/deploy/openfuse
---

# Deploy OpenFuse

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

**[Deploy OpenFuse on Railway](https://railway.com/template/openfuse)**

Machine-readable deploy manifest (JSON, validated by TemplateCI): https://railway.com/deploy/openfuse/manifest.json

- **Creator:** win-with-web's Projects
- **Category:** AI/ML
- **Total deploys:** 1

## Template content

### openfuse-browser https://raw.githubusercontent.com/ashutoshanand13/openfuse-railway/main/icon.png

- **Source:** ashutoshanand13/openfuse-railway

### openfuse-api https://raw.githubusercontent.com/ashutoshanand13/openfuse-railway/main/icon.png

- **Source:** ashutoshanand13/openfuse-railway
- **Health check:** /api/health
- **Public domain:** Yes

### openfuse-web https://raw.githubusercontent.com/ashutoshanand13/openfuse-railway/main/icon.png

- **Source:** ashutoshanand13/openfuse-railway
- **Health check:** /
- **Public domain:** Yes

## Documentation

# Deploy and Host OpenFuse on Railway

Run [OpenFuse](https://github.com/CopilotKit/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`, 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

- 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-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`:

| 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

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.


## Similar templates

- [Chat Chat](https://railway.com/deploy/-WWW5r) — Chat Chat, your own unified chat and search to AI platform.
- [Weaviate](https://railway.com/deploy/weaviate-1) — Vector database with hybrid search and an API key-protected API
- [Möbius Personal AI OS](https://railway.com/deploy/mobius-v01-personal-ai-os) — Self-hosted AI agent that builds and runs apps for you, with memory.

Open this page in a browser: https://railway.com/deploy/openfuse
