Build durable AI workflowsthat never fail
Event-driven orchestration with automatic retries, step memoization, and native LLM integration. From prototype to production in minutes.
@flowforge.function(
trigger=flowforge.trigger.event("order/created"),
retries=3
)
async def process_order(ctx: Context):
# Validate — memoized, won't re-run on retry
order = await step.run("validate", validate_order, ctx.event.data)
# AI-powered fraud check
risk = await step.ai(
"fraud-check",
model="gpt-4o",
prompt=f"Assess fraud risk for order {order['id']}"
)
# Wait for payment confirmation event
payment = await step.wait_for_event(
"await-payment",
event="payment/confirmed",
match="data.order_id"
)
# Ship it
await step.run("ship", create_shipment, order, payment)
return {"status": "shipped"}Capabilities
Everything you need for production AI workflows
A complete platform for building, running, and monitoring durable workflows with first-class AI support.
Steps that survive anything
Completed work is memoized and checkpointed. Crashes, deploys, and retries resume exactly where they left off — no duplicate side effects.
Token spend
$284.12
Cost attribution
Track token spend per model, tenant, and workflow. No surprise bills.
Sync customer data
Generate weekly report
Analyze churn signals
Review flagged orders
Summarize Q3 tickets
Draft release notes
Task board
Kanban with human-readable IDs. Assign to humans or agents.
Live observability
Real-time SSE feed of tool calls, decisions, and events.
Declarative flow control
Concurrency, rate limits, throttling, debouncing — one decorator away.
Secure by default
Tenant isolation, scoped secrets, and signed audit logs for every action.
Atlas
claude-sonnet-4
Agents with identity
Named AI team members with skills, models, and live status — track them like you track people.
Awaiting approval
Agent wants to issue refund of $420 to order ORD-9218
Human-in-the-loop
Approval queues for sensitive agent actions. Stay in control without slowing the pipeline.
How it works
From event to completion in five steps
Event Arrives
An event hits your API endpoint — order placed, payment received, user signed up.
Function Matched
FlowForge matches the event to registered functions by their trigger configuration.
Run Enqueued
A Run record is created and the job enters the fair queue for execution.
Steps Execute
Your function runs step by step. Each step is memoized — completed work is never repeated.
Workflow Completes
The function returns, the run is marked complete, and results are stored durably.
Primitives
Powerful building blocks, simple API
Write workflows as plain async functions. FlowForge handles durability, retries, and state behind the scenes.
step.run()Execute any function with memoization. If the workflow retries, completed steps return cached results instantly.
step.ai()Call OpenAI, Anthropic, or any LiteLLM-supported model with automatic retry, token tracking, and cost attribution.
step.wait_for_event()Pause execution for hours or days until a matching event arrives. No polling, no timeouts.
step.invoke()Call other FlowForge functions as sub-workflows. Build complex pipelines from composable blocks.
# Define a durable step — automatically memoized
order = await step.run("validate", validate_order, ctx.event.data)
# Call any LLM with built-in retry and token tracking
analysis = await step.ai(
"analyze",
model="claude-sonnet-4-20250514",
prompt=f"Analyze order {order['id']} for anomalies"
)
# Pause execution until an external event arrives
payment = await step.wait_for_event(
"await-payment",
event="payment/confirmed",
match="data.order_id",
timeout="24h"
)
# Invoke another FlowForge function
await step.invoke("notify", function_id="send-receipt", data=payment)Agent Platform
AI agents as first-class team members
Give your agents identity, skills, and a task board. Track their work, costs, and decisions in one place.
Agent Profiles
Named AI identities with configurable skills, models, and system prompts. Track status in real time.
Task Board
Kanban-style board with human-readable IDs (FF-1, FF-2). Assign tasks to humans or agents.
Live Activity
Real-time SSE-powered feed showing agent thinking, tool calls, and events as they happen.
Cost Dashboard
Track token usage and costs by provider, model, and time period. No surprise bills.
Human-in-the-Loop
Approval queues for sensitive agent actions. Stay in control without slowing down.
Agent Profiles
Named AI identities with configurable skills, models, and system prompts. Track status in real time.
Task Board
Kanban-style board with human-readable IDs (FF-1, FF-2). Assign tasks to humans or agents.
Live Activity
Real-time SSE-powered feed showing agent thinking, tool calls, and events as they happen.
Cost Dashboard
Track token usage and costs by provider, model, and time period. No surprise bills.
Human-in-the-Loop
Approval queues for sensitive agent actions. Stay in control without slowing down.
Open Source
Free forever. Your infra, your rules.
FlowForge is fully open-source. Clone it, run it, extend it — no license fees, no seat limits, no phone-home.
Self-hosted. Full control. No limits.
- Unlimited workflows
- All step primitives
- Event triggers & cron
- Python & TypeScript SDKs
- Agent team platform
- Community support
FlowForge Cloud
A managed option is on the roadmap — zero-ops deploys, team workspaces, and a shared skill registry. No dates yet; we're focused on the open-source core first.
- Hosted orchestrator
- Team workspaces
- Shared skill registry
Ready to build durable AI workflows?
Clone the repo and ship your first durable workflow in under 10 minutes. MIT licensed, no strings.
