惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
人人都是产品经理
人人都是产品经理
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
T
The Exploit Database - CXSecurity.com
N
News and Events Feed by Topic
Latest news
Latest news
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
C
CXSECURITY Database RSS Feed - CXSecurity.com
IT之家
IT之家
V
V2EX
WordPress大学
WordPress大学
Apple Machine Learning Research
Apple Machine Learning Research
Cisco Talos Blog
Cisco Talos Blog
K
Kaspersky official blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
S
SegmentFault 最新的问题
小众软件
小众软件
A
Arctic Wolf
酷 壳 – CoolShell
酷 壳 – CoolShell
腾讯CDC
宝玉的分享
宝玉的分享
Last Week in AI
Last Week in AI
G
GRAHAM CLULEY
罗磊的独立博客
T
Tor Project blog
C
Cisco Blogs
美团技术团队
博客园 - Franky
月光博客
月光博客
博客园 - 三生石上(FineUI控件)
T
Threat Research - Cisco Blogs
Cyberwarzone
Cyberwarzone
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
有赞技术团队
有赞技术团队
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Security Latest
Security Latest
博客园 - 司徒正美
Hugging Face - Blog
Hugging Face - Blog
Spread Privacy
Spread Privacy
J
Java Code Geeks
C
CERT Recently Published Vulnerability Notes
大猫的无限游戏
大猫的无限游戏
S
Securelist
The Cloudflare Blog
博客园 - 叶小钗
D
Darknet – Hacking Tools, Hacker News & Cyber Security
阮一峰的网络日志
阮一峰的网络日志
雷峰网
雷峰网
Project Zero
Project Zero

Hacker News - Newest: "AI"

