Skip to content
AgentAgent framework

PocketFlow

100-line minimalist LLM framework built on a graph and shared store

Pricing
Open source
Platforms
self-hosted, API
GitHub stars
11.3K
Last commit
4 months ago
Language
Python
License
MIT

About PocketFlow

PocketFlow is an open-source agent framework for multi-agent frameworks. It is available on self-hosted and API.

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.

What it does

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

Pricing

Open source

Free, MIT-licensed.

Prices change. Check the-pocket.github.io before you buy.

PocketFlow 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 to PocketFlow

  1. Open-source self-improving agent with memory, scheduling and many chat gateways

    • Freemium
    • Open-source agent
    • 264K GitHub stars
    • AI models and LLM tooling
  2. Open-source agent harness from DeepSeek, built on a plugin architecture

    • Open source
    • Open-source agent
    • 282K GitHub stars
    • Multi-agent frameworks
  3. Python library for building agents from a model, tools, prompt and middleware

    • Open source
    • Agent framework
    • 150K GitHub stars
    • AI models and LLM tooling
  4. Open-source terminal agent for Gemini Code Assist workflows on Google Cloud

    • Open source
    • Open-source agent
    • 109K GitHub stars
    • AI models and LLM tooling
  5. Open-source super agent harness that researches, codes and creates with sandboxes

    • Open source
    • Open-source agent
    • 85.4K GitHub stars
    • AI models and LLM tooling
  6. ruflo

    Agent

    Agent meta-harness that adds swarms, memory and MCP tools to Claude Code and Codex

    • Open source
    • Agent framework
    • 81.9K GitHub stars
    • Knowledge and memory