---
title: "Deploy hip4-mm-runner-template"
description: "Self-hosted Hyperliquid HIP-4 market maker runner for hip4.ag."
category: "Bots"
url: https://railway.com/deploy/hip4-mm-runner-template
---

# Deploy hip4-mm-runner-template

Self-hosted Hyperliquid HIP-4 market maker runner for hip4.ag.

**[Deploy hip4-mm-runner-template on Railway](https://railway.com/template/hip4-mm-runner-template)**

Machine-readable deploy manifest (JSON, validated by TemplateCI): https://railway.com/deploy/hip4-mm-runner-template/manifest.json

- **Creator:** Freak's Projects
- **Category:** Bots

## Template content

### hip4-mm-runner

- **Image:** ghcr.io/hip4-ag/mm-runner:latest
- **Health check:** /health
- **Public domain:** Yes

## Documentation

# Deploy and Host hip4.ag Market Maker Runner on Railway

Deploy a self-hosted Hyperliquid HIP-4 market maker runner for [hip4.ag/mm](https://hip4.ag/mm) on your own Railway account. The runner uses a Hyperliquid Agent API key (trade/cancel only, never withdraws) and connects directly to Hyperliquid with built-in pre-game exit rails, loss stops, and a dead man's switch.

## About Hosting hip4.ag Market Maker Runner

This runner places resting post-only bids behind the best bid on Hyperliquid HIP-4 outcome markets using the settings you choose on [hip4.ag/mm](https://hip4.ag/mm). All keys and state stay inside your own Railway service and mounted `/data` volume — hip4.ag never holds or sees your agent private key. For lowest latency to Hyperliquid's matching engine in Tokyo, deploy in **Asia-Southeast (Singapore)** and isolate risk with a dedicated Hyperliquid subaccount (`MM_TARGET`).

## Why Deploy hip4.ag Market Maker Runner on Railway

- **Fast 1-click container deploy** from the open-source [HIP4-ag/mm-runner](https://github.com/HIP4-ag/mm-runner) image with persistent `/data` state storage.
- **Dedicated egress IP and uptime** so your WebSocket book feed, exit logic, and dead man's switch keep running even when your computer sleeps.
- **Full self-custody** via Hyperliquid's Agent API — revoke the agent key anytime from Hyperliquid.

## Common Use Cases

- Participating in Outcome / Monarch HIP-4 liquidity reward campaigns with your own budget, sport family weights, and risk limits.
- Running isolated market-making sessions from a dedicated Hyperliquid subaccount (`MM_TARGET`) with optional Discord or Telegram webhook alerts (`MM_WEBHOOK_URL`).
- Monitoring live quotes, daily net P&L, and pre-game exits from [hip4.ag/mm](https://hip4.ag/mm).

## Dependencies for hip4.ag Market Maker Runner Hosting

- A funded Hyperliquid account (a dedicated subaccount is strongly recommended) and an approved Hyperliquid Agent API key created on [hip4.ag/mm](https://hip4.ag/mm).
- A persistent Railway volume mounted at `/data` with `RAILWAY_RUN_UID=0`.

### Deployment Dependencies

- `MM_OWNER` (required): Your main Hyperliquid wallet address (pre-filled automatically from hip4.ag/mm).
- `MM_AGENT_KEY` (required): Agent private key generated on hip4.ag/mm (trade/cancel only; cannot withdraw).
- `RAILWAY_RUN_UID` (required): Set to `0` so the runner can write to the `/data` volume.
- `MM_TARGET` (optional, recommended): Dedicated Hyperliquid subaccount address.
- `MM_WEBHOOK_URL` (optional): HTTPS Discord or Telegram webhook URL for manual-exit and loss-stop alerts.


## Similar templates

- [Telegram JavaScript Bot](https://railway.com/deploy/5lRkWa) — A template for Telegram bot in JavaScript using grammY
- [Cobalt Tools [Updated Nov ’26]](https://railway.com/deploy/cobalt) — Cobalt Tools [Nov ’26] (Media Downloader, Converter & Automation) Self Host
- [Telegram Gateway](https://railway.com/deploy/railway-telegram-gateway) — Multi-bot Telegram webhook gateway with WebSocket event streaming

Open this page in a browser: https://railway.com/deploy/hip4-mm-runner-template
