Claude Agent SDK Temporal Integration
Release stage: Pre-release.
Run Claude Code agents from Temporal Workflows with the
Claude Agent SDK. TemporalTransport carries
Claude Code's input and output through Activities, so approvals, hooks, and custom tools run in the
Workflow and survive Worker restarts.
Install
uv add temporalio-claude-agent-sdk
Usage
Use the Claude Agent SDK in the Workflow as usual, and pass it a TemporalTransport with the same
options as the client:
from claude_agent_sdk import ClaudeAgentOptions, ClaudeSDKClient, ResultMessage
from temporalio import workflow
from temporalio.claude_agent_sdk import TemporalTransport
@workflow.defn
class ReviewWorkflow:
@workflow.run
async def run(self) -> str:
options = ClaudeAgentOptions()
transport = TemporalTransport(options)
async with ClaudeSDKClient(options=options, transport=transport) as client:
await client.query("Review utils.py for bugs that would cause crashes.")
async for message in client.receive_response():
if isinstance(message, ResultMessage):
return message.result or ""
return ""
Add ClaudeAgentSDKPlugin to the Worker:
from temporalio.claude_agent_sdk import ClaudeAgentSDKPlugin
from temporalio.worker import Worker
worker = Worker(
client,
task_queue="agents",
workflows=[ReviewWorkflow],
plugins=[ClaudeAgentSDKPlugin()],
)
Documentation
The Temporal documentation covers:
- Custom tools
- Hooks and human approval
- Streaming output
- Running Claude Code outside the Worker
- Recovering from a lost Worker
- Configuration and errors
The samples show each of these end to end.
Metadata
Release files for temporalio-claude-agent-sdk 0.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| temporalio_claude_agent_sdk-0.0.3.tar.gz | 14.2 kB | With provenance | Details for temporalio_claude_agent_sdk-0.0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| temporalio_claude_agent_sdk-0.0.3-py3-none-any.whl | Python 3 | none | any | Details for temporalio_claude_agent_sdk-0.0.3-py3-none-any.whl |
Total release size: 32.2 kB
Release files / temporalio_claude_agent_sdk-0.0.3.tar.gz
| Download URL | temporalio_claude_agent_sdk-0.0.3.tar.gz |
|---|---|
| Size | 14.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9be05eb60e7b6d72fe6ad72916d2100c64a51d918c5fa37065161407b2744a0f
|
|
BLAKE2b-256 checksum How to use checksums |
3166b1a334835d256b84bd5371e430b80dddb1f364bea918ff7734f12d794aab
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 3, 2026.
Transparency logRelease files / temporalio_claude_agent_sdk-0.0.3-py3-none-any.whl
| Download URL | temporalio_claude_agent_sdk-0.0.3-py3-none-any.whl |
|---|---|
| Size | 18.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
506b83f7eaa8464328da18405d0a9775073a7c54da90d4f5d3ffd89b96c7114d
|
|
BLAKE2b-256 checksum How to use checksums |
75256f51c69ec907089c90239b1281da0d1558472fc571aff37c486a4e9c9ad9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 3, 2026.
Transparency logSecurity for temporalio-claude-agent-sdk 0.0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for temporalio_claude_agent_sdk-0.0.3.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 3, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.