Overview
| Aspect | LangChain Deep Agents | Claude Agent SDK | Codex SDK |
|---|---|---|---|
| Primary use case | Interactive coding agent in terminal or IDE; Build production agents programmatically with SDK | Build production agents programmatically | Interactive coding agent (CLI, desktop, IDE, cloud); Build production agents programmatically with SDK |
| Model support | Model-agnostic (Anthropic, OpenAI, and 100s others) | Claude models (Anthropic, Azure, Vertex AI, AWS Bedrock) | OpenAI models (GPT-5.3-Codex and variants) |
| License | MIT | MIT (underlying Claude Code is proprietary) | Apache-2.0 |
| Architecture | Python SDK, TypeScript SDK, and CLI | Python SDK, TypeScript SDK | TypeScript SDK, CLI, desktop app, IDE extension, cloud interface |
| Frontend | Integration with React | Server-side only | Server-side only |
Key differences
LangChain Deep Agents:- Model flexibility: Use any provider (Anthropic, OpenAI, or 100+ others) and swap models without changing your agent logic
- Long-term memory: Persist context across sessions and threads with the Memory Store
- Sandbox-as-tool pattern: Run individual operations in isolated sandboxes while the agent runs outside, or run the full agent inside a sandbox
- Virtual filesystem: Use pluggable backends (in-memory, disk, durable stores, sandboxes) for context and checkpoint management
- Production deployment: Deploy via LangGraph with built-in hosting options
- Observability: Use LangSmith for native tracing and debugging
- Standardize on Claude: First-class support for Claude models across Anthropic, Azure, Vertex AI, and AWS Bedrock
- Custom hosting: Build your own HTTP/WebSocket layer and run the SDK in containers
- Standardize on OpenAI: GPT-5.3-Codex and OpenAI-specific tooling
- OS-level sandbox modes: Use built-in
read-only,workspace-write, ordanger-full-accessmodes - MCP server mode: Expose your agent as an MCP server with
codex mcp-server - Observability: Use OpenAI Traces
Feature comparison
| Feature | Deep Agents | Claude Agent SDK | Codex SDK |
|---|---|---|---|
| Core tools | |||
| File Read/Write/Edit | ✅ ls, read_file, write_file, edit_file | ✅ Read, write, edit | ✅ Built-in |
| Shell Execution | ✅ execute | ✅ bash | ✅ exec |
| Glob/Grep | ✅ glob, grep | ✅ glob, grep | ✅ Built-in |
| Web Search | ✅ support for third-party and provider-native | ✅ WebSearch, WebFetch | ✅ web_search |
| Planning/Todos | ✅ write_todos | ✅ Todo lists | ✅ Plan before changes |
| Subagents | ✅ Subagents | ✅ Subagents | ✅ Multi-agent workflows (experimental) via MCP + Agents SDK |
| MCP Client | ✅ | ✅ MCP | ✅ MCP client |
| Human-in-the-Loop | ✅ Approve/edit/reject | ✅ Permission modes | ✅ Approval modes (Full Access, Read-only, Auto) |
| Skills System | ✅ Skills | ✅ Skills | ✅ Skills |
| Additional instructions | ✅ Memory | ✅ CLAUDE.md files | ✅ AGENTS.md |
| Long-term memory | ✅ Memory Store | ❌ | ❌ |
| Streaming | ✅ Streaming | ✅ Streaming | ✅ Streaming |
| Sandbox Integrations | |||
| Agent runs in sandbox | ✅ Can run in sandbox | ✅ Can run in sandbox | ✅ Can run in sandbox |
| Agent runs operations in sandboxes | ✅ Uses sandboxes as tools | ❌ | ❌ |
| OS-level sandbox modes | ❌ | ❌ | ✅ read-only, workspace-write, and danger-full-access |
| Architecture | |||
| Composable Middleware | ✅ | Hooks | ❌ |
| Virtual Filesystems | ✅ Virtual filesystem with pluggable backends | ❌ | ❌ |
| Agent Server | |||
| Production hosting | ✅ LangGraph deployment, self-hosted, or standalone | Build your own HTTP/WebSocket layer; run SDK in containers | Codex App server |
| ACP server (IDE integration) | ✅ ACP server | ✅ (third-party) | ✅ (third-party) |
| MCP server mode | MCP endpoint through Agent Server | ❌ | ✅ codex mcp-server |
| A2A endpoint | ✅ A2A endpoint in Agent Server | ✅ | ❌ |
| State management | |||
| Session Resume | ✅ | ✅ Session management | ✅ Resume threads; SDK resumeThread() |
| File Checkpointing | ✅ Backends and checkpoints | ✅ File checkpointing | ✅ Git checkpoints |
| Time Travel (state branching) | ✅ | ✅ | ✅ |
| Observability | |||
| Native Tracing | ✅ LangSmith | ❌ | ✅ OpenAI Traces |
Notice a mistake?
We drafted this comparison on February 18th, 2026. If you notice mistakes or changes in products, please file an issue.Connect these docs to Claude, VSCode, and more via MCP for real-time answers.