# PocketFlow

> PocketFlow is an open-source agent framework for multi-agent frameworks. 100-line minimalist LLM framework built on a graph and shared store. It is available on self-hosted and API.

- **Kind:** Agent
- **Pricing:** Open source
- **Platforms:** self-hosted, API
- **Website:** https://the-pocket.github.io/PocketFlow/
- **Repository:** https://github.com/the-pocket/pocketflow
- **GitHub stars:** 11,323
- **License:** MIT
- **Categories:** multi-agent frameworks, developer tools
- **Listing updated:** 2026-11-14

## About

Pocket Flow models an LLM workflow as a graph. Nodes handle small tasks, flows connect nodes through labelled actions, and a shared store carries data between them. Batch, async and parallel variants cover data-heavy and I/O-bound work.

From that core you can build agents, workflows, RAG, map-reduce, structured output and multi-agent setups. It deliberately ships no built-in utilities such as LLM wrappers or vector databases, arguing that vendor APIs change too often; examples are provided to implement yourself.

The pitch is zero dependencies and no vendor lock-in, plus enough clarity that coding agents can help write apps with it. MIT licensed, Python.

## Features

- **Graph abstraction:** Nodes, flows and actions in about 100 lines.
- **Shared store:** Nodes communicate through shared state.
- **Batch and async:** Handles data-intensive and waiting tasks.
- **Design patterns:** Agent, workflow, RAG and map-reduce.
- **No dependencies:** Zero dependencies and no vendor lock-in.

## Good for

- Build a small custom agent loop
- Prototype a RAG pipeline
- Teach LLM workflow design

## FAQ

### How big is it?

The core is 100 lines.

### Does it include integrations?

No; examples are provided but not built-in utilities.

### Licence?

MIT.

### Is PocketFlow free?

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

### What are the best alternatives to PocketFlow?

The closest alternatives to PocketFlow are hermes-agent, deepseek-harness, langchain, gemini-cli and deer-flow.

## Alternatives

- [hermes-agent](https://ai-powered.com/agents/hermes-agent): hermes-agent is a freemium open-source agent for ai models and llm tooling.
- [deepseek-harness](https://ai-powered.com/agents/deepseek-harness): deepseek-harness is an open-source agent for multi-agent frameworks.
- [langchain](https://ai-powered.com/agents/langchain): langchain is an open-source agent framework for ai models and llm tooling.
- [gemini-cli](https://ai-powered.com/agents/gemini-cli): gemini-cli is an open-source agent for ai models and llm tooling.
- [deer-flow](https://ai-powered.com/agents/deer-flow): deer-flow is an open-source agent for ai models and llm tooling.
- [ruflo](https://ai-powered.com/agents/ruflo-2): ruflo is an open-source agent framework for knowledge and memory.
- [learn-claude-code](https://ai-powered.com/agents/learn-claude-code): learn-claude-code is an open-source hosted agent for ai models and llm tooling.
- [autogen](https://ai-powered.com/agents/autogen): autogen is an open-source agent framework for multi-agent frameworks.

---
Source: https://ai-powered.com/agents/pocketflow
