Skip to main content

Claude Target adapter for Waken — routes waken Events to the Claude Agent SDK.

Project description

waken-claude

CI License: MIT

Claude Target adapter for Waken — "nginx for AI agents." Routes a waken Event to the Claude Agent SDK and returns a Response.

Install

pip install waken-claude

ANTHROPIC_API_KEY must be set in the environment — that's claude_agent_sdk's own convention, nothing waken-specific.

Usage

from waken import Runtime
from waken_claude import ClaudeAdapter

runtime = Runtime()
runtime.target("claude", ClaudeAdapter())
runtime.run()
waken send claude "Build tic tac toe." --wait

ClaudeAdapter keeps a waken session_id -> SDK session id map internally, so a multi-turn conversation (same event.session_id across calls) resumes via the SDK's resume option instead of starting over each turn. Extra keyword arguments passed to ClaudeAdapter(...) are forwarded to ClaudeAgentOptions on every call:

runtime.target("claude", ClaudeAdapter(cwd="/repo", allowed_tools=["Read", "Bash"]))

Development

git clone https://github.com/WakenHQ/waken-claude
cd waken-claude
pip install -e /path/to/waken   # waken isn't on PyPI yet — install it locally first
pip install -e ".[dev]"
pytest

Tests mock claude_agent_sdk.ClaudeSDKClient entirely — no API key or network access needed to run the suite.

waken itself is pre-release and its repo is currently private, so pip install -e ".[dev]" on its own (as CI does) can't resolve the waken>=0.1.0 dependency yet — this is a known, expected gap until waken is published to PyPI, not something this package works around.

License

MIT

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

waken_claude-0.1.0.tar.gz (6.1 kB view details)

Uploaded Source

Built Distribution

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

waken_claude-0.1.0-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

Details for the file waken_claude-0.1.0.tar.gz.

File metadata

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

File hashes

Hashes for waken_claude-0.1.0.tar.gz
Algorithm Hash digest
SHA256 10811a9db2ef1fd3fb2d32cfec338f64021b9633a4974c5cc17540de2c4fde42
MD5 71e169c6e490a3692018c4f1eea98c71
BLAKE2b-256 9f072876f3600181cc547c3cbcdb89f7f2d4df850c2a5c7e3da48fea1f9440ee

See more details on using hashes here.

Provenance

The following attestation bundles were made for waken_claude-0.1.0.tar.gz:

Publisher: publish.yml on WakenHQ/waken-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 waken_claude-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: waken_claude-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for waken_claude-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 71861f98ce70e67275c8617150ce52141db1457ba1463e11cfd5d239c35626f0
MD5 a8e4e840a3956b2e97ac9ec44840c94a
BLAKE2b-256 55730dce93796c2b1eb37e62fdeba1d13e2afecd6ae04580e11bd9d8e48b6d4a

See more details on using hashes here.

Provenance

The following attestation bundles were made for waken_claude-0.1.0-py3-none-any.whl:

Publisher: publish.yml on WakenHQ/waken-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