Build durable AI agents and workflows with Flue's programmable TypeScript harness. Write once, deploy anywhere, use any LLM.
import { createAgent } 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 createAgent(() => ({
model: 'anthropic/claude-sonnet-4-6',
tools: [replyToIssue],
skills: [triage, verify],
sandbox: local(),
instructions,
})); 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.
Run structured automations where your code guides agent reasoning from a clear input to a finished result.
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 →