Open source Apache 2.0

A high-level language and platform for AI workflows and agents.

AI writes your code now. Can you read it? Hot's expressiveness keeps it focused on your problem domain, not syntax, boilerplate, or infrastructure.

Start building

The whole system in view

Follow workflows from the dashboard down to each run, event, and call.

Dashboard
Hot App dashboard showing function-call traces, projects, and live event streams
Agents / Workflow
Hot Dev workflow graph view showing a Lead Qualifier agent with handlers, schedules, function calls, and downstream events
Stream Graph
Hot App Stream Graph
Execution Trace
Hot App Execution Trace

Build with Hot

Workflows, agents, tools, and events in a few lines.

agents.hot
::app::agents ns

::store ::hot::store
::regex ::hot::regex
::claude ::anthropic::messages

LeadQualifier
meta {
    doc: "Qualifies inbound leads and routes them to sales or nurture.",
    agent: {name: "Lead Qualifier", tags: ["sales", "ai"]},
}
type {
    threshold: Dec,
    model: Str
}

qualifier LeadQualifier({threshold: 0.7, model: "claude-sonnet-4-20250514"})
leads ::store/Map({name: "leads"})

on-signup
meta {
    agent: LeadQualifier,
    webhook: {service: "leads", path: "/signup"}
}
fn (request) {
    lead request.body
    cond {
        is-null(lead.email) => { err("email is required") }
        => {
            ::store/put(leads, lead.email, lead)
            send("lead:new", lead)
            {ok: true}
        }
    }
}

qualify-lead
meta {
    agent: LeadQualifier,
    on-event: "lead:new"
}
fn (event) {
    lead event.data
    reply ::claude/chat(
        qualifier.model,
        to-json(lead),
        "Score this lead. Reply with JSON: {\"score\": 0.0-1.0, \"reason\": \"...\"}"
    )
    // Keep only the JSON object, dropping any prose or ``` fences
    result from-json(::regex/replace-all(reply, "^[^{]*|[^}]*$", ""))
    ::store/put(leads, lead.email, {...lead, score: result.score})
    topic if(gte(result.score, qualifier.threshold), "lead:qualified", "lead:nurture")
    send(topic, {email: lead.email, score: result.score, reason: result.reason})
}

notify-sales
meta {
    agent: LeadQualifier,
    on-event: "lead:qualified"
}
fn (event) {
    send("slack:post", {
        channel: "#sales",
        text: `Hot lead: ${event.data.email} (${round(mul(event.data.score, 100))}%)`,
    })
}

weekly-pipeline
meta {
    agent: LeadQualifier,
    schedule: "every monday at 9am"
}
fn (event) {
    all ::store/vals(leads)
    qualified filter(all, gte(or(%.score, 0.0), qualifier.threshold))
    send("slack:post", {
        channel: "#sales",
        text: `Pipeline: ${length(all)} leads, ${length(qualified)} qualified`,
    })
}
mcp.hot
::app::mcp ns

::store ::hot::store

orders ::store/Map({name: "orders"})

lookup-order
meta {
    mcp: {service: "support"},
    doc: "Look up an order by ID",
}
fn (order-id: Str): Map? {
    ::store/get(orders, order-id)
}

cancel-order
meta {
    mcp: {service: "support"},
    doc: "Cancel an order if it has not shipped yet",
}
fn (order-id: Str): Map {
    order ::store/get(orders, order-id)
    cond {
        is-null(order) => { err(`Order ${order-id} not found`) }
        eq(order.status, "shipped") => { err("Cannot cancel a shipped order") }
        => {
            updated {...order, status: "cancelled"}
            ::store/put(orders, order-id, updated)
            updated
        }
    }
}
events.hot
::app::events ns

on-order-placed
meta {on-event: "order:placed"}
fn (event) {
    order event.data

    parallel {
        inventory send("inventory:reserve", {items: order.items})
        receipt send("email:send", {
            to: order.customer.email,
            subject: `Order #${order.id} confirmed`,
        })
        notify send("slack:post", {
            channel: "#orders",
            text: `New order #${order.id} from ${order.customer.name}`,
        })
    }
}
containers.hot Hot Box
::app::box ns

::box ::hot::box
::task ::hot::task

