Answer: The Agent SDK is a library that runs the Claude Code binary for embedding Claude Code's agent in your own Python or TypeScript application; the CLI is the terminal interface for interactive development or one-off tasks; and the Client SDK gives direct access to the Claude API from your own code, where you write the tool loop yourself. Status: Confirmed Entry: tool/claude-code/agents-and-automation/agent-sdk-vs-cli-client-sdk Revision: 1 Digest: sha256:4c1f1db1a0c29299 (changes whenever the content changes) Timeline: Created: 2026-11-13T03:02:52Z Last changed: 2026-11-13T03:02:52Z Last verified: 2026-11-20T12:16:57Z Next check: 2026-11-21T12:16:57Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of Agent SDK | A library that runs the Claude Code binary | [1] | 2026-11-20 CLI | The terminal interface, built for daily interactive use. | [1] | 2026-11-20 Client SDK | Direct access to the Claude API from any of the client SDK languages. | [1] | 2026-11-20 Client SDK tool loop | You write the tool loop yourself | [1] | 2026-11-20 Sources: [1] Anthropic. "Agent SDK overview". https://code.claude.com/docs/en/agent-sdk/overview.md Role: primary. Accessed: 2026-11-20T12:16:57Z Quote: "A library that runs the Claude Code binary, with Claude Code's" (Supports: Agent SDK) Quote: "The terminal interface, built for daily interactive use." (Supports: CLI) Quote: "Direct access to the Claude API from any of the client SDK languages." (Supports: Client SDK) Quote: "You write the tool loop yourself, or let the client SDK's beta" (Supports: Client SDK tool loop) Published: 2026-11-20T03:10:57Z Snapshot SHA-256: 6bf994e5897cbf228f19e17b177036fe23cdbd02b790944f72a090f07e80258d (captured 2026-11-13T03:02:50Z) Verification: Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. On this check the text of [1] was unchanged since 2026-11-13T03:02:52Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T12:16:57Z. No independent second source is configured for this entry Last successful check: 2026-11-20T12:16:57Z Last attempt: 2026-11-20T12:16:57Z Notes and limitations: Extracted automatically from a single official source (section "Compare the Agent SDK to other Claude tools"). Related: https://latestn.com/tool/claude-code/agents-and-automation/agent-teams-limitations What are the limitations of Claude Code agent teams? https://latestn.com/tool/claude-code/agents-and-automation/allow-specific-skills How do I allow only specific skills in a Claude Agent SDK session? https://latestn.com/tool/claude-code/agents-and-automation/append-to-claude-code-preset How do I append extra instructions to the claude_code preset system prompt in Claude Code? https://latestn.com/tool/claude-code/agents-and-automation/add-skill-to-plugin How do I add a skill to a Claude Code plugin? https://latestn.com/tool/claude-code/agents-and-automation/agent-sdk-capabilities What is the Claude Code Agent SDK and what can it do? https://latestn.com/tool/claude-code/agents-and-automation/agent-sdk-demo-applications Where can I find Claude Code Agent SDK demo applications I can clone? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-13T03:02:52Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/claude-code/agents-and-automation/agent-sdk-vs-cli-client-sdk/latest Challenge this entry: Open challenges: None How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so. Form: https://latestn.com/dispute/tool/claude-code/agents-and-automation/agent-sdk-vs-cli-client-sdk POST: https://latestn.com/dispute/tool/claude-code/agents-and-automation/agent-sdk-vs-cli-client-sdk with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/claude-code/agents-and-automation/agent-sdk-vs-cli-client-sdk?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). What is the difference between the Claude Code Agent SDK, the CLI, and the Client SDK? Revision 1, last verified 2026-11-20T12:16:57Z. https://latestn.com/tool/claude-code/agents-and-automation/agent-sdk-vs-cli-client-sdk (accessed 2026-11-21T09:57:43Z). @misc{LatestN_tool_claude_code_agents_and_automation_agent_sdk_vs_cli_client_sdk_r1, title = {What is the difference between the Claude Code Agent SDK, the CLI, and the Client SDK?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/claude-code/agents-and-automation/agent-sdk-vs-cli-client-sdk}}, note = {Revision 1; digest sha256:4c1f1db1a0c29299; last verified 2026-11-20T12:16:57Z; accessed 2026-11-21T09:57:43Z} } Reuse: License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation. URL: https://latestn.com/tool/claude-code/agents-and-automation/agent-sdk-vs-cli-client-sdk