🤖 AI Agents

Build an AI agent in code

Quick answer: Best overall to build an AI agent in code: LangChain / LangGraph. Largest ecosystem; LangGraph for controllable agents. Runner-up: OpenAI Agents SDK (Minimal primitives: agents, handoffs, guardrails, tracing). Also strong: Claude Agent SDK. We list 14 tools below, ranked by quality and fit.

Use an SDK/framework to build agents with tools, planning and multi-step reasoning.

Top picks, ranked

#3

Claude Agent SDK

free (pay for API usage)

â–¸ Reuse the Claude Code agent loop, tools and context management.

SDK exposing the Claude Code agent harness for custom agents.

#5

Mastra

freemium

â–¸ Top choice for TypeScript developers.

TypeScript agent framework with memory, tools, MCP and observability.

#8

CrewAI

freemium

â–¸ Simple role-based multi-agent orchestration.

Framework and platform for multi-agent 'crews'.

#10

Agno

freemium

â–¸ Fast, lightweight agents with built-in memory.

Python framework and runtime for multi-agent systems.

#11

smolagents

free (open source)

â–¸ Tiny codebase; agents that write Python actions.

Hugging Face's minimal code-acting agent library.

#12

AutoGen

free (open source)

â–¸ Influential research multi-agent framework; check project status before new work.

Microsoft's open-source multi-agent framework.

Related use cases

Add long-term memory and knowledge to an agentBuild a full-stack web app from a promptBuild agent workflows without codingLaunch a phone/voice AI agentLet an agent use a web browserGive your agent live web search and data

More in AI Agents.

Get new picks like these weekly · VibeStack Weekly