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.
| Repository | aarch64 | amd64 | armv6 | armv7 | i386 |
|---|---|---|---|---|---|
| FreeBSD:14:latest | - | - | - | - | - |
| FreeBSD:14:quarterly | - | - | n/a | - | - |
| FreeBSD:15:latest | - | - | n/a | - | - |
| FreeBSD:15:quarterly | - | - | n/a | n/a | n/a |
| FreeBSD:16:latest | - | - | n/a | n/a | n/a |
| FreeBSD:16:quarterly | n/a | n/a | n/a | n/a | n/a |
Dependencies
As this port's Makefile names them.
Build 1
${PYTHON_PKGNAMEPREFIX}hatchling>=0: devel/py-hatchling
Runtime 5
claude: misc/claude-code${PYTHON_PKGNAMEPREFIX}anyio>=4.0.0: devel/py-anyio${PYTHON_PKGNAMEPREFIX}jsonschema>=4.20.0: devel/py-jsonschema${PYTHON_PKGNAMEPREFIX}mcp>=1.23.0<3.0.0: misc/py-mcp${PYTHON_PKGNAMEPREFIX}sniffio>=1.0.0: devel/py-sniffio
The full lists below include those, and their dependencies in turn.
Build dependencies 19
- archivers/liblz4
- archivers/zstd
- devel/gettext-runtime
- devel/libffi
- devel/py-build
- devel/py-hatchling
- devel/py-installer
- devel/py-packaging
- devel/py-pathspec
- devel/py-pluggy
- devel/py-pyproject-hooks
- devel/py-trove-classifiers
- devel/readline
- lang/python312
- lang/python315
- math/mpdecimal
- print/indexinfo
- textproc/expat2
- textproc/py-tomlkit
Run dependencies 56
- devel/gettext-runtime
- devel/libffi
- devel/py-Jinja2
- devel/py-annotated-types
- devel/py-anyio
- devel/py-attrs
- devel/py-babel
- devel/py-cffi
- devel/py-click
- devel/py-jsonschema
- devel/py-jsonschema-specifications
- devel/py-multipart
- devel/py-opentelemetry-api
- devel/py-pycparser
- devel/py-pydantic-core
- devel/py-pydantic-settings
- devel/py-pydantic2
- devel/py-pyyaml
- devel/py-referencing
- devel/py-rpds-py
- devel/py-sniffio
- devel/py-typing-extensions
- devel/py-typing-inspection
- devel/readline
- dns/py-idna
- emulators/linux_base-rl9
- lang/python312
- math/mpdecimal
- misc/claude-code
- misc/py-mcp
- misc/py-mcp-types
- net/py-h11
- net/py-socksio
- print/indexinfo
- security/py-certifi
- security/py-cryptography
- security/py-itsdangerous
- security/py-truststore
- shells/bash
- textproc/expat2
- textproc/libyaml
- textproc/py-markupsafe
- www/py-h2
- www/py-hpack
- www/py-httpcore
- www/py-httpcore2
- www/py-httpx
- www/py-httpx-sse
- www/py-httpx2
- www/py-hyperframe
- www/py-pyjwt
- www/py-python-dotenv
- www/py-python-multipart
- www/py-sse-starlette
- www/py-starlette
- www/py-uvicorn
No port depends on this one.
Configuration
No options to configure.
- USES
- python:3.11+
- Service scripts
- none
Files
distinfo 1
| File | Size | SHA256 |
|---|---|---|
| claude_agent_sdk-0.2.168.tar.gz | 371591 | 80388054a09c137d76fc29caa6e46bc90d2ae2ef09fac5ee1c38fc36d2762fda |
Master sites 1
- PYPI