AI can't read an investor deck AI as an attorney? Student uses ChatGPT, Gemini to sue UW over alleged racial discrimination Hacking MCP Servers in AI Systems – The Rug Pull: Tool Changes After Approval GitHub - MeepCastana/KubeezCut: Free Web based video editor GitHub - GenAI-Gurus/awesome-eu-ai-act: Curated tools, official sources, OSS, templates, and guides for EU AI Act compliance. Can AI judge journalism? A Thiel-backed startup says yes, even if it risks chilling whistleblowers Coming soon: 10 Things That Matter in AI Right Now DARPA built an AI to fact-check enemy weapons claims What explains heterogeneity in AI adoption? When AI Meets Muscle: Context-Aware Electrical Stimulation Promises a New Way to Guide Human Movements - Department of Computer Science AI Changed How We Build. It Did Not Change What Matters. Linux rules on using AI-generated code - Copilot is OK, but humans must take 'full responsibility for the… Meta spins up AI version of Mark Zuckerberg to engage with employees Code Mode: Let Your AI Write Programs, Not Just Call Tools | TanStack Blog GitHub - Delavalom/graft: Go framework for building AI agents. Type-safe tools, multi-provider (OpenAI, Anthropic, Gemini, Bedrock), zero vendor SDKs. India's TCS tops estimates, says new AI models did not dent services demand Gen Z's fading AI hype Strong feeling: we are in a folded AI reality GitHub - machinarii/total-recall-catalog: A reference catalog of latest knowledge retrieval, memory & RAG systems GitHub - mensfeld/code-on-incus: Give each AI agent its own isolated machine with root, Docker, and systemd. Active defense detects and stops threats automatically.. Quantization, LoRA, and the 8% Problem: Benchmarking Local LLMs for Production AI Iran war: We spoke to the man making Lego-style AI videos that experts say are powerful propaganda Powell, Bessent discussed Anthropic's Mythos AI cyber threat with major U.S. banks GitHub - immartian/bellamem: Persistent belief-graph memory for AI agents. Retrieves decisive context by importance — not recency, not RAG, not /compact. recursive-mode: The Repo-Native Operating System for AI Engineering After the attack on Sam Altman's home, will AI CEO's go on the offensive? The biggest advance in AI since the LLM Opus 4.6 vs GPT 5.4 One Prompt Unity World Generation Test “AI polls” are fake polls Client Challenge Can AI be a 'child of God'? Inside Anthropic's meeting with Christian leaders How to Switch AI Chatbots and Why You Might Want To GitHub - MattMessinger1/agentic_refund_guardrail: Safe refund policy layer for AI agents — Python + TypeScript. Same behavior, shared tests. Adam/papers/emergent_values_whitepaper.md at master · strangeadvancedmarketing/Adam Ask HN: How do you stop playing 20 questions with your AI coding tools How far can automation and AI support psychotherapy? - @theU GitHub - stagas/rtdiff: realtime git diff gui and AI-assisted commits A Mac Studio for Local AI — 6 Months Later A History of the Early Years of AI at the University of Edinburgh Why AI Coding Tools Still Feel Stuck on Localhost MSN AI Datacenters Are Becoming Strategic Targets twitter.com Penn Researchers Use AI to Surface Unreported GLP-1 Side Effects in Reddit Posts Show HN: MoodSense AI (ML and FastAPI and Gradio, Deployed on Hugging Face) Moodsense Ai - a Hugging Face Space by aman179102 AI models are terrible at betting on soccer—especially xAI Grok GitHub - xialeistudio/echoic GitHub - HimashaHerath/github-dev-wrapped: AI-powered weekly GitHub activity reports deployed to GitHub Pages GitHub - alejandrobalderas/claude-code-from-source: Architecture, patterns & internals of Anthropic's AI coding agent — reverse-engineered from source maps AI and Tech brief: Ireland ascendant GitHub - Titovilal/context0: Context0 - Never Surrender Training for a Marathon with an AI Coach: What Worked and What Didn't Cyber Pulse: Agentic Intel - Apps on Google Play I Built an AI PR Reviewer That Catches Bugs by Not Looking for Bugs Gen Z workers are so fearful AI will take their job they’re intentionally sabotaging their company’s AI rollout | Fortune How AI Is Reimagining the Game of Golf–For Both Players and Courses GitHub - nattergabriel/reseed: A CLI tool for managing and distributing agent skills across projects Is SVG the final frontier? My AI workflow evolved from prompts to a near-autonomous workflow MLSharp Help - 3DGS Viewer & Generator I put my cognitive field based AI's runtime on GitHub Is Numble the first AI-proof game? A3: Kubernetes for autonomous AI agent fleets | Emergent Principles Deepali Vyas ("The Elite Recruiter") GitHub - msmarkgu/RelayFreeLLM: A restful API designed to route user prompts to various AI model providers. Unionized ProPublica staff are on strike over AI, layoffs, and wages Unleashing the Advantage of Quantum AI We're heading for an AI-fueled 'dementia crisis,' brain scientist warns The AI-Assisted Breach of Mexico's Government Infrastructure [pdf] GitHub - stef41/lmscan: 🔍 Detect AI-generated text and fingerprint which LLM wrote it. Open-source GPTZero alternative. Zero dependencies, works offline. MSN GitHub - visionscaper/collabmem: Enabling long-term collaboration with Agentic AI - building up episodic and world model memory over time with in-context awareness We gave an AI a 3 year retail lease in SF and asked it to make a profit | Andon Labs AI Code is Hollowing Out Open Source, and Maintainers are Looking the Other Way What leaked "SteamGPT" files could mean for the PC gaming platform's use of AI AI is the boss at this retail store. What could go wrong? GitHub - Wuzu11517/agentic-proxy: Local proxy meant to help reduce With Drones, Geophysics and ArtificiaI Intelligence, Researchers Prepare to Do Battle Against Land Mines A Single Operator, Two AI Platforms, Nine Government Agencies: The Full Technical Report 在 Steam 上购买 FriedrichAI: Offline AI 立省 10% GitHub - inevolin/resume-cli: Hit Claude usage limits? Resume any AI coding session elsewhere. Switch tools at zero friction. GitHub - atripati/ark: AI Runtime Kernel — a context operating system for AI agents. Eliminates tool bloat, loads only what’s needed, and gives LLMs their reasoning space back. How to Build a Secure AI PR Reviewer with Claude, GitHub Actions, and JavaScript This Startup Wants You to Pay Up to Talk With AI Versions of Human Experts Intel Arc Pro B70 Brings 32GB VRAM to Local AI for $949 WordPress 7.0: The Good, the AI, and the Still Missing AI on the couch: Anthropic gives Claude 20 hours of psychiatry IatroBench: Pre-Registered Evidence of Iatrogenic Harm from AI Safety Measures AI Agents Know About Supabase. They Don't Always Use It Right. The history and future of AI at Google, with Sundar Pichai Inside an AI‑enabled device code phishing campaign How Meta Used AI to Map Tribal Knowledge in Large-Scale Data Pipelines AI for Systems: Using LLMs to Optimize Database Query Execution Forecasting the Economic Effects of AI Introducing Tinker: Play with AI, bring your ideas to life AI sheds light on an ancient gaming mystery People really hate AI but not as much as Iran—or Democrats | Fortune What is an AI Product Engineer? Phoebe Gates wants her $185 million AI startup to succeed with 'no ties to my privilege or my last name': 'I have a chip on my shoulder' | Fortune
GitHub - devonartis/agentwrit: AI agent credential broker — temporary, task-scoped tokens with automatic revocation. Free for internal use
tdevonartis · 2026-05-07 · via Hacker News - Newest: "AI"

