kagent-claude
Claude Agent SDK integration for kagent with A2A server support.
Overview
kagent-claude enables the Claude Agent SDK to run as a BYO (Bring Your Own) agent inside the kagent platform. It follows the same architectural pattern as kagent-crewai and kagent-langgraph.
Installation
pip install kagent-claude
Quick Start
from claude_agent_sdk import ClaudeAgentOptions
from kagent.claude import KAgentApp
from kagent.core import KAgentConfig
from a2a.types import AgentCard, AgentCapabilities, AgentSkill
app = KAgentApp(
options=ClaudeAgentOptions(
allowed_tools=["Bash", "Read", "WebSearch"],
),
agent_card=AgentCard(
name="my-claude-agent",
description="A Claude-powered kagent agent",
url="http://my-claude-agent:8080/",
version="1.0.0",
capabilities=AgentCapabilities(streaming=True),
default_input_modes=["text"],
default_output_modes=["text"],
skills=[
AgentSkill(
id="code",
name="Code generation",
description="Generates and modifies code",
tags=["coding"],
)
],
),
config=KAgentConfig(
url="http://kagent-controller:8083",
name="my-claude-agent",
namespace="kagent",
),
)
if __name__ == "__main__":
app.run(port=8080)
Session Continuity
The package maps A2A contextId to Claude Agent SDK session_id, enabling multi-turn conversations that preserve Claude's context window across requests within the same context.
Environment Variables
ANTHROPIC_API_KEY— Required for Claude Agent SDK authenticationKAGENT_URL— kagent controller URL (alternative to passing in config)KAGENT_NAME— Agent name (alternative to passing in config)KAGENT_NAMESPACE— Agent namespace (alternative to passing in config)
Metadata
Release files for kagent-claude 0.4.1
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 |
|---|---|---|---|---|
| kagent_claude-0.4.1.tar.gz | 47.2 kB | With provenance | Details for kagent_claude-0.4.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| kagent_claude-0.4.1-py3-none-any.whl | Python 3 | none | any | Details for kagent_claude-0.4.1-py3-none-any.whl |
Total release size: 82.3 kB
Release files / kagent_claude-0.4.1.tar.gz
| Download URL | kagent_claude-0.4.1.tar.gz |
|---|---|
| Size | 47.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7d47371675d7c7a3dd227b605af79e2d3ed2c9a542698be4c665992221499ba2
|
|
BLAKE2b-256 checksum How to use checksums |
16ce74409614465f15e0428202cb3ca3bef9a0ec5345908fd5687ef748b88238
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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 Jun 14, 2026.
Transparency logRelease files / kagent_claude-0.4.1-py3-none-any.whl
| Download URL | kagent_claude-0.4.1-py3-none-any.whl |
|---|---|
| Size | 35.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
91cde8b3e34a98e6b9819c486409c4a08c0908ee0678b5eab669793162494e01
|
|
BLAKE2b-256 checksum How to use checksums |
a8539a07314ba9359cfe0cd5e03213f1eb3599f2f850dca39a8ec52a2acd34c4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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 Jun 14, 2026.
Transparency logSecurity for kagent-claude 0.4.1
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
All 2 files in this release have been uploaded with provenance metadata.
Attestation for kagent_claude-0.4.1.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 Jun 14, 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.