git
ask
hub
Privacy
Terms
Sign in with GitHub
anthropics/claude-agent-sdk-python
↗
Stars ·
7,601
Language ·
Python
License ·
MIT
Simplify and Visualize This Repo
Scan the safety of this repo
Self Host this repo
Check out more work of Developer: anthropics
Ask anything about this repo to start.
Using the Claude Agent SDK for Python, write a script that sends a coding task to Claude, auto-approves file read and write tools, and streams the output to the console.
Show me how to define a custom Python tool for the Claude Agent SDK that queries a SQLite database and returns rows to Claude.
Write a hook for the Claude Agent SDK that intercepts any bash tool call containing 'rm -rf' and blocks it with an error message.
Using ClaudeSDKClient, create a Python script that runs a multi-turn session where Claude refactors a Python file step by step and asks for approval before each change.
Full explanation on explaingit →
📎
Send
By chatting or signing in you agree to the
Terms
and chat-message logging (revocable in
History
).