# Heym

> A self-hosted runtime for agentic workflows — build agents on a visual canvas, run them from APIs, schedules and MCP, and inspect every execution, trace and model cost

- Category: Agents & Automation / Workflow Automation
- Language: Python
- Licence: MIT with the Commons Clause condition (source-available; selling Heym-derived products or services requires a commercial licence)
- Repository: https://github.com/heymrun/heym
- Website: https://heym.run
- Canonical page: https://ai-tldr.dev/tools/heym/
- Updated: 2026-09-30

## In short

Heym is a self-hosted runtime and platform for building, orchestrating, running, observing, evaluating and controlling agentic systems on your own infrastructure. It sits in the Workflow Automation category of the Agents & Automation tools and is open-source, written in Python and licensed MIT with the Commons Clause condition (source-available; selling Heym-derived products or services requires a commercial licence).

## Overview

Heym is a self-hosted runtime and platform for building, orchestrating, running, observing, evaluating and controlling agentic systems on your own infrastructure. In Heym a workflow is a graph that defines how agents, deterministic steps, tools and data work together; the runtime executes that graph, runs independent branches in parallel, records execution history and supports human review checkpoints. The project stresses that the visual canvas is only one interface into the runtime — the same workflows also run through REST and SSE APIs, cron schedules, event triggers, MCP clients and Portal chat pages.

Workflows are composed from a node library that mixes LLM, Agent, RAG, Codex and OpenCode Go nodes with conditions, switches, loops, merges, data transformations and sub-workflow calls, or generated from a plain-text or voice description by the built-in AI Assistant. An orchestrator agent can delegate to named sub-agents and sub-workflows and call independent ones concurrently. Agents can retrieve documents from Qdrant or PostgreSQL with pgvector, keep a per-agent knowledge graph as persistent memory, call MCP servers, and load reusable SKILL.md skills with optional Python tools. Built-in nodes cover Slack, Discord, Telegram, email, GitHub, Jira, Linear, Notion, Google Sheets, BigQuery, Redis, RabbitMQ, S3, Playwright browser automation and more.

The operations side is where Heym puts its weight: execution history with live attach to running jobs, LLM traces with tokens, latency and USD cost per call, analytics, alerts on errors, duration or spend, prompt evals across models, input guardrails, OIDC single sign-on, team sharing and OpenTelemetry export. The backend is Python with FastAPI and PostgreSQL, the frontend Vue 3 with TypeScript. Heym is source-available under the MIT License with the Commons Clause condition: you may use, modify and self-host it, but selling a product or service whose value derives substantially from Heym requires a commercial licence from the maintainers.

## What it does

- Visual canvas plus an AI Assistant that generates nodes and edges from a text or voice description, with reusable templates
- Multi-agent orchestration: an orchestrator agent delegates to named sub-agents and sub-workflows, running independent calls concurrently
- Built-in RAG over Qdrant or PostgreSQL/pgvector, per-agent persistent memory as a knowledge graph, and SKILL.md agent skills with optional Python tools
- MCP both ways — agents call MCP servers over SSE, Streamable HTTP or stdio, and workflows are published as MCP tools at /api/mcp/sse
- Human-in-the-loop checkpoints that pause a run for Accept, Edit & Continue or Refuse and resume from a saved snapshot
- Observability built in: execution history, LLM traces with token and USD cost, analytics, alerts, prompt evals across models and OpenTelemetry export

## Getting started

Heym needs PostgreSQL as its core database. Locally, run.sh starts PostgreSQL, the backend and the frontend for you; for servers there is a Docker Compose deployer and a prebuilt image. Prerequisites for the local path are Bun, Python 3.11+, uv and Docker.

1. Clone and start everything locally

   run.sh generates SECRET_KEY and ENCRYPTION_KEY when they are missing. Copy .env.example to .env first if you want to set your own values.

```bash
git clone https://github.com/heymrun/heym.git
cd heym
./run.sh
```

2. Create your account

   Open http://localhost:4017 to register and start building on the canvas. The backend serves its OpenAPI reference at /docs on port 10105 in local development.

3. Deploy with Docker Compose

   For production, deploy.sh builds and runs PostgreSQL, the backend and the frontend (and fills empty keys). Register your admin account, then set ALLOW_REGISTER=false in .env and restart to close registration.

```bash
cp .env.example .env
./deploy.sh              # Build and deploy
./deploy.sh --logs       # View logs
./deploy.sh --down       # Stop services
```

4. Call a workflow from your app

   Every workflow is invocable over REST, streamed over SSE, or published as an MCP tool. The editor's Run with cURL dialog generates the exact request, including authentication.

```text
POST /api/workflows/{workflow_id}/execute         # REST
POST /api/workflows/{workflow_id}/execute/stream  # SSE streaming
/api/mcp/sse                                      # MCP server endpoint
```

## When to use it

- Run multi-agent workflows on your own infrastructure instead of a hosted automation SaaS, with credentials encrypted and access gated by SSO
- Put a human approval step in front of agent actions — a reviewer accepts, edits or refuses, and the run resumes from its saved state
- Expose an internal workflow as an MCP tool for Claude Desktop or Cursor, or as a chat Portal for colleagues, without duplicating the logic
- Track what agent workflows cost and how they fail — per-call traces, USD spend by model, alerts on errors or spend, and OpenTelemetry spans for your existing tracing backend

## Version history

- 2026-09-30 v0.0.121: Access-control and security fixes: filing a shared workflow into a folder no longer grants standing access, only the workflow owner can set the error workflow, and PyJWT was bumped to 2.15.1 for a published advisory.
