You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CLAUDE.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
# AgentAuth Python SDK
1
+
# AgentWrit Python SDK
2
2
3
3
## Rules
4
4
@@ -38,5 +38,5 @@ uv run pytest tests/unit/ # unit tests
38
38
-**Read `~/proj/devflow/agentwrit-python/MEMORY.md` first** every session — it has current state and lessons.
39
39
-**Read `~/proj/devflow/agentwrit-python/FLOW.md`** for decision history and what's next.
40
40
-**Use `devflow-client`** skill for all development work.
41
-
-**API source of truth:**`broker/docs/api.md` — always verify SDK calls against it.
42
-
-**Live broker for verification:** Stand up broker via `./broker/scripts/stack_up.sh` (pulls `devonartis/agentwrit` from Docker Hub).
41
+
-**API source of truth:**[https://github.com/devonartis/agentwrit/blob/main/docs/api.md](https://github.com/devonartis/agentwrit/blob/main/docs/api.md) — always verify SDK calls against it.
42
+
-**Live broker for verification:** Stand up broker via `docker compose up -d` (pulls `devonartis/agentwrit` from Docker Hub).
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+10-10Lines changed: 10 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
# Contributing to AgentAuth Python
1
+
# Contributing to AgentWrit Python
2
2
3
3
Thank you for helping improve this SDK. This document describes how we work and what we need to review a pull request with confidence.
4
4
@@ -8,7 +8,7 @@ This project is released under the [MIT License](LICENSE). By contributing, you
8
8
9
9
## What belongs in this repository
10
10
11
-
This repo is the **open-source Python SDK** for the AgentAuth broker: challenge-response registration, scoped agents, delegation, validation, and related helpers.
11
+
This repo is the **open-source Python SDK** for the AgentWrit broker: challenge-response registration, scoped agents, delegation, validation, and related helpers.
12
12
13
13
**Do not add** HITL flows, OIDC or cloud identity federation, or enterprise-only sidecar integrations. Those belong in separate products or extensions.
14
14
@@ -23,15 +23,15 @@ This repo is the **open-source Python SDK** for the AgentAuth broker: challenge-
23
23
24
24
(`--all-extras` pulls in `dev` optional dependencies used by tests and tooling.)
25
25
26
-
- For HTTP behavior, treat [`broker/docs/api.md`](broker/docs/api.md) as the integration contract (vendored API description in this repo).
26
+
- For HTTP behavior, treat [https://github.com/devonartis/agentwrit/blob/main/docs/api.md](https://github.com/devonartis/agentwrit/blob/main/docs/api.md) as the integration contract.
27
27
28
-
## You need a running AgentAuth broker
28
+
## You need a running AgentWrit broker
29
29
30
30
Maintainers will not merge broker-facing changes on faith. You must exercise the SDK against a **live** broker.
31
31
32
32
**Do not assume** a copy of the broker exists inside your clone of this repository. If you have a local checkout that includes a `broker/` tree, that is optional tooling; **contributors should obtain the server from the broker project** or use a deployment they already run.
33
33
34
-
1.**Run the broker from source** — Clone [github.com/devonartis/agentauth](https://github.com/devonartis/agentauth) and follow that repository’s instructions to build and run the stack (Docker or otherwise).
34
+
1.**Run the broker from source** — Clone [github.com/devonartis/agentwrit](https://github.com/devonartis/agentwrit) and follow that repository's instructions to build and run the stack (Docker or otherwise).
35
35
36
36
2.**Or use an existing broker** you control — Point tests and demos at its base URL and register an application with a scope ceiling appropriate for the tests you run.
37
37
@@ -40,10 +40,10 @@ Maintainers will not merge broker-facing changes on faith. You must exercise the
40
40
4.**Export credentials** (example — adjust host and secrets):
41
41
42
42
```bash
43
-
exportAGENTAUTH_BROKER_URL=http://127.0.0.1:8080
44
-
exportAGENTAUTH_ADMIN_SECRET=<admin-secret>
45
-
exportAGENTAUTH_CLIENT_ID=<client_id>
46
-
exportAGENTAUTH_CLIENT_SECRET=<client_secret>
43
+
exportAGENTWRIT_BROKER_URL=http://127.0.0.1:8080
44
+
exportAGENTWRIT_ADMIN_SECRET=<admin-secret>
45
+
exportAGENTWRIT_CLIENT_ID=<client_id>
46
+
exportAGENTWRIT_CLIENT_SECRET=<client_secret>
47
47
```
48
48
49
49
## Checks to run before opening a PR
@@ -82,4 +82,4 @@ Demo work under [`demo/`](demo/) should follow the same rule: run against a real
82
82
83
83
## Security issues
84
84
85
-
Please report security-sensitive problems through [GitHub Security Advisories](https://github.com/devonartis/agentauth-python/security/advisories) for this repository (or the maintainer’s preferred private channel if one is published elsewhere). Do not file exploitable details in public issues before they are addressed.
85
+
Please report security-sensitive problems through [GitHub Security Advisories](https://github.com/devonartis/agentauth-python/security/advisories) for this repository (or the maintainer's preferred private channel if one is published elsewhere). Do not file exploitable details in public issues before they are addressed.
AI agents need credentials to access databases, APIs, and file systems. Most teams give agents shared API keys or inherit user permissions — both create over-privileged, long-lived, unauditable access. AgentAuth takes a different approach:
22
+
AI agents need credentials to access databases, APIs, and file systems. Most teams give agents shared API keys or inherit user permissions — both create over-privileged, long-lived, unauditable access. AgentWrit takes a different approach:
23
23
24
24
-**Ephemeral identities** — every agent gets a unique Ed25519 keypair, generated in memory and never persisted to disk
25
25
-**Task-scoped tokens** — credentials are limited to exactly what the agent needs (`read:data:customers`, not `read:*:*`)
26
26
-**Short-lived by default** — tokens expire in minutes, not hours or days
27
27
-**Delegation chains** — agents can delegate narrower permissions to other agents, enforced at every hop
28
28
29
-
This SDK is the Python client for the [AgentAuth broker](https://github.com/devonartis/agentauth). The broker is the credential authority; this SDK makes it easy to integrate from Python.
29
+
This SDK is the Python client for the [AgentWrit broker](https://github.com/devonartis/agentwrit). The broker is the credential authority; this SDK makes it easy to integrate from Python.
30
30
31
31
## Installation
32
32
33
33
```bash
34
-
uv add agentauth
34
+
uv add agentwrit
35
35
```
36
36
37
37
Or with pip:
38
38
39
39
```bash
40
-
pip install agentauth
40
+
pip install agentwrit
41
41
```
42
42
43
-
**Requirements:** Python 3.10+ and a running [AgentAuth broker](https://github.com/devonartis/agentauth) instance.
43
+
**Requirements:** Python 3.10+ and a running [AgentWrit broker](https://github.com/devonartis/agentwrit) instance.
44
44
45
45
## Quick Start
46
46
47
47
```python
48
48
import os
49
-
fromagentauthimportAgentAuthApp, validate
49
+
fromagentwritimportAgentWritApp, validate
50
50
51
51
# Connect to the broker (lazy — no auth until first create_agent)
The [`demo/`](demo/) directory contains **MedAssist AI** — an interactive healthcare demo that showcases every AgentAuth capability against a live broker.
103
+
The [`demo/`](demo/) directory contains **MedAssist AI** — an interactive healthcare demo that showcases every AgentWrit capability against a live broker.
104
104
105
105
**What it does:** A FastAPI web app where you enter a patient ID and a plain-language request. A local LLM (OpenAI-compatible) chooses which tools to call. The app dynamically creates broker agents with only the scopes those tools need, for that specific patient. You see scope enforcement, cross-patient denial, delegation, token renewal, and release — all in a real-time execution trace.
106
106
@@ -118,11 +118,11 @@ The [`demo/`](demo/) directory contains **MedAssist AI** — an interactive heal
118
118
### Running the demo
119
119
120
120
```bash
121
-
# 1. Start the AgentAuth broker
122
-
cd broker && ./scripts/stack_up.sh &&cd ..
121
+
# 1. Start the AgentWrit broker
122
+
docker compose up -d
123
123
124
124
# 2. Register the demo app with the broker (one-time setup)
125
-
exportAGENTAUTH_ADMIN_SECRET="your-admin-secret"
125
+
exportAGENTWRIT_ADMIN_SECRET="your-admin-secret"
126
126
uv run python demo/setup.py
127
127
# → Prints client_id and client_secret
128
128
@@ -150,7 +150,7 @@ read:data:* — wildcard: read ANY data resource
150
150
Wildcard `*` only works in the identifier (third) position. Action and resource must match exactly.
@@ -248,7 +248,7 @@ Delegated Agent (sub-agent, max 5 hops)
248
248
|[API Reference](docs/api-reference.md)| Every class, method, parameter, and exception |
249
249
|[Testing Guide](docs/testing-guide.md)| Unit tests, integration tests, running the test suite |
250
250
251
-
For broker setup and administration, see the [AgentAuth broker documentation](https://github.com/devonartis/agentauth/tree/main/docs).
251
+
For broker setup and administration, see the [AgentWrit broker documentation](https://github.com/devonartis/agentwrit/tree/main/docs).
252
252
253
253
## Standards Alignment
254
254
@@ -262,7 +262,7 @@ For broker setup and administration, see the [AgentAuth broker documentation](ht
262
262
263
263
## Contributing
264
264
265
-
See **[CONTRIBUTING.md](CONTRIBUTING.md)** for the full workflow: `uv` setup, **live-broker** verification (clone [agentauth](https://github.com/devonartis/agentauth) or use your own broker), and **evidence to include in PRs** so maintainers can review broker-facing changes confidently.
265
+
See **[CONTRIBUTING.md](CONTRIBUTING.md)** for the full workflow: `uv` setup, **live-broker** verification (clone [agentwrit](https://github.com/devonartis/agentwrit) or use your own broker), and **evidence to include in PRs** so maintainers can review broker-facing changes confidently.
266
266
267
267
Quick local checks (no broker required for unit tests):
268
268
@@ -280,4 +280,4 @@ uv run pytest tests/unit/
280
280
281
281
This SDK is licensed under the [MIT License](LICENSE).
282
282
283
-
The [AgentAuth broker](https://github.com/devonartis/agentauth) is licensed separately under AGPL-3.0. See the broker repo for details.
283
+
The [AgentWrit broker](https://github.com/devonartis/agentwrit) is licensed separately under AGPL-3.0. See the broker repo for details.
0 commit comments