· Harness/ Head to head

Claude Code vs Claude Agent SDK

Both are commercial harness options with comparable terms, so the choice comes down to which model of the problem you prefer — compare the descriptions below rather than the licence.

Claude Code

Anthropic's coding agent — terminal, IDE and SDK, with hooks, skills and MCP built in.

Proprietary · paid · hosted service only

Configure via .claude/settings.json; drop reusable procedures in .claude/skills/.

Claude Agent SDK

The Claude Code loop as a library, for agents that are not about code.

Proprietary · usage based · hosted service only · SDKs for TypeScript and Python

Same harness as Claude Code, but you own the entrypoint and the tool surface.

· Side by side/ 3 of 6 differ
Claude CodeClaude Agent SDK
LicenceProprietaryProprietary
Pricingpaidusage based
Self-hostableNoNo
LanguagesAny languageTypeScript, Python
Installnpm install -g @anthropic-ai/claude-codenpm install @anthropic-ai/claude-agent-sdk
Keys requiredANTHROPIC_API_KEYANTHROPIC_API_KEY
· Common questions/ FAQ

What is the difference between Claude Code and Claude Agent SDK?

Both are commercial harness options with comparable terms, so the choice comes down to which model of the problem you prefer — compare the descriptions below rather than the licence. Claude Code: Anthropic's coding agent — terminal, IDE and SDK, with hooks, skills and MCP built in. Claude Agent SDK: The Claude Code loop as a library, for agents that are not about code.

Can Claude Code and Claude Agent SDK be self-hosted?

Claude Code is a hosted service only. Claude Agent SDK is a hosted service only.

Are Claude Code and Claude Agent SDK open source?

Claude Code is proprietary (paid). Claude Agent SDK is proprietary (usage based).

Build a stack with Claude CodeAll harness options
· For agents/ This page, machine-readable

Every page here answers to Accept: text/markdown and returns the same content at roughly a tenth the tokens. No separate site, no toggle — same URL.

curl -s -H "Accept: text/markdown" https://newagent.build/compare/claude-code-vs-claude-agent-sdk