How Do Solo Developers Build AI Agents Fast with Flue?
For Solo developers and indie hackers · Based on Flue Harness-First AI Agent Framework
// TL;DR
Flue lets solo developers and indie hackers build fully functional AI agents or automated workflows in a few lines of TypeScript without manually wiring sessions, memory, or tool loading. The harness-first design means you get sandboxes, skills, and tools out of the box. Use it when you want to ship an AI-powered feature — like a coding assistant, content generator, or document processor — quickly, deploying to a single server.mjs file on any Node.js host.
Why Is Flue Faster Than Other Frameworks for Solo Developers?
As a solo developer, you don't have a platform team to manage session stores, sandbox infrastructure, and tool-loading pipelines. Flue's harness-first design handles all of this automatically. You define your agent with a model and instructions, register skills or tools if needed, and run it. No boilerplate for sessions, no manual memory management, no sandbox configuration.
Compare this to frameworks like LangChain or Mastra where you wire each component individually. For a solo developer shipping fast, Flue eliminates hours of infrastructure plumbing.
How Do You Build Your First Agent in Under 10 Minutes?
Here's the minimal path:
1. Install: `npm install flue-runtime flue-cli`
2. Initialize: `flue init` → select Node target
3. Create agent: Add a file in `agents/` with your model (e.g., Anthropic Claude), instructions, and optionally an `agent.md` at the project root for persistent context
4. Test: `flue connect
That's it. The default just-bash sandbox gives your agent grep, glob, and read capabilities with no container setup. You have a working conversational AI agent.
To add capabilities, create skills in the `skills/` directory with a `skill.md` description, or register code-defined tools with Valibot parameter validation.
When Should I Build a Workflow Instead of an Agent?
Build an Agent when you need interactive, human-in-the-loop conversation — like a coding assistant or research helper.
Build a Workflow when the process is fully automated and repeatable — like generating blog post titles from a script, processing uploaded documents, or running daily data analysis.
Workflows export a `run` function that accepts a typed JSON payload. You trigger them with `flue run` during development or HTTP POST in production. The key difference: workflows don't wait for human input, they execute autonomously and return structured results.
How Do You Deploy Your Agent as a Production API?
Flue compiles everything into a single `server.mjs` file:
1. Add the root middleware to your project
2. Run `flue build` with your target and port
3. Deploy `server.mjs` to any Node.js host — Railway, Render, a VPS, or even a $5 DigitalOcean droplet
Workflows are triggered via HTTP POST with JSON payloads. Agents can connect via WebSockets for streaming interaction. The output JSON includes token counts and cost, so you can track your LLM spend per request.
For indie hackers building AI-powered SaaS features, this means one deployable file, one hosting cost, and a clean API surface for your frontend.
What If I Need My Agent to Run Python Scripts or Access Local Files?
Two options:
1. Import `local` from `flue-runtime-node`: This grants the agent access to your local file system and runtimes (like Python), but removes sandbox isolation. Always set the current working directory explicitly or the agent will fail to find files.
2. Wrap scripts as custom tools: Load the script, define Valibot parameters, and register the tool. The agent calls the tool without directly touching the file system — more secure and predictable.
For most solo projects, wrapping scripts as tools is the safer and more maintainable approach.
Ready to build? Install Flue, run `flue init`, and create your first agent in the `agents/` directory. You'll have a working AI agent in minutes, not days.
// FREQUENTLY ASKED QUESTIONS
How many lines of code does it take to create a Flue agent?
A minimal Flue agent requires only a few lines of TypeScript — define the model, set instructions, and export. The framework handles sandboxing, sessions, and tool loading automatically. Adding skills or tools takes a few more lines each. The harness-first design means you write agent logic, not infrastructure boilerplate.
Can I deploy a Flue agent on a cheap VPS?
Yes. Flue compiles everything into a single `server.mjs` file deployable on any Node.js host. A basic VPS, Railway, Render, or even a $5 DigitalOcean droplet works. The just-bash in-memory sandbox requires no container infrastructure, keeping resource usage minimal for solo developers on tight budgets.
Do I need to know Cloudflare Workers to use Flue?
No. Cloudflare is one deployment target, but the Node target works on any Node.js host. Choose Cloudflare only if you need Durable Object persistence per agent instance or edge deployment. For most solo developer projects, the Node target with a single `server.mjs` file is simpler and sufficient.