Frameworks
Self-Hosted AI Agents
The software is free and the model is not. Ten agent stacks you can run yourself, grouped by how much code you have to write — each with the license file we actually opened.
Licenses and pricing structure last checked: 23 November 2026
Four layers hide behind one word
“Self-hosted” in this corner of software means at least four separate things, and most vendors deliver one or two of them while using the word for all four:
- The model. Weights you run on your own GPU, or an API call to somebody else's.
- The runtime. The process that runs the agent loop — your server, your laptop, or their cloud.
- The tools. What the agent can actually touch: a shell, a filesystem, a browser, your mailbox.
- The memory. Where conversation state and long-term recall live.
Everything below runs layers two and four on your hardware. Almost none of them run layer one unless you point them at a local model server yourself. So the honest reading of “self-hosted agent” is: the loop and the memory are yours, the intelligence is probably still rented. That is worth knowing before you size a server.
Three shapes, not ten products
| Shape | What you do | What you get |
|---|---|---|
| Framework | Write code against it | An agent library, no UI, no deployment |
| Visual platform | Drag nodes into a flow | A running app with a UI and an API |
| Finished agent | Install it and give it a task | Something that acts without much setup |
There is a fourth shape — an assistant that lives inside your chat apps — and that is OpenClaw, which has its own page here.
Frameworks you call from your own code
AutoGen
Microsoft's multi-agent framework, built around agents that converse with each other to solve a task. Its license is the one case on this page where the file matters more than the label: the repository's LICENSE-CODE is MIT for the framework code, while the repository's main LICENSE is Creative Commons Attribution 4.0 for the documentation and other repository content. Almost every directory writes “MIT” here. The precise reading is “MIT for code, CC BY for the rest”, and the difference only shows up when a procurement form asks you to name the license of the repository at a specific URL. The catch: it is a library rather than a product — no UI, no accounts, no deployment story. You wrap it.
CrewAI
MIT. Role-based orchestration: each agent gets a role, a goal and a backstory, and the framework coordinates them like a small team. The catch: the abstraction is thick, which is pleasant until something misbehaves — then the fault sits somewhere between the framework layer and the model layer and you debug both. For a single-agent task it is overbuilt.
LangGraph
MIT. Agents written as explicit state graphs: nodes are steps, edges are transitions, and checkpoints can persist into your own database. The catch: it gives you control and charges for it. You design the graph, which means understanding the state machine before you get a working agent, and if all you wanted was a tool-calling chat loop, this is heavier than the job.
Agno
Apache-2.0. A lightweight runtime for agents and teams, built for speed and a small abstraction surface. The catch: lightweight also means unopinionated — no UI, no accounts, no deployment, so everything around the agent is your wiring.
Letta
Apache-2.0. Formerly MemGPT, and the point of it is stateful memory that survives between sessions, with the agent managing what it writes and recalls. The catch: memory is the expensive feature. Every session pushes stored state back into the context, so a long-lived agent on a frontier model has a bill that grows with its own history.
Visual builders that end in an app
Dify
A modified Apache-2.0: commercial use is fine, but operating a multi-tenant service needs written authorisation, and the logo and copyright in the frontend may not be removed. Visual orchestration of LLM apps including agent nodes, with a built-in frontend, knowledge base and publishable API. The catch: the multi-tenant clause is the one that bites agencies and anyone reselling a hosted deployment.
Flowise
Apache-2.0 for everything outside packages/server/src/enterprise/, which sits under a separate commercial license. Dragging together chatflows for LLM apps. The catch: the directory split means “the repository is Apache-2.0” is not true as a sentence, and the enterprise directory is the part some deployments want.
Langflow
MIT. A Python-first visual builder for agent and RAG flows, and dropping in a custom component is genuinely quick. The catch: it is a developer's tool. A non-technical colleague will open it twice and then ask you to build the thing.
Agents you install and point at work
OpenHands
MIT. A coding agent that reads and writes repositories, runs tests and opens pull requests. The catch: to be useful it needs write access to a repository and permission to execute commands, which is a development machine in all but name. Isolation is not optional. More on the coding-agent options in open source AI coding assistants.
Agent Zero
MIT. An autonomous agent with terminal, browser and code execution, organised around a persistent conversation context. The catch: same problem as OpenClaw, from the other direction — it executes tools on the host. Run it in a container or a disposable VM, on a machine that holds nothing you would miss.
Comparison
| Option | License | Do you write code? | Runs a local model? | Best for |
|---|---|---|---|---|
| AutoGen | MIT for code, CC BY 4.0 for repo content | Yes | Yes, via an OpenAI-compatible endpoint | Multi-agent conversations you script |
| CrewAI | MIT | Yes | Yes | Role-based agent teams |
| LangGraph | MIT | Yes | Yes | Explicit control over agent steps and state |
| Agno | Apache-2.0 | Yes | Yes | A small, fast runtime |
| Letta | Apache-2.0 | Yes | Yes | Agents that remember across sessions |
| Dify | Modified Apache-2.0 | Optional | Yes | Shipping an agent app with a UI |
| Flowise | Apache-2.0 plus a commercial enterprise directory | No | Yes | Visual flows with a hosted frontend |
| Langflow | MIT | Some | Yes | Python developers prototyping flows |
| OpenHands | MIT | No | Yes | An agent that writes and tests code |
| Agent Zero | MIT | No | Yes | An autonomous agent with real tools |
The trade-off no comparison table shows
Every option here is free to install and none of them is free to run. The bill arrives in two places, and neither is the license:
- Inference. An agent that keeps state and calls tools sends far more tokens per task than a chat window does — every step re-reads the context. A visual flow that felt cheap to build can cost more per month than the subscription it replaced.
- Permissions. The options that actually do things — OpenHands, Agent Zero, the agent nodes in Dify — need real credentials to be useful. The decision that matters is therefore not which framework to pick, but which machine it runs on and which accounts it is allowed to hold. That is a ten-minute decision that saves a bad afternoon.
The pattern worth noticing: most people who abandon a self-hosted agent do not abandon it over licensing or features. They abandon it because they gave it access to everything on their laptop, and then stopped trusting it.
How to decide
- You want an agent inside your codebase: LangGraph for control, CrewAI for a team of roles, Agno for something small.
- You want to ship an agent as an app with a UI: Dify, or Flowise if you prefer flows over screens.
- You want it to write code: OpenHands, isolated.
- You want an agent that remembers: Letta.
- You want one that browses and executes on its own: Agent Zero, in a container.
- You wanted a chat interface rather than an agent: that is a different list — OpenClaw alternatives.
Questions
Is AutoGen open source?
Yes, and it uses two files rather than one. LICENSE-CODE is MIT and covers the framework code; the repository's main LICENSE is Creative Commons Attribution 4.0 and covers the documentation and remaining repository content. Reporting it as simply “MIT” is what most pages do and it is imprecise in a way that occasionally matters.
Do I need a GPU to self-host an agent?
No. In nearly all of the options above, “self-hosted” describes where the agent loop and the memory live, not where the model runs. Dify, LangGraph or OpenHands will run on a small VPS while every inference call goes to a commercial API. Running the weights locally is a separate stack — vLLM, Ollama, llama.cpp — and a separate hardware decision.
What does running one actually cost?
The software costs nothing. The recurring cost is inference plus a machine. Inference scales with context, and agents use far more context than chat: state that persists across sessions and multi-step tool calls all get re-sent. The machine can be a $6 VPS for a visual builder or an agent that only calls APIs; a coding agent or something driving a browser wants isolated compute and disk. This site does not print vendor prices, because they change without notice.
Are these the same tools as the OpenClaw alternatives page?
Partly. Letta, Agent Zero, Dify, Flowise and Langflow appear on both, because the boundary between “an assistant” and “an agent you run” is genuinely blurry. The other page is organised around replacing one specific assistant; this one is organised around what you have to build.
Which of these can run a local model?
All of them, because the model is configuration rather than a license term. Each project can point at an OpenAI-compatible endpoint, so a local server works as a drop-in. The constraint is memory and GPU, not permission.
Where each license claim comes from
Every row was read from the project's own license file or license page on 23 November 2026. Where a project splits its code across more than one license, the split is stated rather than hidden behind the friendliest name. How these are checked, and what we got wrong.
| Project | License as stated in its own file | Source |
|---|---|---|
| AutoGen | MIT for code (LICENSE-CODE); the repository’s main LICENSE is CC BY 4.0 | LICENSE-CODE |
| CrewAI | MIT | LICENSE |
| LangGraph | MIT | LICENSE |
| Agno | Apache-2.0 | LICENSE |
| Letta | Apache-2.0 | LICENSE |
| Dify | Modified Apache-2.0: multi-tenant use and frontend logo removal need a commercial license | LICENSE |
| Flowise | Apache-2.0 outside packages/server/src/enterprise/, which is commercial | LICENSE |
| Langflow | MIT | LICENSE |
| OpenHands | MIT | LICENSE |
| Agent Zero | MIT | LICENSE |