Skip to content

Latest commit

Β 

History

134 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🍳 Floe Cookbook

Reference AI agents built on Floe β€” the spend layer for agents. One Floe key pays every vendor, with programmable spend controls.

License: MIT CI Docs X / Twitter GitHub

Website Β· Dashboard Β· Docs Β· Quickstart


Start building with Floe

One key for your agent's whole vendor bill β€” LLM, voice, telephony, search, data β€” metered per call and budget-capped. Let your coding agent set it up, or wire it yourself:

Path One line
Agent β€” Claude Code / Cursor does the setup paste: Read https://dev-dashboard.floelabs.xyz/agents.md and set up Floe for this project.
Skill β€” install the Floe agent skill npx skills add floe-labs/agent-skills
MCP β€” hosted MCP server (65 tools) npx -y add-mcp https://mcp.floelabs.xyz/mcp
CLI β€” the full platform from your terminal: agents, keys, budgets, billing npx @floelabs/cli init
NPM β€” the SDK + floe-agent CLI npm i -g floe-agent

New accounts get a $3 Welcome Credit (300 API credits) β€” no card. Set up with your AI tools β†’ Β· Get a key β†’

What is this?

A cookbook of small, self-contained reference agents that show Floe in real frameworks β€” Vapi, LangChain, CrewAI, Coinbase AgentKit, MCP, the OpenAI Agents SDK, and plain SDKs. Each folder is an independent example you can read, copy, and run on its own. This is a gallery, not a template β€” there's nothing to clone wholesale; pick the recipe closest to what you're building.

Floe is the spend/billing layer for AI agents. It's walletless and priced in USD. One Floe key pays every vendor your agent uses β€” the model, memory, tools, and 2,000+ x402 API services β€” through a single endpoint, governed by programmable, context-aware spend controls. That's unified billing for agents: rail-agnostic, one key, one ledger, no per-vendor accounts, no crypto.

Start free. Create an agent key at the dashboard, fund it with a card, and your agent makes its first paid API call in minutes.

What you can build

  • Voice agents that pay per-lookup for live web search and stop cleanly at a budget β€” vapi-voice-agent, vapi-venice-voice-agent β€” or that remember callers across calls via HydraDB β€” hydra-memory-agent
  • Budget-capped multi-agent crews where a runaway loop dies at $1, not $414 β€” crewai-demo
  • Metered LLM access β€” any OpenAI/Anthropic model behind one billed endpoint with a server-side cap β€” metered-llm
  • Add Floe to an agent you already have β€” route an existing STTβ†’LLMβ†’TTS agent's spend through Floe's keyless gateway by swapping three values (baseURL/apiKey/model), no provider key β€” drop-in-existing-agent
  • Zero-install access from Claude Desktop / Cursor via hosted MCP β€” mcp-demo
  • Budget-enforce a self-hosted Pipecat / LiveKit agent β€” self-report each call's cost so budgets true up between sessions β€” pipecat-livekit-reconcile
  • Graduate a Vapi / Retell / Bland agent to 100% coverage β€” move every leg (LLM, STT, TTS, telephony) off the orchestrator onto Floe rails so the whole call is gated pre-call, not reconciled after β€” migrate-to-full-coverage

Examples

