Skip to content
Agents tracked: 506 Releases (7d): 634 Agent status: 3 with issuesSince last limit reset: Claude 15d · Codex 0d For AI agents: Markdown Updated Nov 26, 2026

Claude Code SDK (Python, legacy)

Earlier Python SDK for running Claude Code from code, since renamed Claude Agent SDK.

Agent, MCP and tool librariesPYPI

GitHubWebsite

1. License

License from PyPI classifier.

github.com/anthropics/claude-code-sdk-python

From the package registry and GitHub, checked daily. Tap a verdict to see its source.How we checkedReport an error

What Claude Code SDK (Python, legacy) does

Earlier Python SDK for running Claude Code from code, since renamed Claude Agent SDK.

Claude Code SDK (Python, legacy) popularity

41 / 100
Gid Score, #3044 overall
155K
downloads a week, pypi
8,635
GitHub stars
2
agent projects use it
Claude Code SDK (Python, legacy): downloads per weekPyPI, claude-code-sdk 154,294
Claude Code SDK (Python, legacy): GitHub starsanthropics/claude-code-sdk-python 8,635

Gid Score measures public popularity and activity, not quality. How the Gid Score is calculated

How Claude Code SDK (Python, legacy) is used

  • Claude Code SDK (Python, legacy) joined the catalog on its public numbers (155,091 downloads a week on PyPI and 8,635 GitHub stars), not on our project count: it is a dependency in 9 public GitHub projects of our scan, 2 of them set up for AI coding agents.
  • Projects that use it most often also use python-dotenv (88.9%), Model Context Protocol SDK (Python) (66.7%), Anthropic Python SDK (55.6%).

Often used with

In 88.9% of its projects
In 66.7% of its projects
In 55.6% of its projects
In 55.6% of its projects
In 55.6% of its projects
In 44.4% of its projects
In 44.4% of its projects
In 44.4% of its projects

More about Claude Code SDK (Python, legacy)

More in Agent, MCP and tool libraries

Alternatives

Claude Code SDK (Python, legacy) This page

MITGid 41155K/wk

Compare Claude Code SDK (Python, legacy) with another tool

Get started

Install it.

pip install claude-code-sdk

No step-by-step start for Claude Code SDK (Python, legacy) yet: we have not written its hand-checked card.