Build durable AI agents with Flue's programmable TypeScript harness. Write once, deploy anywhere, use any LLM.
'use agent'; // yes, really ;)
import { useModel, usePersistentState, useSandbox, useSkill, useTool } from '@flue/runtime';
import { local } from '@flue/runtime/node';
import { replyToIssue } from '../tools/github.ts';
import triage from '../skills/triage/SKILL.md';
export function IssueTriage() {
// Define your agent useing hooks.
// Dynamically compose together different capabilities.
useModel('anthropic/claude-sonnet-5-0');
useTool(replyToIssue);
useSkill(triage);
// Store data on each agent, and update your
// agent capabilities as your state changes.
const [isSandbox, setSandbox] = usePersistentState('isSandbox', false);
if (isSandbox) {
useSandbox(local());
}
// Return your agent instructions. Flue handles the rest.
return `Triage a bug report end-to-end ...`;
} 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.
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.
Build agents that can safely take action, maintain continuity, and connect to the systems where work already happens.
Build agents that can keep context across conversations and events as they autonomously work toward a goal.
Give agents deterministic, model-callable jobs so structured automations run inside a durable conversation.
Give agents a secure environment where they can use tools, modify files, and autonomously complete real work.
Learn how agents preserve progress through failures and restarts with durable recovery for accepted work.
Define specialized roles for different tasks, then let your agent delegate work to the right expert.
Give agents typed actions for calling APIs, querying data, and making controlled changes through your application.
Package reusable expertise and workflows that agents can load whenever a task needs specialized guidance.
Connect agents to authenticated tools and services through the open Model Context Protocol ecosystem.
Monitor your agents and export telemetry with OpenTelemetry, Braintrust, Sentry, or your own observer.
Connect agents to where your work happens across Slack, Teams, Discord, GitHub, and more.
Learn how to build, run, and deploy production-ready agents with Flue.
Read the docs →