Metadata-Version: 2.4
Name: waken-sdk
Version: 0.2.0
Summary: Waken SDK: persistent AI agents hosted on the cloud, from Python
License: MIT
Project-URL: Homepage, https://waken.sh
Project-URL: Documentation, https://waken.sh/docs/api
Project-URL: Source, https://github.com/medhychabour/waken
Keywords: ai,agents,waken,claude-code,codex,sdk
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Requires-Python: >=3.9
Description-Content-Type: text/markdown

# waken-sdk

Persistent AI agents hosted on the cloud, from Python. Installed as `waken-sdk`, imported as `waken`. A thin client over the [Waken HTTP API](https://waken.sh/docs/api), no dependencies, Python 3.9+.

```bash
pip install waken-sdk
```

```python
import os
from waken import Waken

waken = Waken(api_key=os.environ["WAKEN_KEY"])

agent = waken.agents.create(
    name="bookkeeper",
    model={"provider": "anthropic", "api_key": os.environ["ANTHROPIC_API_KEY"]},
    spend_cap_usd=10,
)

reply = waken.agents.message(agent["id"], "Sort my March receipts by vendor.")
print(reply["text"])

cp = waken.checkpoints.take(agent["id"])          # a point you can rewind to
waken.checkpoints.restore(agent["id"], cp["id"])  # rewind: files, memory, conversation
```

Everything the API does is here: `agents` (create, list, get, delete, message, sleep, wake, restart, usage, resize, set_model, set_harness, logs, exec), `checkpoints` (take, list, restore), `files` (list, read, read_text, write, mkdir, move, delete, upload_tar), `env` (list, set), `triggers` (schedules and the agent's incoming webhook), `webhooks` (events on all your agents), `harnesses()`. Any other route: `waken.request(method, path, body)`.

Errors raise `WakenError` with `.status` and the API message.

Keys are created in the dashboard, Developers. An agent runs on your own model key, passed at creation and never stored by Waken.
