← Guides

Best AI tools for building ai agents in 2026

Updated

TL;DR: Top picks for building ai agents: OpenAI Agents SDK, LangGraph, CrewAI. OpenAI Agents SDK: OpenAI's open-source framework for building agents in Python (Python 3.10+) or TypeScript: agents with instructions, tools, guardrails and handoffs, plus sandbox agents that work in a container over long jobs, realtime and voice agents, sessions for conversation history, human-in-the-loop approvals and built-in tracing. Provider-agnostic: works with OpenAI's Responses and Chat Completions APIs and, per the README, 100+ other LLMs. Also worth a look: Pydantic AI, Mastra, AI SDK, LlamaIndex, AutoGen, Model Context Protocol, LangSmith.

Frameworks, protocols and observability for building agents.

  1. OpenAI Agents SDK (Agent framework)

    OpenAI's open-source framework for building agents in Python (Python 3.10+) or TypeScript: agents with instructions, tools, guardrails and handoffs, plus sandbox agents that work in a container over long jobs, realtime and voice agents, sessions for conversation history, human-in-the-loop approvals and built-in tracing. Provider-agnostic: works with OpenAI's Responses and Chat Completions APIs and, per the README, 100+ other LLMs.

    Pricing: Free, open source (MIT license); you pay for the model API you call (GitHub README and LICENSE, checked Nov 11, 2026). · Visit OpenAI Agents SDK

  2. LangGraph (Agent framework)

    Open-source library from LangChain for building stateful, long-running agents as graphs: you define the steps, the state passed between them, checkpoints that let a run pause and resume, and points where a human approves before the agent continues. LangChain's paid LangSmith platform adds tracing, evaluation and hosted Agent Servers for running LangGraph agents in production.

    Pricing: LangGraph library: free and open source. LangSmith: Developer $0 (1 seat, 5K base traces a month, then pay as you go); Plus $39 per seat a month (10K base traces, 1 small serverless Agent Server included); Enterprise custom; other usage metered in LSUs at $1 each (langchain.com/pricing, checked Nov 16, 2026). · Visit LangGraph

  3. CrewAI (Agent framework)

    Open-source Python framework for orchestrating role-based teams of agents (for example a researcher, a writer and a reviewer) that work through tasks together, plus a hosted platform with a visual editor, an AI copilot, tracing, guardrails and human-in-the-loop steps for running those workflows.

    Pricing: Framework: free and open source. Platform: Free plan with the visual editor, GitHub integration and 50 workflow executions a month; Enterprise custom, with SSO, role-based access and deployment in CrewAI's cloud, your VPC or your own infrastructure (crewai.com/pricing, checked Nov 16, 2026). · Visit CrewAI

  4. Pydantic AI (Agent framework)

    An open-source Python framework from the Pydantic team for building AI agents and apps with typed, validated outputs. It works with most model providers (OpenAI, Anthropic, Google, Bedrock, Groq, Mistral, OpenRouter, Ollama and more), and adds tools, MCP, multi-agent patterns, durable execution (Temporal, DBOS, Prefect and others), sandboxed execution environments, guardrails such as spend limits and tool budgets, and realtime speech-to-speech. Observability plugs into Pydantic Logfire or any OpenTelemetry backend.

    Pricing: Free and open source (MIT). You pay your model provider; Pydantic Logfire (tracing) and the Pydantic AI Gateway are separate services with their own terms (checked Nov 21, 2026). · Visit Pydantic AI

  5. Mastra (Agent framework)

    An open-source TypeScript framework for building AI agents, multi-step workflows and retrieval apps, with memory, evals and tracing built in. Teams use it to give an agent tools, chain steps with human approvals, and see exactly what each run did. Around it Mastra now sells a hosted platform for deploying agents, a model gateway (Nov 19, 2026) with one key, one bill and spend caps per key, and Mastra Factory, an open-source setup that takes software issues from GitHub, Linear or Jira through plan, review and done with a cloud coding agent.

    Pricing: Framework free: Apache 2.0 except code in ee/ directories, which has its own license (GitHub LICENSE.md). Hosted platform per workspace: Free $0 (unlimited agents and users, 100K observability events, 10 GB egress, 5 connections); Starter $25/month (1 small dedicated project, 250K events); Team $250/month (3 projects, SOC 2 report, 10M events); Enterprise custom (SSO, RBAC, audit logs). Overage $0.25 per GB-hour of memory or vCPU-hour, $10 per 100K events, $0.10 per GB egress (mastra.ai/pricing, checked Nov 25, 2026). · Visit Mastra

  6. AI SDK (Agent framework)

    Vercel's free, open-source TypeScript toolkit for building AI features and agents in React, Next.js, Vue, Svelte or plain Node.js. AI SDK Core gives one API for text, structured output, tool calls and agents across many model providers, so switching providers is mostly a one-line change. AI SDK UI adds hooks for chat and generated interfaces. A newer harness layer (HarnessAgent) runs established agent harnesses such as Claude Code, Codex and Pi through the same interface.

    Pricing: Free and open source under Apache 2.0 (GitHub LICENSE, checked Nov 26, 2026). You pay only your model providers, plus hosting if you deploy on Vercel or elsewhere. · Visit AI SDK

  7. LlamaIndex (Agent framework)

    Open-source Python and TypeScript framework for building agents and question-answering apps over your own documents and data, with connectors for many file types, databases and model providers. The same company runs LlamaParse, a paid cloud service for parsing and extracting data from complex documents, and LiteParse, a free local parser for simpler ones.

    Pricing: Framework free under the MIT license. LlamaParse (cloud): Pay-as-you-go $0/month with 10,000 free credits, then $1.50 per 1,000 credits; Pro $500/month with 400,000 credits, then $1.25 per 1,000; Enterprise custom. A parsed page costs 1 to 25 credits depending on tier (Fast 1, Cost-effective 3, Agentic 10, Agentic Plus 25), and layout extraction adds 3 (LlamaIndex pricing page, checked Nov 27, 2026). HIPAA processing with a BAA is Enterprise only. · Visit LlamaIndex

  8. AutoGen (Agent framework)

    Open-source framework from Microsoft for multi-agent applications.

    Pricing: Free, open source · Visit AutoGen

  9. Model Context Protocol (Protocol)

    Open protocol for connecting AI apps and agents to tools and data sources through MCP servers.

    Pricing: Open standard, free · Visit Model Context Protocol

  10. LangSmith (Observability)

    Tracing, evaluation and monitoring platform for LLM apps and agents.

    Pricing: Developer: $0 for 1 seat with up to 5k base traces a month, then pay as you go. Plus: $39 per seat per month with up to 10k base traces a month and 1 free small serverless deployment. Enterprise: custom, with self-hosted and hybrid options. Other usage is metered in LSUs at $1 each (checked Nov 9, 2026). · Visit LangSmith

Editorial assessment based on each vendor's published documentation. Prices change, so verify on the official site.

New AI tools, honest reviews and playbooks. One email a week.

Free. Unsubscribe anytime.