Skip to content
AgentAgent framework

llama-agents

Open-source Python framework for building document-processing agents and workflows

llama-agents is an open-source agent framework for multi-agent frameworks. It is available on API, CLI and Self-hosted.

Pricing
Open source
Platforms
API, CLI, Self-hosted
GitHub stars
474
Last commit
Language
Python
License
MIT

Similar agents

About llama-agents

Document pipelines usually chain OCR, LLM calls, extraction, classification and human review, and they need to run reliably at scale. LlamaAgents handles this with event-driven workflows: each step is an async Python function that emits and consumes events, so branching, looping, parallel work, persisted state and failure recovery all stay in plain Python.

The same workflow code can start as a function in a notebook, get wrapped in a REST API with streaming and human-in-the-loop support, and later run on a durable backend or inside a locked-down customer environment. Deployment goes through the llamactl CLI, which targets LlamaParse, AWS Bedrock AgentCore or your own infrastructure.

It suits Python developers who need in-process logic such as embeddings, vision calls and custom heuristics alongside document tooling. LlamaParse can be plugged in as steps for the heavy parsing and extraction work.

What it does

Event-driven workflow steps
Steps are async Python functions that pass events, supporting branching, loops and parallel execution.
Pluggable durability
Save and resume runs to a file or connect a database for persistent state.
REST workflow server
Wraps any workflow as an API with streaming, persistence and human-in-the-loop steps.
Matching async client
Call deployed workflows from other services using the companion client package.
CLI deployment
Scaffold, serve locally with hot reload and deploy agent apps with llamactl.
LlamaParse integration
Use LlamaParse OCR, extraction and classification as steps inside a workflow.

Good for

  • Building a contract or invoice processing pipeline with extraction and validation steps
  • Adding a document-processing API with streaming to an existing FastAPI or Starlette app
  • Running document agents inside a customer's private environment where data cannot leave
  • Prototyping an LLM pipeline in a notebook and later moving it to a production service

Pricing

Open source

Free and open source under MIT; LlamaParse hosted parsing is paid per page with a free tier.

Prices change. Check llamaindex.ai before you buy.

llama-agents FAQ

What license is LlamaAgents released under?

The repository is licensed under MIT.

Can I run llama-agents without LlamaParse?

Yes. The workflow library is a standalone Python package that can be used in scripts, notebooks and servers; LlamaParse is an optional integration for document parsing steps.

How do I deploy an agent built with llama-agents?

The llamactl CLI initializes a project from a starter, serves it locally with hot reload, and deploys it to LlamaParse, AWS Bedrock AgentCore or your own infrastructure.

Is llama-agents free?

Yes. llama-agents is open source, so you can use and self-host it for free.

What are the best alternatives to llama-agents?

The closest alternatives to llama-agents are lagent, llama-cpp-agent, smolagents, Web and OpenProgram.

Where this comes from

  • Description: written from the project's README and the project's website.