Search engines are not blocked. Try using "site:www.freshports.org" and your search terms.
Volunteers wanted to help translate FreshPorts
Searches without login should now work. You must get asked to click a button.
Port details
py-claude-agent-sdk Python SDK for building agents on top of Claude Code
0.2.173 miscnew! Σ=0 search for ports that depend on this port Find issues related to this port Report an issue related to this port View this port on Repology. pkg-fallout Package not present on quarterly.This port was created during this quarter. It will be in the next quarterly branch but not the current one.
Maintainer: joneum@FreeBSD.org search for ports maintained by this maintainer
Port Added: 2026-10-21 08:15:23
Last Update: 2026-10-24 16:40:46
Commit Hash: d225ccd
Also Listed In: python
License: MIT
WWW:
https://github.com/anthropics/claude-agent-sdk-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.
Homepage    cgit ¦ Codeberg ¦ GitHub ¦ GitLab ¦ SVNWeb - no subversion history for this port

Manual pages: #
FreshPorts has no man page information for this port.
pkg-plist: as obtained via: make generate-plist #
There is no configure plist information for this port.
USE_RC_SUBR (Service Scripts)
  • no SUBR information found for this port
Dependency lines:
  • ${PYTHON_PKGNAMEPREFIX}claude-agent-sdk>0:misc/py-claude-agent-sdk@${PY_FLAVOR}
To install the port: #
cd /usr/ports/misc/py-claude-agent-sdk/ && make install clean
To add the package, run one of these commands:
  • pkg install misc/py-claude-agent-sdk
  • pkg install py312-claude-agent-sdk
NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above.
NOTE: This is a Python port. Instead of py312-claude-agent-sdk listed in the above command, you can pick from the names under the Packages section.
PKGNAME: py312-claude-agent-sdk
Package flavors (<flavor>: <package>) #
  • py312: py312-claude-agent-sdk
ONLY_FOR_ARCHS: aarch64 amd64
distinfo: #
TIMESTAMP = 1792800188 SHA256 (claude_agent_sdk-0.2.173.tar.gz) = b989622735b3dd989cd830c9d2a9c10955090793288d36aabfb3bada873ac50b SIZE (claude_agent_sdk-0.2.173.tar.gz) = 398742

Packages (timestamps in pop-ups are UTC): #
py312-claude-agent-sdk
ABIaarch64amd64armv6armv7i386
FreeBSD:14:latest-0.2.168---
FreeBSD:14:quarterly-----
FreeBSD:15:latest-0.2.168n/a-n/a
FreeBSD:15:quarterly--n/a-n/a
FreeBSD:16:latest-0.2.168n/a-n/a
Dependencies #
NOTE: FreshPorts displays only information on required and default dependencies. Optional dependencies are not covered.
Build dependencies: #
  1. py312-hatchling>=0 : devel/py-hatchling@py312
  2. python3.12 : lang/python312
  3. py312-build>=0 : devel/py-build@py312
  4. py312-installer>=0 : devel/py-installer@py312
Test dependencies: #
  1. python3.12 : lang/python312
Runtime dependencies: #
  1. claude : misc/claude-code
  2. py312-anyio>=4.0.0 : devel/py-anyio@py312
  3. py312-jsonschema>=4.20.0 : devel/py-jsonschema@py312
  4. py312-mcp>=1.23.0<3.0.0 : misc/py-mcp@py312
  5. py312-sniffio>=1.0.0 : devel/py-sniffio@py312
  6. python3.12 : lang/python312
There are no ports dependent upon this port #

Configuration Options: #
No options to configure
Options name: #
misc_py-claude-agent-sdk
USES: #
python:3.11+
FreshPorts was unable to extract/find any pkg message #
Master Sites: #
Expand this list (2 items)
Collapse this list.
  1. https://files.pythonhosted.org/packages/source/c/claude_agent_sdk/
  2. https://pypi.org/packages/source/c/claude_agent_sdk/
Collapse this list.

Number of commits found: 3 #

Commit History - (may be incomplete: for full details, see links to repositories near top of page)
CommitCreditsLog message
0.2.173
24 Oct 2026 16:40:46
commit hash: d225ccd1d900091b5d63e72e2ba6353134717cf2commit hash: d225ccd1d900091b5d63e72e2ba6353134717cf2commit hash: d225ccd1d900091b5d63e72e2ba6353134717cf2commit hash: d225ccd1d900091b5d63e72e2ba6353134717cf2 files touched by this commit
Jochen Neumeister (joneum) search for other commits by this committer
misc/py-claude-agent-sdk: Update to 0.2.173

get_session_messages and get_session_messages_from_store now return
every tool call and result from turns that ran tools in parallel.

Changes:	https://github.com/anthropics/claude-agent-sdk-python/blob/v0.2.173/CHANGELOG.md
Sponsored by:	Netzkommune GmbH
0.2.168
21 Oct 2026 14:23:16
commit hash: f26f985e488b3655225b8b3ed752748232231a17commit hash: f26f985e488b3655225b8b3ed752748232231a17commit hash: f26f985e488b3655225b8b3ed752748232231a17commit hash: f26f985e488b3655225b8b3ed752748232231a17 files touched by this commit
Jochen Neumeister (joneum) search for other commits by this committer
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
0.2.168
21 Oct 2026 08:13:40
commit hash: dbdad757e31b5bbeb8b1b14321f7fd62c2cbec32commit hash: dbdad757e31b5bbeb8b1b14321f7fd62c2cbec32commit hash: dbdad757e31b5bbeb8b1b14321f7fd62c2cbec32commit hash: dbdad757e31b5bbeb8b1b14321f7fd62c2cbec32 files touched by this commit
Jochen Neumeister (joneum) search for other commits by this committer
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

Number of commits found: 3