Deploy LoopForge
Self-hosted coding-agent workflows with approval gates, on MySQL
LoopForge
Just deployed
/data
MySQL
Just deployed
/var/lib/mysql
Deploy and Host LoopForge on Railway
LoopForge is Tencent's open-source, self-hosted workspace for delivering software with coding agents. Teams chat with agents such as CodeBuddy, Codex and Claude Code, turn requirements into repeatable SOP workflows that mix scripts, agent roles and human approval gates, and review runs, logs and code changes in one browser UI.
About Hosting LoopForge
Hosting LoopForge means running its Go platform (web UI, API and workflow engine) next to a MySQL 8.4 database, keeping both on persistent storage, and protecting the first administrator account. This template builds LoopForge 0.4.0 from upstream's official image pinned by digest, adds MySQL 8.4.13 on its own volume, and wires them over Railway's private network. On first start it creates the admin account with a generated password, turns self sign-up off, and loads upstream's starter SOPs and welcome project. Railway has no Docker socket, so AI SOPs run on an execution machine you connect from the LoopForge UI.
Common Use Cases
- Run coding agents on your repositories through reviewed SOP workflows with approval gates
- Give a small team one shared place for requirements, agent runs, logs and delivered changes
- Coordinate several agent CLIs (CodeBuddy, Codex, Claude Code) with per-user keys on connected execution machines
Dependencies for LoopForge Hosting
- MySQL 8.4 (included as a service with its own volume)
- An execution machine with Docker or the agent CLIs for AI runs, connected from the LoopForge UI
Deployment Dependencies
- LoopForge source and docs: https://github.com/Tencent/LoopForge
- Release v0.4.0: https://github.com/Tencent/LoopForge/releases/tag/v0.4.0
- Deployment guide: https://github.com/Tencent/LoopForge/blob/v0.4.0/docs/deployment.md
- Template repository: https://github.com/aalfath/loopforge-railway-template
Implementation Details
- Sign in as
adminwith theLOOPFORGE_ADMIN_PASSWORDvalue from the LoopForge service's Variables tab. Change it later in Platform administration; editing the variable after the first start has no effect. - Self sign-up is off. Add
AGENTFLOW_ALLOW_SIGNUP=trueto let visitors create accounts, or create them as the administrator. Every account can see every project, so only invite people you trust. - Without a Docker socket, the web UI, API, SOP designer, approvals and script steps run on Railway. For AI SOPs and conversation workspaces, open Execution machines in LoopForge, copy the binding command and run it on a Linux or macOS host. Model keys go in each user's personal settings.
- Data lives on two volumes:
/data(workspaces, sessions, CLI state) and/var/lib/mysql.
Why Deploy LoopForge 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 LoopForge 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.
Template Content
LoopForge
aalfath/loopforge-railway-templateMySQL
mysql:8.4.13
