FastAgentic
Open-source · MIT · Python 3.10+

The deployment layer
for agentic applications.

Build agents with anything. Ship them with FastAgentic. Wrap agents built in PydanticAI, LangGraph, CrewAI, or LangChain and expose them as REST + MCP + A2A with one decorator.

REST + streamingMCP toolsA2A skillsDurable checkpointsCost tracking
$ pip install fastagentic

Works with the agent framework you already use

PydanticAILangGraphCrewAILangChainLlamaIndexDSPyAutoGenSemantic Kernel

What is FastAgentic?

FastAgentic is the deployment layer for agentic applications. It's an open-source (MIT) Python runtime, built on FastAPI, that wraps agents written in PydanticAI, LangGraph, CrewAI, or LangChain and exposes each one simultaneously as a REST endpoint, an MCP tool, and an A2A skill — from a single decorator. Auth, durable checkpoints, cost tracking, and observability come built in, so agents that work in a notebook can ship to production without a bespoke platform team behind them.

Framework-agnostic

Bring the agent framework you already use. Swap it later without rewriting deployment, auth, or telemetry.

Protocol-complete

One definition emits REST, MCP, and A2A surfaces with schemas kept in lock-step automatically.

Production-first

Durable checkpoints, cost budgets, RBAC, PII masking, and OpenTelemetry are defaults, not add-ons.

The problems FastAgentic solves

None of these are reasoning problems. They are the same deployment problems every team rebuilds — usually at 2am, during an incident. FastAgentic solves them once.

The agent-to-production gap

The problem

Your agent reasons fine in a notebook. Shipping it means streaming, auth, MCP/A2A surfaces, checkpoints, cost caps, and telemetry — roughly 500 lines of boilerplate no one wants to own.

With FastAgentic

One @agent_endpoint decorator emits all of it. You write the agent; FastAgentic writes the platform.

Why FastAgentic →

Framework lock-in

The problem

LangServe only speaks LangChain. Framework SDKs assume you never switch. Two years in, half your agents are on a stack you would not choose today.

With FastAgentic

Adapters for PydanticAI, LangGraph, CrewAI, LangChain — and a Runnable interface for anything custom. Deployment stays identical across all of them.

FastAgentic vs LangServe →

Runs that die at hour one

The problem

A long agent run crashes at minute 55 and you lose the whole thing. External orchestrators add a Celery + Redis stack you now have to operate.

With FastAgentic

StepTracker checkpoints every workflow step to Redis, Postgres, or S3. run_opaque wraps existing agents unchanged and makes them resumable at the step level.

Deploy LangGraph to production →

Runaway LLM bills

The problem

A loop misfires, a tenant hammers an endpoint, and the invoice arrives before your alert does. Per-run cost is invisible until accounting flags it.

With FastAgentic

Per-run, per-user, per-tenant cost tracking with hard budget cut-offs, RBAC, and PII masking — enforced before the spend happens.

Agent cost-control patterns →

Built for the way agents ship to production.

FastAgentic sits between your agent framework and your users — handling protocols, durability, governance, and telemetry so your team can focus on reasoning, not plumbing.

One decorator, three protocols

Define an agent endpoint once and expose it simultaneously as REST, MCP (Model Context Protocol), and A2A (Agent-to-Agent). Schemas stay in lock-step automatically.

Framework-agnostic adapters

Bring PydanticAI, LangGraph, CrewAI, LangChain — or a custom Runnable. Swap frameworks without rewriting deployment, auth, or observability.

Durable checkpoints

StepTracker and run_opaque cache workflow progress to Redis, Postgres, or S3. Resume after crashes without external orchestrators.

Policy & cost control

Budget caps, per-tenant rate limits, RBAC, and PII masking baked in. Stop runaway LLM bills before they start.

Streaming-first

SSE, WebSocket, and MCP events out of the box. Token streaming, tool calls, and intermediate steps — all with zero boilerplate.

Production observability

OpenTelemetry, Langfuse, Portkey, and Datadog integrations. Structured logs, per-run cost tracking, and audit trails ready on day one.

One file. Every protocol.

A PydanticAI agent, exposed over REST, MCP, and A2A — with auth, durability, and cost tracking baked in. That's it. That's the app.

main.py
from fastagentic import App, agent_endpoint
from fastagentic.adapters import PydanticAIAdapter
from pydantic_ai import Agent

agent = Agent("openai:gpt-4o", system_prompt="You are a helpful research assistant.")

app = App(title="Research Service")

@agent_endpoint("/research", adapter=PydanticAIAdapter(agent))
async def research(query: str) -> str:
    """Answer research questions with cited sources."""
    ...

# One decorator gives you:
#   POST /research              (REST + streaming SSE)
#   MCP tool  research(query)   (Model Context Protocol)
#   A2A skill research          (Agent-to-Agent)
#   + auth, cost tracking, checkpoints, OpenTelemetry

How FastAgentic works

A single decorator threads every request through protocol handling, governance, and durability before it ever reaches your agent — and back out again.

Clients
REST · MCP hosts (Claude, Cursor) · other A2A agents
Protocol surface
@agent_endpoint → REST route + MCP tool + A2A skill, one shared schema
Governance
OAuth2/OIDC · RBAC · per-tenant cost budgets · PII masking · audit log
Durability
StepTracker checkpoints · run_opaque · Redis / Postgres / S3
Adapter
PydanticAI · LangGraph · CrewAI · LangChain · custom Runnable
Your agent
reasoning, tools, and model calls — unchanged

The same pipeline runs in reverse for the response — including token streaming, cost accounting, and checkpoint commits.

3
protocols from one decorator
REST · MCP · A2A
4+
agent frameworks supported
PydanticAI · LangGraph · CrewAI · LangChain
3
checkpoint backends
Redis · Postgres · S3
MIT
open-source license
self-hosted, no cloud lock-in

Start here

Hand-picked guides for teams shipping agents to production.

All guides →

From the blog

Thoughts on agentic infra, FastAPI, LangGraph, and MCP.

All articles →
Migrating off LangServe?

LangServe is deprecated — meet the framework-agnostic, open-source alternative

Wrap any agent and serve it as REST + MCP + A2A at once, with no cloud lock-in. See the LangServe alternative →

Explore FastAgentic

Everything you need to evaluate and ship — how it works, what it does, and how it fits your stack.

Need FastAPI, LangGraph, or agent platform expertise?

Neul Labs — the team behind FastAgentic — takes on a limited number of consulting engagements each quarter. We help teams ship agents to production, fix broken LangGraph pipelines, and design governance for multi-tenant LLM platforms.