# OpenHands / Coder

An AI coding agent you host. OpenHands is MIT; Coder is AGPL-3.0 workspaces — Replit without the cloud IDE seat.

**Replaces:** Replit

**Tier:** Medium

## Problem

Replit is a hosted IDE plus an agent that writes in their cloud. You wanted that loop on hardware you control. OpenHands is MIT (OpenHands/OpenHands — formerly OpenDevin): a software-engineer agent in a sandbox you run. Coder is AGPL-3.0 workspaces; code-server is MIT VS Code in the browser — already the Codespaces path. Continue, Aider, and Cline stay the editor/CLI assistants (/replace/cursor). This is not Replit's every template, hosted model, or Ghostwriter SKU. You still pay tokens or a GPU.

## Stack

- [OpenHands](https://openhands.dev) — MIT AI-driven development agent you self-host
- [Coder](https://coder.com) — AGPL-3.0 workspaces if the job is the remote IDE
- [code-server](https://github.com/coder/code-server) — MIT VS Code in the browser on one box

## Estimated SaaS cost saved

| You stop paying | Typical / year | Self-host instead |
|---|---:|---|
| Replit (small team) | $1,200 | OpenHands + a sandbox you run |

**About $1,200 / year** on a small team, before you count lock-in.

## Deploy on Railway

Placeholder: OpenHands wants a sandbox runtime (Docker or a VM). Coder is a control plane for workspaces. A single tiny Railway service is often the wrong size. No one-click template in this repo yet — Start on Railway. Editor assistants stay on /stacks/continue-copilot.

[Start on Railway](https://c17.io/go/railway/openhands-dev?from=%2Fstacks%2Fopenhands-dev.md)

[Continue / Aider if this is the editor assistant, not a Replit-shaped agent](https://c17.io/stacks/continue-copilot)

## AGENT_PROMPT

```
Replace Replit Agent with OpenHands on a machine you control. Pair Coder or code-server if you also want the remote IDE.

- Follow openhands.dev self-host docs. Persist workspace data. Point at LiteLLM or Ollama. Do not claim Replit's hosted model catalog.
- Codespaces-shaped editors stay on /stacks/coder-workspaces. Continue/Aider stay on /stacks/continue-copilot.
- Write AGENT_PROMPT.md.
```

## FAQ

### OpenHands or Continue?

OpenHands if you want a Replit-shaped agent in a sandbox. Continue/Aider/Cline if you want the editor or terminal assistant — /replace/cursor.

### Is this GitHub Codespaces?

No. Codespaces is /replace/github-codespaces (Coder / code-server). Replit is the cloud IDE plus an agent.

### Do I still pay a model vendor?

Yes, unless you run local weights. OpenHands is the agent. It is not free inference.

Source: https://c17.io/stacks/openhands-dev
