Find tools › Open-source projects › Automate busywork

claude-agent-sdk-python

Open-source project · by anthropics

Anthropic's Python toolkit that lets your own program use Claude Code to read, edit and run things.

For developersWell known37,354,575 installs a month

What it costs

Free and open source; you may pay for the AI model it uses.

Use it to

  • Run Claude Code tasks automatically from a Python script
  • Give Claude custom tools written in Python
  • Build a helper that edits files in a set folder

How to start

  1. Make sure you have Python and paid Claude access.

  2. In a terminal, run pip install claude-agent-sdk.

  3. Write a short Python script that sends Claude a task, following the README.

  4. Limit which tools it may use, since it can run commands by default.

Good to know. By default the agent has the full Claude Code toolset, including Bash and file writes, so set allowed_tools and permission_mode deliberately. It bundles the Claude Code CLI and needs Claude access, which is billed. Some options require specific CLI versions.

Before you install

  • Checked by a personWe read what it does before listing it.
  • License: MITYou are allowed to use it under these terms.
  • Last updated 2026-11-18

More detail

Anthropic's MIT-licensed Python SDK that lets your own program drive Claude Code, with its file, edit and shell tools, plus custom tools and hooks that you write in Python.

Use it when you want to build your own agent or automation on the same engine as Claude Code, for example a bot that edits files in a repo, without building the agent loop yourself.

Similar tools

Descriptions are written in plain English from each project's own documentation and refreshed by our agent; this one was last checked 2026-09-29. Spotted a mistake? · Open in Find tools · © 2026 Which AI Map