---
title: "Deploy OpenHands"
description: "AI software-development agent with a web UI (Agent Canvas)"
category: "AI/ML"
url: https://railway.com/deploy/openhands-2
---

# Deploy OpenHands

AI software-development agent with a web UI (Agent Canvas)

**[Deploy OpenHands on Railway](https://railway.com/template/openhands-2)**

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

- **Creator:** zer0person's Projects
- **Category:** AI/ML
- **Total deploys:** 1

## Template content

### OpenHands

- **Image:** ghcr.io/openhands/agent-canvas:latest
- **Public domain:** Yes

## Documentation

# Deploy and Host OpenHands on Railway

[OpenHands](https://github.com/OpenHands/OpenHands) is an open-source AI software-development agent. In its web app, Agent Canvas, you describe a task and the agent writes code, runs commands and edits files in a sandbox.

## About Hosting OpenHands

This template runs the official `ghcr.io/openhands/agent-canvas` image with a persistent volume at `/root/.openhands`, so settings and conversation history survive redeploys. A random API key is generated for you. Open the service's Variables tab in Railway to read `LOCAL_BACKEND_API_KEY`, open the public URL (the UI is at `/canvas`), enter that key when asked, then add your LLM provider and API key in the settings. Anyone with the key can run commands in the container, so keep it secret.

## Common Use Cases

- Delegate coding tasks, bug fixes and refactors to an AI agent
- Run an always-on agent workspace reachable from any browser
- Try different LLM providers on the same task

## Dependencies for OpenHands Hosting

- One service with a volume; nothing else
- An API key for the LLM provider you want the agent to use, entered in the UI

### Deployment Dependencies

- [OpenHands on GitHub](https://github.com/OpenHands/OpenHands)
- [Self-hosting guide](https://github.com/OpenHands/OpenHands/blob/main/docs/SELF_HOSTING.md)

## Why Deploy OpenHands on Railway?

Railway gives you a public HTTPS URL, a persistent volume and automatic restarts with no server to maintain.


## 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 v0.1 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/openhands-2
