1.0 Beta — Read the announcement →
Build durable AI agents and workflows with Flue's programmable TypeScript harness. Write once, deploy anywhere, use any LLM.
“ Read https://flueframework.com/start.md then help create my first agent...” ✓ ! Copied — now paste that into your coding agent for a guided walkthrough! Could not copy prompt
import { defineAgent } from '@flue/runtime';
import { local } from '@flue/runtime/node';
import triage from '../skills/triage/SKILL.md' with { type: 'skill' };
import verify from '../skills/verify/SKILL.md' with { type: 'skill' };
import { replyToIssue } from '../tools/github.ts';
// Expose (and protect) your agents to the world:
export const route = (c, next) => next();
// Give agents the autonomy to solve complex tasks:
const instructions = `
Triage a bug report end-to-end: reproduce the bug,
diagnose the root cause, verify whether the behavior is
intentional, and attempt a fix.`;
// Compose the context your agent needs to do real work,
// complete with virtual, local, or remote container sandbox.
export default defineAgent(() => ({
model: 'anthropic/claude-sonnet-4-6',
tools: [replyToIssue],
skills: [triage, verify],
sandbox: local(),
instructions,
})); Powered by Pi, the open agent harness.
Flue is powered by Pi, the trusted agent harness used by OpenClaw and millions worldwide. Pi gives you the tools you need to unlock real agent autonomy, moving beyond simple chatbots.
Pi is the core of our open tech stack including Durable Streams, Vite, and a flexible Sandbox API. Deploy Flue anywhere with confidence.
Durability. Recovery. It's all handled for you.
Agents can’t die when the server goes down. Flue records every session in a durable stream, then safely resumes interrupted work when the runtime comes back online. Run one agent or a multi-agent swarm on the same durable foundation.
- Accepted work is never lost
- Interrupted sessions resume automatically
- Clients reconnect without starting over
Features
Build agents that can safely take action, maintain continuity, and connect to the systems where work already happens.
Agents
Build agents that can keep context across conversations and events as they autonomously work toward a goal.
Workflows
Run structured automations where your code guides agent reasoning from a clear input to a finished result.
Sandboxes
Give agents a secure environment where they can use tools, modify files, and autonomously complete real work.
Durable Execution
Learn how agents preserve progress through failures and restarts with durable recovery for accepted work.
Subagents
Define specialized roles for different tasks, then let your agent delegate work to the right expert.
Tools
Give agents typed actions for calling APIs, querying data, and making controlled changes through your application.
Skills
Package reusable expertise and workflows that agents can load whenever a task needs specialized guidance.
MCP Servers
Connect agents to authenticated tools and services through the open Model Context Protocol ecosystem.
Observability
Monitor your agents and export telemetry with OpenTelemetry, Braintrust, Sentry, or your own observer.
Chat
Connect agents to where your work happens across Slack, Teams, Discord, GitHub, and more.
Explore the docs
Learn how to build, run, and deploy production-ready agents with Flue.
Read the docs →