run-analysis
meta {on-event: "data:analyze"}
fn (event) {
    script """
        hotbox cp "$CSV_PATH" /data/orders.csv
        python3 -c "
        import csv, json, statistics
        with open('/data/orders.csv') as f:
            amounts = [float(r['amount']) for r in csv.DictReader(f)]
        print(json.dumps({
            'rows': len(amounts),
            'total': round(sum(amounts), 2),
            'median': round(statistics.median(amounts), 2),
        }))
        "
        """
    job ::box/start(::box/BoxConf({
        image: "python:3.12-alpine",
        env: {CSV_PATH: event.data.file},
        script,
        timeout: 60,
        size: "small",
    }))
    result ::task/await(job.id)
    from-json(trim(or(result.stdout, "{}")))
}
tasks.hot
::app::tasks ns

::task ::hot::task
::http ::hot::http

fetch-metrics fn (url: Str): Map {
    ::http/get(url).body
}

fetch-health fn (url: Str): Map {
    res ::http/get(url)
    {status: res.status, ok: ::http/is-ok-response(res)}
}

check-service
meta {on-event: "service:check"}
fn (event) {
    opts ::task/TaskOptions({timeout: 60000, retry: 3})

    jobs parallel {
        metrics ::task/start(fetch-metrics, `${event.data.url}/metrics`, opts)
        health ::task/start(fetch-health, `${event.data.url}/health`, opts)
    }

    results parallel {
        metrics ::task/await(jobs.metrics.id)
        health ::task/await(jobs.health.id)
    }

    {metrics: results.metrics.result, health: results.health.result}
}
ffmpeg.hot Pkg
::app::video ns

on-video-upload
meta {on-event: "video:uploaded"}
fn (event) {
    path event.data.path

    parallel {
        probe ::ffmpeg/probe(path)
        thumb ::ffmpeg/thumbnail(path)
        audio ::ffmpeg/extract-audio(path)
    }
}
playwright.hot Pkg
::app::screenshot ns

capture
meta {on-event: "page:capture"}
fn (event) {
    url event.data.url

    results parallel {
        shot ::playwright/screenshot(url)
        page ::playwright/scrape(url)
    }

    {
        url,
        screenshot: results.shot.url,
        title: results.page.title,
        text: slice(results.page.text, 0, 500),
    }
}
schedules.hot
::app::schedules ns

::store ::hot::store

signups ::store/Map({name: "signups"})
orders ::store/Map({name: "orders"})

daily-report
meta {schedule: "every day at 6am"}
fn (event) {
    counts parallel {
        signup-count ::store/length(signups)
        order-count ::store/length(orders)
    }

    send("slack:post", {
        channel: "#metrics",
        text: `Daily report: ${counts.signup-count} signups, ${counts.order-count} orders`,
    })
}
file-storage.hot
::app::files ns

::time ::hot::time

generate-report
meta {on-event: "report:generate"}
fn (event) {
    orders event.data.orders
    rows map(orders, (o) { `${o.id},${o.customer},${o.amount},${o.status}` })
    csv join(["id,customer,amount,status", ...rows], "\n")

    today ::time/format(::time/now(), "YYYY-MM-DD")
    path `hot://reports/orders-${today}.csv`
    write-file(path, csv)
    {file: path, rows: length(orders)}
}
webhooks.hot
::app::webhooks ns

on-stripe
meta {webhook: {service: "billing", path: "/stripe"}}
fn (request) {
    payload request.body.data.object

    match request.body.type {
        "payment_intent.succeeded" => {
            send("payment:received", {customer: payload.customer, amount: payload.amount})
        }
        "payment_intent.payment_failed" => {
            send("payment:failed", {customer: payload.customer})
        }

        _ => { {status: "ignored", type: request.body.type} }
    }
}
retries.hot
::app::retries ns

::http ::hot::http

sync-webhook
meta {
    on-event: "partner:sync",
    retry: {attempts: 5, delay: 2000, backoff: "exponential"},
}
fn (event) {
    res ::http/get(event.data.url)
    cond {
        not(::http/is-ok-response(res)) => { err(`Request failed: ${res.status}`) }
        => { {status: res.status, body: res.body} }
    }
}

Build and ship

1

Install Hot

One command install

terminal
curl -fsSL https://get.hot.dev/install.sh | sh
PowerShell
irm https://get.hot.dev/install.ps1 | iex

Also available via Homebrew, installers, and more

2

Initialize a new Hot project

Add to any existing codebase

terminal
cd dev/so-fire-backend/
hot init

Hot lives alongside your existing code. Adds hot.hot config, hot/ source directory, and .hot/ local data

3

Teach your AI Hot

Context for your coding assistant

terminal
hot ai add

Adds AGENTS.md and Hot skills to your project, so your coding assistant knows Hot's syntax and patterns. Learn more →

4

Write some Hot code

in hot/src

hot/src/so-fire/user.hot
::so-fire::user ns

::emails ::resend::emails

