Skip to main content

Claude Agent SDK integration for KAgent with A2A server support

Reason this release was yanked:

Incorrect version tag

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 authentication
  • KAGENT_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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

kagent_claude-0.2.0.tar.gz (33.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

kagent_claude-0.2.0-py3-none-any.whl (28.4 kB view details)

Uploaded Python 3

File details

Details for the file kagent_claude-0.2.0.tar.gz.

File metadata

  • Download URL: kagent_claude-0.2.0.tar.gz
  • Upload date:
  • Size: 33.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for kagent_claude-0.2.0.tar.gz
Algorithm Hash digest
SHA256 513d01c204d5274b6ad686bf63c9f6616c3ec594827fea61b76d97332aea7fc3
MD5 dfb599e429718b7449ceb4211fb31ad7
BLAKE2b-256 ef2644ca3c44414ad88015fc86b1d14c3a19e62d93c97b401fff41555ff08df1

See more details on using hashes here.

Provenance

The following attestation bundles were made for kagent_claude-0.2.0.tar.gz:

Publisher: ci.yml on ganttastic/kagent-claude

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file kagent_claude-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: kagent_claude-0.2.0-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

Hashes for kagent_claude-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c7afbbd8862cc69ac77e9bb24c1a648be853223e2f42893d188c45bc43c7bd39
MD5 4e91a52c12fbcd997589e3526e042a35
BLAKE2b-256 31c7405f2a56dcf7e504d621e94d8c91c58e1a2788c1ff20856c036b8faa1568

See more details on using hashes here.

Provenance

The following attestation bundles were made for kagent_claude-0.2.0-py3-none-any.whl:

Publisher: ci.yml on ganttastic/kagent-claude

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page