Replace / Replit
Best free Replit alternatives (open source, self-hosted) 2026
The best open-source alternative to Replit is OpenHands (or Coder) with code-server, self-hosted on Railway. An AI coding agent you host. OpenHands is MIT; Coder is AGPL-3.0 workspaces — Replit without the cloud IDE seat.
Estimated save $1,200 a year.
Open the stackStart on Railway
How Replit compares
| Replit | OpenHands / Coder | |
|---|---|---|
| Pricing model | Hosted subscription | Open-source or fair-code license; you pay the host |
| Hosting | Vendor cloud | Self-hosted on Railway or any VPS |
| Rough monthly cost | Public list price not verified this run | Hosting only — no SaaS seat meter in this repo |
- OpenHands
MIT AI-driven development agent you self-host
- Coder
AGPL-3.0 workspaces if the job is the remote IDE
- code-server
MIT VS Code in the browser on one box
FAQ
- What is the best free open-source Replit alternative?
- The best open-source alternative to Replit is OpenHands (or Coder) with code-server, self-hosted on Railway. An AI coding agent you host. OpenHands is MIT; Coder is AGPL-3.0 workspaces — Replit without the cloud IDE seat.
- Is it free?
- The OpenHands / Coder licenses are open source or fair-code. You still pay hosting (Railway or any VPS) and any APIs the stack calls. There is no Replit seat or task bill on this path.
- Can I migrate from Replit?
- Yes. Start with the workflows or data you actually use, then cut over. The OpenHands / Coder stack page has the agent prompt and the cost table; most teams rebuild the slice that matters and leave old Replit links until they expire.
- How do I deploy it?
- Open the OpenHands / Coder stack, copy the agent prompt, and deploy on Railway (one service, PORT, and a volume when the app needs disk). 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.
- What does this replace?
- Replit. The published small-team estimate on this stack is $1,200 a year.
Related pages
Stack of the Week
Get one stack a week that replaces a SaaS bill.