|
| 1 | +# AgentWrit Documentation |
| 2 | + |
| 3 | +AgentWrit is an open-source credential broker for AI agents. It issues short-lived, scope-attenuated tokens so agents operate with only the permissions their task requires — nothing more, nothing longer. |
| 4 | + |
| 5 | +--- |
| 6 | + |
| 7 | +## The Book of AgentWrit |
| 8 | + |
| 9 | +Start here. These pages explain what AgentWrit is, why it exists, and how every piece fits together. |
| 10 | + |
| 11 | +| Page | What you'll learn | |
| 12 | +|------|-------------------| |
| 13 | +| [What Is AgentWrit?](agentwrit-explained.md) | The problem, the solution, and the three token types — no prior knowledge required | |
| 14 | +| [Foundations](foundations.md) | What tokens are, why they beat API keys, and how JWTs work under the hood | |
| 15 | +| [The Three Actors](roles.md) | Operator, Application, Agent — who holds what token and why | |
| 16 | +| [Scopes and Permissions](scope-model.md) | The `action:resource:identifier` format, coverage rules, and the four enforcement points | |
| 17 | +| [The Credential Lifecycle](credential-model.md) | Every credential's claims, TTLs, and how they flow through the attenuation chain | |
| 18 | +| [Design Decisions](design-decisions.md) | Why we chose JWTs, Ed25519, SPIFFE, hash-chained audit, and everything else | |
| 19 | + |
| 20 | +--- |
| 21 | + |
| 22 | +## Getting Started |
| 23 | + |
| 24 | +Hands-on guides for each persona. Pick the one that matches your role. |
| 25 | + |
| 26 | +| If you are... | Start here | |
| 27 | +|---------------|-----------| |
| 28 | +| **Just trying AgentWrit** to see how it works | [Your First Five Minutes](getting-started-user.md) | |
| 29 | +| **Building an AI agent** in Python, TypeScript, or Go | [Getting Started: Developer](getting-started-developer.md) | |
| 30 | +| **Deploying AgentWrit** in production | [Getting Started: Operator](getting-started-operator.md) | |
| 31 | + |
| 32 | +--- |
| 33 | + |
| 34 | +## Guides |
| 35 | + |
| 36 | +Deeper walkthroughs for specific tasks and patterns. |
| 37 | + |
| 38 | +| Guide | What it covers | |
| 39 | +|-------|---------------| |
| 40 | +| [Common Tasks](common-tasks.md) | Token renewal, delegation, revocation, audit queries — the everyday operations | |
| 41 | +| [Integration Patterns](integration-patterns.md) | Resource server validation, multi-agent orchestration, cloud federation | |
| 42 | +| [Scenarios](scenarios.md) | End-to-end walkthroughs: data pipeline agent, customer service bot, CI/CD runner | |
| 43 | +| [Troubleshooting](troubleshooting.md) | Common errors, what causes them, and how to fix them | |
| 44 | + |
| 45 | +--- |
| 46 | + |
| 47 | +## Reference |
| 48 | + |
| 49 | +Lookup documentation for endpoints, CLI commands, and internals. |
| 50 | + |
| 51 | +| Reference | What it covers | |
| 52 | +|-----------|---------------| |
| 53 | +| [API Reference](api.md) | All 19 HTTP endpoints — request/response formats, error codes, rate limits | |
| 54 | +| [CLI Reference (awrit)](awrit-reference.md) | Every `awrit` command with examples and output formats | |
| 55 | +| [Architecture](architecture.md) | Internal package map, component diagrams, data flow | |
| 56 | +| [Implementation Map](implementation-map.md) | Where every feature lives in the codebase — file paths, function names, test locations | |
| 57 | +| [Concepts Deep Dive](concepts.md) | The full security pattern, industry context, and all eight components | |
| 58 | + |
| 59 | +--- |
| 60 | + |
| 61 | +## Live Demos |
| 62 | + |
| 63 | +See AgentWrit in action with the [Python SDK](https://github.com/devonartis/agentauth-python) demo applications: |
| 64 | + |
| 65 | +| Demo | What it shows | |
| 66 | +|------|-------------| |
| 67 | +| **[MedAssist AI](https://github.com/devonartis/agentauth-python/tree/main/demo)** | Healthcare multi-agent pipeline — clinical, prescription, and billing agents operating under strict scope isolation with LLM tool-calling, delegation, and per-patient scoping | |
| 68 | +| **[Support Ticket Zero-Trust](https://github.com/devonartis/agentauth-python/tree/main/demo2)** | Three LLM-driven agents processing support tickets with broker-issued scoped credentials, streaming execution via SSE, and natural token expiry | |
| 69 | + |
| 70 | +Both demos run against a real AgentWrit broker and show the full credential lifecycle: agent registration, scope enforcement, delegation, renewal, release, and revocation. |
| 71 | + |
| 72 | +--- |
| 73 | + |
| 74 | +## Reading Order |
| 75 | + |
| 76 | +If you're new, this path gets you productive fastest: |
| 77 | + |
| 78 | +``` |
| 79 | +What Is AgentWrit? → Your First Five Minutes → Pick your persona guide |
| 80 | + ↓ ↓ |
| 81 | + Foundations → The Three Actors → Scopes → Common Tasks |
| 82 | +``` |
| 83 | + |
| 84 | +If you're evaluating AgentWrit for your organization, start with [What Is AgentWrit?](agentwrit-explained.md) — it's written for people who aren't deeply technical. |
| 85 | + |
| 86 | +If you're a security reviewer, start with [Concepts Deep Dive](concepts.md) and [Architecture](architecture.md). |
0 commit comments