Claude Agent SDK integration for KAgent with A2A server support
Project description
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)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file kagent_claude-0.3.15.tar.gz.
File metadata
- Download URL: kagent_claude-0.3.15.tar.gz
- Upload date:
- Size: 33.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f03934bc450b3eaf61ba1e4b383170bbf3729138277dbe5c7307b720ba53dd0f
|
|
| MD5 |
c0482722c05dc94fc70cec5c2078edd5
|
|
| BLAKE2b-256 |
42d8deaa25f97807a2b73803abb42e6d176f52da989f5a5d25e747a77d06007e
|
Provenance
The following attestation bundles were made for kagent_claude-0.3.15.tar.gz:
Publisher:
ci.yml on ganttastic/kagent-claude
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
kagent_claude-0.3.15.tar.gz -
Subject digest:
f03934bc450b3eaf61ba1e4b383170bbf3729138277dbe5c7307b720ba53dd0f - Sigstore transparency entry: 1742609774
- Sigstore integration time:
-
Permalink:
ganttastic/kagent-claude@7c9702f6adaa097eb8aaa130f86e13ece5887a04 -
Branch / Tag:
refs/tags/v0.3.15 - Owner: https://github.com/ganttastic
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci.yml@7c9702f6adaa097eb8aaa130f86e13ece5887a04 -
Trigger Event:
push
-
Statement type:
File details
Details for the file kagent_claude-0.3.15-py3-none-any.whl.
File metadata
- Download URL: kagent_claude-0.3.15-py3-none-any.whl
- Upload date:
- Size: 28.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3b8a2b26b44910220943e34004817f70e15fabeea63956dbf7492b212f9c1ed7
|
|
| MD5 |
bc4fb3a89a5e775acacc502baacaff59
|
|
| BLAKE2b-256 |
3b7182100ab8f43ac2d521be0194be39cc5467042d96551fe06a67c44f09f68e
|
Provenance
The following attestation bundles were made for kagent_claude-0.3.15-py3-none-any.whl:
Publisher:
ci.yml on ganttastic/kagent-claude
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
kagent_claude-0.3.15-py3-none-any.whl -
Subject digest:
3b8a2b26b44910220943e34004817f70e15fabeea63956dbf7492b212f9c1ed7 - Sigstore transparency entry: 1742609889
- Sigstore integration time:
-
Permalink:
ganttastic/kagent-claude@7c9702f6adaa097eb8aaa130f86e13ece5887a04 -
Branch / Tag:
refs/tags/v0.3.15 - Owner: https://github.com/ganttastic
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci.yml@7c9702f6adaa097eb8aaa130f86e13ece5887a04 -
Trigger Event:
push
-
Statement type: