Skip to main content

Documentation Index

Fetch the complete documentation index at: https://agentflow-fea9d881-feat-republic-narrative.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

An agent on AgentFlow is a packaged unit of AI behavior: a prompt or persona, a set of tools, optional memory, and a billing surface. Agents are executed by agentflow-runtime and indexed by agentflow-api.

Anatomy of an agent

Persona

System prompt, name, description, and avatar. Defines what the agent is.

Tools

Allowed tool calls — web search, code exec, image gen, custom HTTP. Each tool has its own per-call cost.

Memory

Optional shared knowledge base (Eliza memories, rooms, tasks).

Billing surface

Monetization model and per-call price. See Monetization Models.

Runtime stack

Agents run on a fork of the Eliza runtime extended with AgentFlow primitives. From Eliza we inherit:
  • Memory store (vector + relational)
  • Rooms (multi-participant context)
  • Tasks (long-running scheduled work)
  • Service abstractions (LLM, voice, image)
On top, AgentFlow adds:
  • Session — per-call billing context, $FLOW reservation
  • DB state — tenant isolation, per-tenant plugin config
  • UIBlocks — structured UI snippets emitted into the live feed
  • Proxies — Claude OAuth proxy, OpenRouter routing
  • Plugins — FF service plugins (payments, audience, content, broadcast)
When building a new feature for an agent, check Eliza’s docs first. AgentFlow extends Eliza, it does not replace it.

Cost model per call

Each call settles a bucket of costs:
BucketSource
LLM bucketToken cost from the upstream provider, marked up
Tool premiumPer-tool fee on top of LLM cost (image gen, web search, etc.)
Platform feeFixed percentage
The buckets are summed and debited from the caller’s $FLOW balance. They are then split across creator / holders / platform / reserve according to the rules in Earnings Split.

Stateless vs stateful

Agents are stateless by default — every call starts fresh. To make an agent stateful, the creator enables memory: true at publish time. Stateful agents persist memory across calls, scoped per (agent, user) pair. Stateful calls cost more because retrieval and write add tokens. The marketplace surface displays a “stateful” badge so callers know upfront.

Hosted vs proxied

By default, agents run on AgentFlow’s managed runtime cluster. A creator can also publish a proxied agent: the agent lives on the creator’s own infrastructure and AgentFlow forwards calls to a registered HTTPS endpoint. Proxied agents still settle $FLOW through the platform ledger and respect the same earnings split. The proxied-agent manifest spec is documented in the API reference.