AI agent frameworks for building your own agents
AI agent frameworks are libraries for developers who want to build their own agents: they handle calling models, using tools, keeping state between steps and coordinating several agents. If you just want an agent that writes code for you, a ready-made coding agent in your terminal or editor is usually the faster choice.
AI agent frameworks in the directory
- LangGraph: Build stateful, controllable agents as graphs. Official site
- OpenAI Agents SDK: Lightweight framework for multi-agent workflows. Official site
- Mastra: TypeScript framework for AI agents and workflows. Official site
- CrewAI: Orchestrate role-playing, collaborative agents. Official site
- eve: Vercel's open-source (Apache-2.0) TypeScript framework for durable, long-running agents; 1.0 went GA on Nov 17, 2026. Includes a code extension for coding agents that follows AGENTS.md, plus templates for software factories and GitHub maintainers; optional managed hosting on Vercel. Official site
- Claude Agent SDK: Anthropic's SDK for Python and TypeScript (MIT repos) that exposes the same tools, agent loop and context management that power Claude Code, so you can build your own agents. Uses Claude API key authentication; API usage is billed by Anthropic. Official site
Things to check before you pick one
- Language. Check that the framework supports the language your project uses, such as Python or TypeScript.
- Model support. Some frameworks work with many model providers; others are built around one. Check which models you can plug in.
- Durable execution. Long-running agents should be able to resume from their last completed step after a crash or restart. Check whether the framework saves progress between steps.
- Approvals. For agents that open pull requests or touch production, check that you can require a human approval before sensitive actions.
- Running agents safely. Agents that run code need an isolated place to do it. See AI agent sandboxes and agent infrastructure.
- Seeing what happened. Tracing and evals help you debug agents and catch regressions. See evals and observability tools.
Related guides
- AI coding agents that run in your terminal
- Multi-agent coding workspaces
- MCP servers for AI coding agents
- Open-source AI coding agents and editors
- All AI agent frameworks
Missing a framework? Submit it for free.