AgentWrit

CI CodeQL OpenSSF Scorecard Go Reference Go Report Card License Go Version Docker Security Policy EdDSA SPIFFE

Important

Building in public. The broker core and Python SDK are stable and in daily use. For anything non-lab, pin to a versioned tag like v2.0.0 or a commit-pinned digest like main-899e4ca3:latest moves with every main commit and will change without notice. Issues are welcome; external PRs are paused until the contribution workflow is ready. See CHANGELOG.md for what shipped recently.


What is AgentWrit?

AgentWrit gives AI agents temporary, task-scoped credentials instead of long-lived API keys.

When an AI agent needs to do something — read a customer record, call a vendor API, run a query — it asks the AgentWrit broker for a token. The token works for that specific task, expires in minutes, and can be yanked at four different levels the moment anything feels wrong. The agent never touches your long-lived credentials at all.

Think of it as an issuer of legal writs for software: narrow authority, time-limited, revocable at the source.

Why this matters

Traditional IAM was built for humans and long-running services — not for AI agents that spin up, do one task, and disappear. Agents are ephemeral, task-scoped, and delegate to other agents. They need credentials that match that lifecycle. AgentWrit was purpose-built for it.

Traditional IAM for agents AgentWrit
Agents get static API keys or service account credentials designed for long-running services Each agent requests a token scoped to one task
Credentials are over-permissioned because scoping per-task is manual and fragile Scope attenuation is automatic — permissions cannot widen, only equal or narrower
Leaked credential exposes everything the service account can access Leaked token exposes one task, already expiring in minutes
Revoking a static key means rotating it everywhere it's used Revocation is instant at 4 levels — token, agent, task, or delegation chain
No visibility into which agent used which credential for which task Every credential event is audited per-agent, per-task in a tamper-evident hash chain
No native concept of agent-to-agent delegation Delegation is built in — Agent A can delegate scope-attenuated tokens to Agent B (equal or narrower) with full chain tracking

What the audit trail covers: The broker logs credential lifecycle events — issue, renew, revoke, delegate, release, auth failures, and scope violations. It does not see what the agent does with the token at the resource server.

Want the full security model?Concepts & threat model


Quick Start

Prerequisites: Docker. Five minutes to your first agent token.

# 1. Set a strong admin secret (broker exits without it)
export AA_ADMIN_SECRET="$(openssl rand -base64 32)"

# 2. Start the broker
docker run -d --name agentwrit \
  -p 8080:8080 \
  -e AA_ADMIN_SECRET \
  -e AA_BIND_ADDRESS=0.0.0.0 \
  -e AA_DB_PATH=/data/data.db \
  -e AA_SIGNING_KEY_PATH=/data/signing.key \
  -v agentwrit-data:/data \
  devonartis/agentwrit:latest

# 3. Confirm it's up
curl -s http://localhost:8080/v1/health | jq .

# 4. Authenticate as admin
ADMIN_TOKEN=$(curl -s -X POST http://localhost:8080/v1/admin/auth \
  -H "Content-Type: application/json" \
  -d "{\"secret\":\"$AA_ADMIN_SECRET\"}" | jq -r '.access_token')

# 5. Create a launch token (one-time agent registration credential)
LAUNCH_TOKEN=$(curl -s -X POST http://localhost:8080/v1/admin/launch-tokens \
  -H "Authorization: Bearer $ADMIN_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "agent_name": "demo-agent",
    "orch_id": "quickstart",
    "allowed_scope": ["read:data:*"],
    "ttl_seconds": 300
  }' | jq -r '.launch_token')

echo "Launch token: ${LAUNCH_TOKEN:0:20}..."

