ForkFree

Developer tools

claude-agent-sdk-python

by anthropics

A Python library that lets you control Claude Code from your own programs. It is for building custom AI agents that can read and write files, run commands and call tools you define.

Worth a lookEstablished, with a few things to check (listed below).

View on GitHub

Stars
8.4k
Licence
MIT
Runs on
Your computer
Setup
Moderate
Language
Python
Age
503 days

What you can do with it

  • Send prompts to Claude Code from a Python script and read the replies as they stream in
  • Write your own Python functions as custom tools that Claude can call
  • Add hooks and permission rules to control what the agent is allowed to do

Make money with it

A freelancer could build and sell bespoke AI automation tools for clients using the SDK.

An idea, not financial advice. Check the licence before charging for anything built on it.

Ways a business could use it

  • Build an internal assistant that edits files, writes reports or tidies up code for your team
  • Automate repetitive admin or coding jobs by scripting Claude to run them on a schedule

Can you use it commercially?

Free to use, change and sell, including in paid products. Keep the copyright notice.

Not legal advice. Read the project's licence file before building a product on it.

Getting it running

Install with "pip install claude-agent-sdk" on Python 3.10 or newer; the Claude Code command-line tool is bundled with it.

Follow the official instructions in the project README.

Things to check

  • Needs an Anthropic account or API access, which is paid by usage
  • Agents can run commands and edit files, so permissions need careful setting

Checked 27 Oct 2026. Summary drafted by AI from the project's README.

More in Developer tools

gpu-unlock Zagitta
Check the licence

This tool unlocks the FP/BF16 instruction issue rate on Nvidia 3000-series cards, doubling the speed of certain operations.

10.4k stars +1058 a day Unclear
graphify Graphify-Labs
Worth a look

Graphify turns a codebase, along with its documents, PDFs, SQL schemas and configuration files, into a graph of connected concepts that you can search and question. It works as a /graphify command inside AI coding assistants such as Claude Code, Cursor, Codex and Gemini CLI, so they can look things up in the graph instead of reading every file.

136.4k stars +430 a day Apache-2.0
archify tt-a1i
Worth a look

Archify is a skill you add to an AI coding agent such as Claude Code, Codex, Cursor or OpenCode. It turns a description, plan or code repository into an interactive HTML diagram or one-page explainer that you can explore and share.

90.1k stars +339 a day Apache-2.0