There are thousands of agent repositories, and most are demos with a README and a weekend of momentum. The best GitHub repos for AI agents share three traits: a clear job, active maintenance, and a license you can live with. This list keeps to a dozen projects, groups them by what they do, and says plainly when a repo is a good idea but a poor production dependency.
Licenses and descriptions below come from each repository’s front page when I checked. Star counts, release cadence, and APIs move quickly, so I deliberately do not quote numbers that would rot. Open the repo, look at recent commits, and read the license file before adopting anything.
How these repos were chosen
- One clear responsibility. Orchestration, SDK, coding agent, browser agent, memory, or tool protocol. Kitchen-sink repos were left out.
- Open license on the front page. MIT or Apache-2.0 for most picks, noted per entry.
- Evidence of use beyond demos. Documentation, tests, and an issue tracker where maintainers respond.
- Honest about limits. Where a project is archived, educational, or reference-only, I say so.
If you want the concepts before the code, read what an agent harness is and the anatomy of an agent harness. For a broader tour of LLM application repos, see best GitHub repos for LLM apps.
Orchestration frameworks
LangGraph
langchain-ai/langgraph (MIT) models an agent as a graph with explicit state. Its appeal is control: you decide the nodes, the edges, and where a human can interrupt. The cost is verbosity for simple tasks. Choose it when workflows branch, retry, or need checkpoints. Our LangGraph guide has the setup.
CrewAI
crewAIInc/crewAI (MIT) uses role-based agents that collaborate on tasks, which is easy to explain to non-engineers. That readability is also the risk: role prompts can hide what is really happening. Pilot it on a bounded workflow; see the CrewAI guide.
AutoGen: read the front page first
The microsoft/autogen README now carries an archived notice, says Microsoft is no longer providing fixes or support, and points new users to Microsoft Agent Framework as the successor. It remains useful as reading material, especially if you meet legacy code, but it is a poor choice for a new production dependency. Our older AutoGen guide is best read alongside that notice.
Vendor and typed SDKs
OpenAI Agents SDK for Python
openai/openai-agents-python (MIT) describes itself as a lightweight framework for multi-agent workflows. It is small enough to read in an afternoon, which is a real virtue. Details are in our OpenAI Agents SDK guide.
Pydantic AI
pydantic/pydantic-ai (MIT) leans on typed validation, which suits teams that already live in Pydantic and want structured outputs enforced. See the Pydantic AI guide.
Google ADK for Python
google/adk-python (Apache-2.0) is described as a code-first toolkit for building, evaluating, and deploying agents. The mention of evaluation in its own tagline is a good sign. It is a natural pick for teams on Google Cloud.
smolagents
huggingface/smolagents (Apache-2.0) is a barebones library for agents that think in code. Having the model write and run Python instead of emitting JSON tool calls is a distinctive design, and it demands strong sandboxing. Read our smolagents guide before running any generated code on a real machine.
Task agents: coding and browsing
OpenHands
OpenHands/OpenHands (MIT) targets AI-driven software development. It is worth studying as a complete coding agent: tools, sandbox, and loop together. Run it in an isolated environment, because a coding agent with shell access is a high-severity surface.
SWE-agent
princeton-nlp/SWE-agent (MIT) takes a GitHub issue and tries to fix it automatically using the model of your choice. It is valuable more as a research reference than a plug-in tool, and its companion SWE-bench is a common yardstick for coding agents.
Browser Use
browser-use/browser-use (MIT) describes itself as open source browser agent infrastructure. Web agents are brittle by nature, since pages change, so budget time for guardrails and retries. Pair with the agent permissions model so the agent can act only on approved sites.
Memory and tool protocols
Letta (letta-ai/letta, Apache-2.0) positions itself as a platform for stateful agents with advanced memory, while Mem0 (mem0ai/mem0, Apache-2.0) offers a memory layer you add to an existing agent. They represent two philosophies: adopt a whole runtime, or add memory as a component. Memory raises privacy questions, so read PII redaction before prompts before storing user facts.
The Model Context Protocol maintains a repository of reference servers. Use them as examples of how to expose tools, not as drop-in production components. Before connecting any server to an agent, read MCP security tools and secure MCP for enterprises.
Quick comparison
| Repo | Best for | Watch out for |
|---|---|---|
| LangGraph | Stateful, branching workflows | Verbose for simple tasks |
| OpenAI Agents SDK | Small multi-agent apps | Closest fit with one vendor’s ecosystem |
| Pydantic AI | Typed, validated outputs | Smaller ecosystem than LangChain’s |
| smolagents | Code-writing agents | Needs strong sandboxing |
| OpenHands | Studying a full coding agent | Shell access risk |
| Browser Use | Web automation | Brittle against page changes |
| Letta / Mem0 | Persistent memory | Privacy and staleness |
A repo vetting checklist
- Read the license file. Front-page badges can lag; confirm for yourself.
- Check the last commit and the release notes. Archived or stalled projects are reading material, not dependencies.
- Run the quick start in a clean environment. If it fails, expect worse in production.
- Search the issues for your use case. Your problem has probably been discussed already.
- Look for tests and evals. Projects that evaluate themselves tend to hold up. Try wiring one into agent evals in CI.
- Plan observability from day one. See the agent observability stack.
Do not choose a framework by popularity alone. Prototype the same small task in two candidates, compare how much code and debugging each needs, and keep the one your team can read. The decision process in fine-tuning vs RAG vs agents helps you confirm that you need an agent in the first place.
FAQ
Which GitHub repo is best for building AI agents?
There is no single best. LangGraph suits stateful, branching workflows, the OpenAI Agents SDK suits small multi-agent apps, and Pydantic AI suits typed outputs. Prototype one small task in two candidates and keep the one your team can read and debug.
Is AutoGen still a good choice?
The AutoGen README now states that the project is archived, with no fixes or support from Microsoft, and recommends Microsoft Agent Framework for new users. Treat AutoGen as reference material rather than a dependency for new production systems.
How do I judge whether an agent repo is production-ready?
Check the license, recent commits, release notes, tests, and how maintainers respond to issues. Run the quick start in a clean environment and look for built-in evaluation hooks. A demo-heavy repo with no tests is a prototype, not a platform.
Are coding agents like OpenHands safe to run locally?
Not without isolation. A coding agent with shell access can run destructive commands or leak secrets. Use a container or virtual machine, limit network access, mount only the needed files, and require approval for risky actions.
Do I need a framework at all to build an agent?
Not always. A simple loop that calls a model, runs a tool, and checks for a stop condition fits in under a hundred lines. Frameworks help when you need state checkpoints, human approval, tracing, or multi-agent coordination.
Which repos help with agent memory?
Letta offers a runtime built around stateful agents with memory, while Mem0 provides a memory layer you can attach to existing agents. Both involve storing user data, so plan redaction, retention, and deletion before you turn memory on.
AI Generated Apps AI Code Learning Technology