You now have a launch token. The agent presents this once to register and get its own scoped JWT.

Next steps from here:

I want to... Go to
Register an agent with this launch token (Python SDK) Python SDK →
See the raw HTTP registration flow (curl + openssl) Getting Started walkthrough →
Build from source or use Docker Compose instead Other install options →
Understand what just happened (auth model, SPIFFE IDs, scopes) Concepts →

How it works

AgentWrit implements the Ephemeral Agent Credentialing v1.3 security pattern — an 8-component architecture purpose-built for autonomous AI agents. The pattern was developed as part of the AI Security Blueprints project and AgentWrit is its reference implementation.

AgentWrit Architecture Overview

Detailed diagrams: Token Lifecycle · Security Topology

  1. Operator creates a launch token with an allowed scope ceiling
  2. App hands the launch token to the agent for a specific task
  3. Agent registers with the broker (Ed25519 challenge-response), gets a short-lived JWT
  4. Agent uses the JWT as a Bearer token against resource servers
  5. Agent releases the token when done — or the broker revokes it at any of 4 levels

10 components, one binary. The broker handles identity, tokens, scopes, revocation, delegation, audit, app management, admin auth, observability, and persistence — all in a single Go binary with 5 direct dependencies.

Component What it does Package
Identity Challenge-response registration, SPIFFE IDs internal/identity
Token EdDSA JWT issue / verify / renew, MaxTTL ceiling internal/token
Authz Scope enforcement on every protected route internal/authz
Revocation 4-level revoke: token, agent, task, chain internal/revoke
Audit Tamper-evident hash-chain event log internal/audit
Delegation Scope-attenuated child tokens internal/deleg
App App registration and client credentials internal/app
Admin Admin auth (bcrypt), launch tokens internal/admin
Observability Structured logging, Prometheus /v1/metrics internal/obs
Store SQLite persistence internal/store

Deep dive: Architecture diagrams & data flows →


See it in action — MedAssist AI Demo

The Python SDK includes MedAssist AI: a FastAPI web app where a local LLM dynamically creates broker agents with per-patient scoped credentials. You see scope enforcement, cross-patient denial, delegation, and audit — all in a real-time trace.

What you'll see What it proves
Agents spawn on demand per LLM tool call Dynamic agent creation works
Each agent scoped to one patient ID Per-resource scope isolation
LLM asks for wrong patient → scope_denied Scope enforcement catches cross-boundary access
Clinical agent delegates to prescription agent Delegation with scope attenuation
Tokens renew and release at end of encounter Full lifecycle management

Run it: MedAssist AI demo → · Beginner's guide → · Presenter's guide →


SDKs

Language Repo Install Status
Python agentwrit-python pip install agentauth (PyPI rename pending) v0.3.0 — 15 acceptance tests passing
TypeScript Coming soon Planned
from agentauth import AgentAuthApp

# The SDK hides the Ed25519 challenge-response flow
agent = AgentAuthApp(broker_url="http://localhost:8080").register(
    launch_token=LAUNCH_TOKEN,
    task_id="read-customer-42",
    requested_scope=["read:data:customers:42"],
)

# Use the token at your resource server
response = httpx.get(url, headers=agent.bearer_header)

# Done — release the credential
agent.release()

Full SDK docs: Python SDK →


API at a glance

19 endpoints. Full schemas and examples in the API Reference →.

Method Path Who uses it
Public GET /v1/health Anyone — health check
GET /v1/metrics Monitoring — Prometheus
GET /v1/challenge Agent — get registration nonce
POST /v1/token/validate Resource server — verify a token
Auth POST /v1/admin/auth Operator — get admin JWT
POST /v1/app/auth App — client credential exchange
POST /v1/register Agent — register with launch token
Token POST /v1/token/renew Agent/App — renew before expiry
POST /v1/token/release Agent — signal task completion
POST /v1/delegate Agent/App — scope-attenuated child token
Admin POST /v1/admin/launch-tokens Operator — create agent launch tokens
POST /v1/admin/apps Operator — register an app
GET /v1/admin/apps Operator — list apps
GET /v1/admin/apps/{id} Operator — get app details
PUT /v1/admin/apps/{id} Operator — update app scopes/TTL
DELETE /v1/admin/apps/{id} Operator — deregister app
POST /v1/revoke Operator — revoke at 4 levels
GET /v1/audit/events Operator — query audit trail