Example Language Framework / Stack Difficulty What it shows Link
metered-llm TypeScript Β· Python OpenAI SDK (framework-agnostic) Beginner Route any OpenAI/Anthropic model through Floe's metered proxy β€” per-token billing on one key, capped server-side, your provider key never stored. β†’
drop-in-existing-agent TypeScript · Python Standard openai SDK (framework-agnostic) Beginner Add Floe to an agent you already have — swap baseURL/apiKey/model to route an existing STT→LLM→TTS agent's LLM leg through Floe's keyless gateway, no provider key. →
x402-client TypeScript Coinbase AgentKit Beginner (Preview) The minimal payment example: delegate credit to the Floe facilitator, then call any x402 API with automatic, gas-free payment. β†’
mcp-demo Config only Claude Desktop / Cursor (MCP) Beginner Connect Claude Desktop or Cursor to Floe's hosted MCP server in one line β€” create agents, cap spend, and make paid calls with zero install. β†’
openai-agents Config only OpenAI Agents SDK Beginner (Preview) Use Floe from the OpenAI Agents SDK today via MCP fallback, ahead of the native adapter. β†’
crewai-demo Python CrewAI Β· crewai-floe Intermediate Per-agent budgets with a hard, server-side ceiling: a rigged loop halts at $1, and a procurement crew enforces allowlists and per-role caps. (Installs crewai-floe from a git branch until it lands on PyPI β€” see its README.) β†’
vapi-voice-agent TypeScript Vapi Β· GPT-4o Β· ElevenLabs Β· Exa Intermediate An outbound voice concierge that pays for live web search through Floe, tapers as it nears its budget, and audibly hard-stops at the cap. β†’
vapi-venice-voice-agent TypeScript Vapi Β· Venice Β· ElevenLabs Β· Exa Advanced Same voice concierge, but the LLM inference itself runs on Venice through Floe β€” model and tools metered on one key, with an audible hard-stop. β†’
hydra-memory-agent TypeScript Vapi Β· Venice Β· HydraDB Advanced A voice concierge with persistent memory β€” it stores caller facts in HydraDB and recalls them, so a later call greets you by name. Brain (Venice) + memory (HydraDB) on one Floe key, no vendor keys. β†’
vapi-custom-llm TypeScript Vapi (custom LLM) Intermediate Point a Vapi assistant's custom LLM at Floe's keyless gateway β€” the model leg (~60% of a typical call's cost) is metered per token and refused 402 pre-call at the cap; an optional shim turns the refusal into a spoken goodbye. β†’
retell-custom-llm TypeScript Retell (custom LLM WebSocket) Intermediate The WebSocket adapter Retell's custom LLM actually needs: a ~150-line server that turns each Retell turn into a streaming Floe gateway call β€” metered, pre-call gated, speaking "I've reached my budget limit" and hanging up cleanly on 402. β†’
vapi-voice-metered TypeScript Vapi (custom transcriber + voice) Β· Deepgram Β· ElevenLabs Advanced Put Floe inside Vapi's provider slots: STT and TTS run through Floe's orchestrator surfaces, metered per audio-second / per character β€” combined with vapi-custom-llm, every leg except telephony is pre-call gated on one ledger. β†’
livekit-voice-agent Python LiveKit Agents Β· Deepgram Intermediate A real-time LiveKit voice agent whose LLM and TTS legs meter on one Floe key via a base_url swap β€” STT ships BYO Deepgram, with Floe's streaming STT WebSocket as the drop-in upgrade. β†’
pipecat-livekit-reconcile Python Pipecat Β· LiveKit Agents (self-hosted) Intermediate Reconcile Mode for self-hosted voice agents: no platform cost webhook exists, so your code POSTs each call's cost (signed) at session end β€” Floe enforces the budget on the next session. The better path (pre-call gating) is routing legs through Floe; this closes the gap on legs it doesn't carry. β†’
migrate-to-full-coverage Guide Pipecat / LiveKit on Floe Intermediate The "graduate to 100% coverage" path: move each leg (LLM, STT, TTS, telephony) off Vapi/Retell/Bland onto Floe rails, flipping every reconciled leg to pre-call enforcement. Stitches the full-stack recipes with a cost/coverage calculator. β†’
floe-phone-sales-agent TypeScript Floe Phone Β· keyless LLM Β· Exa Β· Calendly Advanced The full-dogfood outbound sales agent on Floe Phone (webhook mode): telephony, STT, TTS, LLM turns, and paid research all meter on one key, with enforced per-call budgets plus a campaign cap β€” and bookings confirmed by Calendly webhook, never on the agent's say-so. β†’

Difficulty is a rough guide: Beginner = a key and a few minutes; Intermediate = a webhook, a framework, or a running server; Advanced = a multi-vendor stack (e.g. Venice inference, HydraDB memory). (Preview) marks examples whose script is a printed walkthrough of the flow β€” full docs and env setup, but not yet runnable against the live API. Runnable versions are on the way; each README says exactly what runs today.

Demos

Two of the most-requested flows, end to end. Click a card to watch (~90s each).

Venice voice agent β€” model and tools on one Floe key

Watch the Venice voice-agent demo

A phone call where the LLM inference and the paid web-search tools both meter on a single Floe key β€” tapering as the budget runs down to an audible hard-stop. See vapi-venice-voice-agent.

Persistent-memory voice concierge β€” recall across calls

Watch the persistent-memory demo

The agent stores caller facts in HydraDB and recalls them on a later call β€” brain (Venice) + memory (HydraDB) on one Floe key, no vendor keys. See hydra-memory-agent.

Quickstart

Watch the setup end to end (~90s each) β€” key, funding, and a first metered call:

Get started on Floe β€” OpenAI (~90s) Get started on Floe β€” Anthropic (~90s)

Every example is standalone. Pick one, cd into it, and follow its README.

git clone https://github.com/Floe-Labs/floe-cookbook.git
cd floe-cookbook

# Pick an example β€” e.g. metered LLM calls through Floe's billed proxy
cd metered-llm
cp .env.example .env          # fill in FLOE_API_KEY (and any keys the README lists)

# TypeScript examples
npm install && npm start

# Python examples
pip install -r requirements.txt && python main.py

You'll need a Floe API key β€” get one at the dashboard and fund it with a card. No wallet or crypto required.

Use Floe from Claude Code

Prefer to drive Floe from your coding agent? The floe agent skill teaches Claude Code, Cursor, or any Agent Skills client to run the whole vendor stack on one Floe key β€” metered, budget-capped, with the per-call receipt β€” the same pattern these recipes demonstrate.

npx skills add floe-labs/agent-skills

Canonical home (issues, releases, contributions): Floe-Labs/agent-skills.

Contributing

New recipes are welcome. See CONTRIBUTING.md and the per-example README template at docs/EXAMPLE_TEMPLATE.md.

License

MIT Β© Floe Labs

About

Agents and demos for the Floe finops for voice builders, including 15 LLM model providers + 2,000+ vendor API services

Topics

Resources

Contributing

Security policy

Stars

3 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages