flue

Active
GitHub TypeScript Apache-2.0

Description

Flue is an Astro-native toolkit for building AI agent applications, providing streaming, tool use, and structured output helpers for Astro endpoints.

Key Features

  • Built by the Astro team, a renowned open-source group
  • Secure code execution providing isolated environments for AI agents
  • Reproducible runs with consistent environments for easy debugging
  • TypeScript-first with seamless Node ecosystem integration
  • Observable with built-in execution logs and artifact capture

Use Cases

💡 Provide a sandbox for agents in TypeScript / Node projects
💡 Safely run AI-generated code in CI
💡 Provide a consistent environment for multi-step agent tasks
💡 Build reproducible AI coding workflows

Quick Start

# Install
npm install flue

# Launch a sandbox from Node
import { Flue } from "flue"
const sb = await Flue.create()
const result = await sb.exec("node -e 'console.log(2+2)'")
console.log(result.stdout) // "4"
await sb.close()

Related Projects