send-welcome-email
meta {
    on-event: "user:created",
    doc: "Send a welcome email when a user signs up",
}
fn (event) {
    ::emails/send-email(::emails/POSTEmailsRequest({
        from: "hello@so-fire.app",
        to: [event.data.user.email],
        subject: "Welcome to SoFire!",
        html: "<p>Welcome to SoFire!</p>",
    }))
}

Tip: Install the Hot extension for syntax highlighting, autocomplete, and diagnostics. It is available for VS Code-compatible editors (search "Hot" in Extensions). Learn more →

5

Run the dev servers

App, API, Scheduler, Worker. All in one command.

terminal
hot dev --open
6

Observe your workflow

Real-time observability at localhost:4680

Runs

Every execution captured. Status, timing, input, output, full trace.

Events

Inspect every event, its payload, and which handlers processed it.

Execution Trace

Each expression, intermediate values, return values, timing.

Errors

Failures, cancellations, stack traces. Debug fast.

7

Deploy to Hot Cloud

The same workflow runs locally and in production.

Start your free Hot Cloud account and get your API key, then...

terminal
hot deploy

The system behind the work

From workflow logic to production, every layer works as one.

Create

Define workflows, agents, and tools in one place.

Hot Language

Familiar data, optional types, execution flows, and a workflow-ready standard library

AI Agents

Build agents with tools, memory, and MCP integration

MCP Tools

Turn any Hot function into an MCP tool

Hot Packages

Use pre-built integrations for AI and SaaS services

Hot CLI

Run, test, and deploy from the command line

VS Code & LSP

Syntax highlighting, autocomplete, and diagnostics

Run

Execute every kind of work on the same runtime.

::hot::box

Run any container as a Hot function

Tasks

Long-running work with checkpoints and recovery

Event Handlers

Trigger functions automatically when events occur

Webhooks

Turn any Hot function into a webhook endpoint

Scheduled Runs

Run functions on cron or natural-language schedules

HTTP API

Expose OpenAPI-compatible REST endpoints

File Storage

Read, write, and manage files in your environment

Configurable Retries

Control attempts, delay, and backoff for failed runs

Observe

Follow the work from a live run to a single expression.

Execution Tracing

Intermediate values, timing, and the full call stack

Hot App

A live view of runs, events, streams, and traces

Testing Framework

Built-in unit and integration testing

Alerts

Email, Slack, PagerDuty, and webhook notifications

Control

Keep environments, teams, and access together.

Environments

Separate staging, production, and everything between

Teams

Role-based access to projects and environments

Secret Variables

AES-256-GCM encrypted secrets and configuration

API Keys

Create, rotate, and manage API keys

Service Keys & Sessions

Scoped credentials and short-lived customer tokens

Granular Permissions

Resource and action-level access control

Ship

Carry the same system from local development into production.

Hot Cloud

Deploy with one command and scale automatically

Custom Domains

Serve APIs, MCP, and webhooks from your own domains

Bring the tools you already use

Models, data, messaging, and media connect through ready-made Hot packages.

Latest from Hot Dev

How Hot fits your stack

Direct answers on the language, incremental adoption, self-hosting, containers, and AI agents.

What is Hot Dev?

Hot Dev is an open source (Apache 2.0) high-level workflow language, runtime, CLI, and observability dashboard for building AI agents, event-driven backend workflows, MCP tools, scheduled jobs, and isolated container tasks in one project.

Why does Hot use its own language?

A dedicated workflow language lets Hot inspect code before it runs, generate live agent and workflow graphs from source, execute explicit parallel flows concurrently, and capture expression-level traces without manual instrumentation. With hot ai add, your coding assistant learns Hot's syntax and patterns automatically (AI coding guide).

Can I run Hot locally and self-host it?

Yes. The Hot language, runtime, CLI, and Hot App dashboard are Apache 2.0 licensed. Run everything locally with hot dev (download Hot), self-host on your own infrastructure with PostgreSQL and Redis, or deploy to managed Hot Cloud with hot deploy.

How does Hot run browsers, FFmpeg, Python, or custom runtimes?

Use ::hot::box to start isolated OCI containers directly from webhooks, events, schedules, or agent tools. Hot manages inputs, file storage, timeouts, logs, retries, and completion events in the same task and workflow trace.

How do AI agents and MCP tools work in Hot?

Typed agent definitions group configuration, event handlers, schedules, webhooks, memory stores, and streams under one identity. Any Hot function can also be exposed as a permission-aware MCP tool for external AI clients and coding assistants.

Build and run it all in one place

Free to start. One command when you are ready for production.

Get started free