🧬Anthropic SDK
Also known as Anthropic Client SDK, Claude Client SDK, anthropic Python package, @anthropic-ai/sdk
Anthropic's own code kit. Your code calls Claude with one short function.
Think of it like
It is like a phone with one number saved. You tap once, and the call goes through.
Example
Why it matters
It is the quickest way to reach Claude from code. Typed fields let your editor catch a wrong name before you run it.
Definition
Example code
python
import anthropic
client = anthropic.Anthropic() # reads ANTHROPIC_API_KEY
message = client.messages.create(
model="claude-sonnet-5-5",
max_tokens=200,
messages=[{"role": "user", "content": "Hello, Claude"}],
)
print(message.content[0].text)