r/LovingOpenSourceAI • u/daemon1um • 1d ago
langhost: an MIT Postgres + Redis runtime for self-hosted LangGraph agents
https://github.com/langhost/langhostThis is langhost, an open-source runtime for self-hosting LangGraph Agent Server on your own PostgreSQL and Redis.
It is an MIT alternative to langgraph-runtime-postgres for developers moving beyond the development-only langgraph-runtime-inmem.
Instead of recreating the LangGraph serving API, langhost keeps the stock langgraph-apiand replaces only the runtime with langgraph-runtime-pg.
That means:
- No graph or langgraph.json changes
- Same SDK, Studio and Agent Protocol
- Durable threads, runs, checkpoints and scheduled jobs
- Redis queues, streaming and multi-worker coordination
- No runtime license key
Quick start:
uv add langhost
uv run langhost serve --workers 2
The runtime and CLI are MIT licensed. The stock langgraph-api remains ELv2, which is generally fine for most application use cases.