CrewAI
Install
pip install crewai-floepip install "floe-agentkit-actions[crewai]"Quickstart
import os
from crewai import Agent, Crew, Task
from crewai_floe import Floe402Tool, FloeLLM
FLOE_API_KEY = os.environ["FLOE_API_KEY"] # your floe_… agent key
researcher = Agent(
role="Market Researcher",
goal="Pull pricing data from paid APIs and summarize it",
backstory="Finds and summarizes live quotes.",
tools=[Floe402Tool(url="https://api.somevendor.com/quote", api_key=FLOE_API_KEY)],
llm=FloeLLM( # BYOK — or go keyless, see "Paying for LLM tokens"
model="openai/gpt-4o",
proxy_base_url="https://credit-api.floelabs.xyz/v1/llm",
credit_key=FLOE_API_KEY, # your Floe agent key — identifies your balance
provider_key=os.environ["OPENAI_API_KEY"], # your provider key; Floe meters + caps, never persists it
),
)
crew = Crew(agents=[researcher], tasks=[Task(
description="Get the latest quote and summarize it",
expected_output="A one-paragraph summary",
agent=researcher,
)])
crew.kickoff()Paying for tools — Floe402Tool
Paying for LLM tokens
The ceiling — a server-side spend control
Budget awareness (optional)
Demos
Last updated
