claude-code-sdk-python is the Python SDK for Claude Code, Anthropic’s agentic coding system. It provides abstractions to easily query Claude Code (with streaming support) and conduct interactive sessions. The SDK includes core client classes, asynchronous query functions, and support for custom tools and hooks within Claude sessions. It is designed to integrate with local Python workflows and allow developers to embed Claude Code capabilities directly in their applications or scripts. The repo is MIT-licensed and includes documentation and installation instructions (requires Python 3.10+, Node installation of Claude Code). Example usage shows how to stream responses, parse structured message blocks, or create persistent client sessions.

Features

  • Async query interface (query()) returning streamed response messages
  • ClaudeSDKClient class supporting interactive conversations with tools and hooks
  • Message and content classes (e.g. AssistantMessage, TextBlock) to parse responses
  • Support for embedding tool calls inside agent workflows
  • Integration support for local Python applications, pipelines, or agents
  • Documentation, example usage, and MIT licensing

Project Samples

Project Activity

See All Activity >

Categories

AI Models

License

MIT License

Follow Claude Code SDK Python

Claude Code SDK Python Web Site

Other Useful Business Software
Automate Proposals with AI in Microsoft Word. Icon
Automate Proposals with AI in Microsoft Word.

Streamline proposal creation with the smartest AI, the best content, seamless integration with Microsoft Word, and unmatched efficiency.

Automate your best practices, processes, and standards to guide your proposal writers, sales teams, and subject experts. And don’t worry, it’s so easy to use they will use it. We would love the opportunity to help you quantify the impact your business can expect from investing in Expedience Software. Click here to request a Return on Investment (ROI) calculation. In this 15-minute session, we will ask 20 simple questions to assess and grade your current proposal quality and scalability. Manual proposal processes are likely costing you far more than you realize. These models waste time and kill the productivity of proposal writers, sales team members, senior staff, and subject experts.
Learn More
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Claude Code SDK Python!

Additional Project Details

Programming Language

Python

Related Categories

Python AI Models

Registered

2025-10-03