Claude Code SDK (Python, legacy)
Earlier Python SDK for running Claude Code from code, since renamed Claude Agent SDK.
3. Used by agents' projects
Dependency in 2 public GitHub projects set up for AI coding agents that we scanned (0.0%).
4. Agent access
Agent skills for this library in the skills catalog; community skills are written by others, read them before you install.
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
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
More about Claude Code SDK (Python, legacy)
Alternatives
Claude Code SDK (Python, legacy) This page
Get started
Install it.
pip install claude-code-sdkNo step-by-step start for Claude Code SDK (Python, legacy) yet: we have not written its hand-checked card.