All errors return RFC 7807 application/problem+json.


Other install options

Docker Compose (clone + build locally)

git clone https://github.com/devonartis/agentwrit.git && cd agentwrit
export AA_ADMIN_SECRET="$(openssl rand -base64 32)"
./scripts/stack_up.sh
curl -s http://localhost:8080/v1/health | jq .

Tear down: ./scripts/stack_down.sh

Build from source (Go 1.24+)

go build -o bin/broker ./cmd/broker/
go build -o bin/awrit  ./cmd/awrit/
./bin/awrit init --config-path /tmp/agentwrit/config
AA_CONFIG_PATH=/tmp/agentwrit/config ./bin/broker

Pre-built Docker image tags

Tag Moves? Use for
v2.0.0 No Production — pinned semver
main-<sha> No Reproducible deploys — pinned to a commit
latest Every main push Lab and evaluation only

Verify the image (optional, recommended):

cosign verify devonartis/agentwrit:latest \
  --certificate-identity-regexp='^https://github.com/devonartis/agentwrit/\.github/workflows/release\.yml@' \
  --certificate-oidc-issuer=https://token.actions.githubusercontent.com

Configuration

All env vars use the AA_ prefix. Only AA_ADMIN_SECRET is required — the broker exits without it.

Variable Default What it does
AA_ADMIN_SECRET (required) Root credential — treat like a root password
AA_PORT 8080 HTTP listen port
AA_BIND_ADDRESS 127.0.0.1 Bind address (0.0.0.0 for Docker)
AA_DEFAULT_TTL 300 Token lifetime in seconds (5 min)
AA_MAX_TTL 86400 Maximum token lifetime ceiling (24h)
AA_DB_PATH ./data.db SQLite database path
AA_SIGNING_KEY_PATH ./signing.key Ed25519 key path (auto-generated)
AA_TLS_MODE none none, tls, or mtls
AA_LOG_LEVEL verbose quiet, standard, verbose, trace

Full config reference (all env vars, TLS/mTLS setup, config files, operator CLI): Operator guide →


Operator CLI (awrit)

go build -o bin/awrit ./cmd/awrit/
export AACTL_BROKER_URL=http://localhost:8080
export AACTL_ADMIN_SECRET="your-secret"

awrit init                                         # Generate broker config
awrit app register --name my-pipeline --scopes "read:data:*"  # Register an app
awrit revoke --level agent --target <agent-id>     # Revoke all agent tokens
awrit audit events --outcome denied --limit 20     # Query audit trail

Full CLI reference: awrit commands & flags →


Running tests

go test ./...              # All tests
go test ./... -short       # Unit tests only
./scripts/gates.sh task    # Build + lint + unit + security scan
./scripts/gates.sh module  # Full gates including Docker E2E

Documentation

I want to... Go to
Get started from zero Getting Started →
Integrate my app with the broker Developer guide →
Deploy and operate the broker Operator guide →
See all API endpoints and schemas API Reference →
Understand the security model Concepts & threat model →
See architecture diagrams Architecture →
Follow common workflows Common Tasks →
Debug an issue Troubleshooting →
See real-world integration patterns Integration Patterns →
Use the Python SDK Python SDK →
Run the MedAssist demo MedAssist AI →
Read the FAQ FAQ →
Report a security vulnerability Security Policy →
Read the changelog CHANGELOG →

License

AgentWrit is licensed under the PolyForm Internal Use License 1.0.0 — a source-available license designed for internal business use.

Free for internal use by anyone, including for-profit companies. Any individual, business, or organization may use and modify AgentWrit for their own internal operations at no cost and without contacting the licensor. This includes modification by contractors acting on behalf of a permitted user. Internal business use by a for-profit company is explicitly permitted and free.

Requires a commercial license:

  • Hosted or managed-service offerings (SaaS) to third parties — paid or free
  • Embedding AgentWrit in a product you sell or sublicense
  • Resale or redistribution of AgentWrit or modified versions
  • Any third-party access to a running AgentWrit instance, including shared installs across unrelated organizations

Dual-license contact: Non-commercial and research use (nonprofits, education, mentorship programs, open-source projects, trade groups) is typically free on request. Commercial embedding, resale, and hosted-service offerings require a paid commercial license. Email licensing@agentwrit.com with your use case.

See LICENSE for the full license text.


Built With

Built with help from Claude by Anthropic.