Answer: To migrate a Python project, uninstall the old package with `pip uninstall -y claude-code-sdk`, install the new package with `pip install claude-agent-sdk`, and change all imports from `claude_code_sdk` to `claude_agent_sdk`. If `claude-code-sdk` is listed in your `requirements.txt` or `pyproject.toml`, replace it with `claude-agent-sdk`. Status: Confirmed Entry: tool/claude-code/integrations/migrate-python-project Revision: 1 Digest: sha256:bb7d4fa82251edb1 (changes whenever the content changes) Timeline: Created: 2026-11-13T03:02:47Z Last changed: 2026-11-13T03:02:47Z Last verified: 2026-11-20T12:16:47Z Next check: 2026-11-21T12:16:47Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of uninstall command | pip uninstall -y claude-code-sdk | [1] | 2026-11-20 install command | pip install claude-agent-sdk | [1] | 2026-11-20 old import name | claude_code_sdk | [1] | 2026-11-20 new import name | claude_agent_sdk | [1] | 2026-11-20 old package name | claude-code-sdk | [1] | 2026-11-20 new package name | claude-agent-sdk | [1] | 2026-11-20 Sources: [1] Anthropic. "Migrate to Claude Agent SDK". https://code.claude.com/docs/en/agent-sdk/migration-guide.md Role: primary. Accessed: 2026-11-20T12:16:47Z Quote: "pip uninstall -y claude-code-sdk" (Supports: uninstall command) Quote: "pip install claude-agent-sdk" (Supports: install command) Quote: "Change all imports from `claude_code_sdk` to `claude_agent_sdk`:" (Supports: old import name, new import name) Quote: "If `claude-code-sdk` is listed in your `requirements.txt` or `pyproject.toml`, replace it with `claude-agent-sdk`." (Supports: old package name, new package name) Published: 2026-11-20T04:35:57Z Snapshot SHA-256: 68ba58d76121042cb53262a27c8ed7e6f8a1f7713474806742c23b2e85a8da27 (captured 2026-11-13T03:02:47Z) 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:47Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T12:16:47Z. No independent second source is configured for this entry Last successful check: 2026-11-20T12:16:47Z Last attempt: 2026-11-20T12:16:47Z Notes and limitations: Extracted automatically from a single official source (section "Migrate a Python project"). Related: https://latestn.com/tool/claude-code/integrations/migrate-typescript-project How do I migrate a TypeScript or JavaScript project from the Claude Code SDK to the Claude Agent SDK? https://latestn.com/tool/claude-code/integrations/migrate-v2-session-to-query-api How do I migrate Claude Code code from the removed V2 session API to the query() API for multi-turn conversations? https://latestn.com/tool/claude-code/integrations/package-name-changes What package names changed when Claude Code SDK was renamed to Claude Agent SDK? https://latestn.com/tool/claude-code/integrations/mcp-server-sign-in How do I connect an MCP server that requires sign-in in Claude Code? https://latestn.com/tool/claude-code/integrations/mcp-servers-self-hosted-sessions How do I turn off built-in session tools or wait for MCP servers before the first turn in Claude Code self-hosted sessions? https://latestn.com/tool/claude-code/integrations/mcp-transport-types What transport types does Claude Code Agent SDK support for MCP servers (stdio, HTTP/SSE, SDK MCP)? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-13T03:02:47Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/claude-code/integrations/migrate-python-project/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/integrations/migrate-python-project POST: https://latestn.com/dispute/tool/claude-code/integrations/migrate-python-project with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/claude-code/integrations/migrate-python-project?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I migrate a Python project from the Claude Code SDK to the Claude Agent SDK? Revision 1, last verified 2026-11-20T12:16:47Z. https://latestn.com/tool/claude-code/integrations/migrate-python-project (accessed 2026-11-21T09:50:29Z). @misc{LatestN_tool_claude_code_integrations_migrate_python_project_r1, title = {How do I migrate a Python project from the Claude Code SDK to the Claude Agent SDK?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/claude-code/integrations/migrate-python-project}}, note = {Revision 1; digest sha256:bb7d4fa82251edb1; last verified 2026-11-20T12:16:47Z; accessed 2026-11-21T09:50:29Z} } 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/integrations/migrate-python-project