BSD Ports

misc/py-claude-agent-sdk 0.2.168 FreeBSD

Python SDK for building agents on top of Claude Code

System
FreeBSD
Repository
FreeBSD ports
Maintainer
[email protected]
Port added
Last update
Commit
f26f985e48
License
MIT
Categories
misc, python

Description

The Claude Agent SDK lets Python programs drive Claude Code as an agent. It starts the claude command line tool as a subprocess and exchanges structured messages with it, so applications can run queries, hold interactive sessions, define their own tools as in-process MCP servers, hook into tool use and control permissions.

Install

Binary package:

pkg install py312-claude-agent-sdk

From the ports tree:

cd /usr/ports/misc/py-claude-agent-sdk/ && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	py312-claude-agent-sdk>0:misc/py-claude-agent-sdk

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest-----
FreeBSD:14:quarterly--n/a--
FreeBSD:15:latest--n/a--
FreeBSD:15:quarterly--n/an/an/a
FreeBSD:16:latest--n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

As this port's Makefile names them.

Build 1

Runtime 5

The full lists below include those, and their dependencies in turn.

Build dependencies 19
Run dependencies 56

No port depends on this one.

Configuration

No options to configure.

USES
python:3.11+
Service scripts
none

Files

distinfo 1
FileSizeSHA256
claude_agent_sdk-0.2.168.tar.gz37159180388054a09c137d76fc29caa6e46bc90d2ae2ef09fac5ee1c38fc36d2762fda
Master sites 1
  • PYPI

Commit history 2

DateCommitCreditsLog message
f26f985e48 Jochen Neumeister misc/py-claude-agent-sdk: Drop version from claude-code dependency
The tree already has a newer misc/claude-code, so the minimum version is pointless. Sponsored by: Netzkommune GmbH
dbdad757e3 Jochen Neumeister misc/py-claude-agent-sdk: Add New Port
The Claude Agent SDK lets Python programs drive Claude Code as an agent: run queries, hold interactive sessions, define in-process MCP tools, hook into tool use and control permissions. The PyPI wheels bundle a platform-specific claude binary; the port builds from the sdist instead and depends on misc/claude-code, which the SDK finds via PATH. The dependency is on the package rather than the claude binary, because misc/claude-code-legacy installs the same file but is older than 2.1.248, which the SDK needs for verbatim prompts. ONLY_FOR_ARCHS follows misc/claude-code. Sponsored by: Netzkommune GmbH