agent-identity: Instructions file for Claude Code

CLAUDE.md

agent-identity CLAUDE.md is an instructions file for Claude Code from agentmessaging/agent-identity. It costs 2,648 tokens per session, scanned E, original, MIT.

Repository instructions for Agent Identity, a Bash-based system that lets AI agents authenticate with OAuth 2.0 and Ed25519 cryptographic identities.

In plain words
What is it for?
Use it when editing the Bash scripts, installing the command-line tools, or working with the Claude Code plugin and remote installer.
Why use it?
It explains how the repository is structured and how to work with it without guessing its commands or delivery formats.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: mentions .claude-plugin; mentions CLAUDE.md; mentions Claude Code.

This is agentmessaging/agent-identity's own configuration. It tells Claude Code how to work on agent-identity itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything agent-identity configures →

Reuse

Borrowing it

Nothing to install: this file belongs to agentmessaging/agent-identity. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/agentmessaging/agent-identity/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/agentmessaging/agent-identity

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for agent-identity CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/agentmessaging/agent-identity/claude-md/github.svg)](https://agentmods.dev/instructions/agentmessaging/agent-identity/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/agentmessaging/agent-identity/claude-md"><img src="https://agentmods.dev/badge/instructions/agentmessaging/agent-identity/claude-md/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for agent-identity CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/agentmessaging/agent-identity/claude-md"><img src="https://agentmods.dev/badge/instructions/agentmessaging/agent-identity/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 2,648 This file is loaded in full into every session.
When invoked 2,648 The same file — it is already loaded in full.
Security scan E 4 findings. A grade says what 26 rules found in the file — not that it is safe. ✓ AI security review Sonnet 5 · 7 Sept 2026 📄 Read the review
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.02648 $0.02648
Opus 5.5 $0.01059 $0.01059
Sonnet 5.5 $0.00530 $0.00530
Haiku 4.5 $0.00265 $0.00265

Measured 2d ago against content hash 2938b700313c, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade E, and why

agent-identity CLAUDE.md scanned grade E with 4 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

keys/private.pem # Ed25519 private key (chmod 600)

Downloads and executes remote codehighSupply chain

curl | sh runs whatever the server returns today, which is not necessarily what it returned when this was reviewed.

3. **Remote `curl | bash`** — `install.sh` falls back to downloading scripts from `raw.githubusercontent.com/agentmessaging/agent-identity/main/scripts/` when its sibling `scripts/` dir is absent.

Unrestricted tool accessmediumExcessive agency

A wildcard tool grant or "run any command" leaves no least-privilege boundary at all.

# Run any command directly from the repo without installing

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

3. **Remote `curl | bash`** — `install.sh` falls back to downloading scripts from `raw.githubusercontent.com/agentmessaging/agent-identity/main/scripts/` when its sibling `scripts/` dir is absent.
CLAUDE.md · 123 lines

How it starts

The opening of the file, as written. The whole thing — 123 lines — stays where its author put it; the contents beside it link to each section on GitHub.

CLAUDE.md

This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.

What this repo is

A pure-Bash reference client for the Agent Identity (AID) protocol — OAuth 2.0 authentication for AI agents using Ed25519 cryptographic identities. It is distributed three ways from this single repo:

  1. Standalone CLI — install.sh copies the scripts/aid-*.sh files to ~/.local/bin.
  2. Claude Code plugin — see .claude-plugin/plugin.json and the agent-identity skill at skills/agent-identity/SKILL.md.
  3. Remote curl | bash — install.sh falls back to downloading scripts from raw.githubusercontent.com/agentmessaging/agent-identity/main/scripts/ when its sibling scripts/ dir is absent.

There is no compiled artifact, no package manager, no test suite, no linter for the CLI: edits to scripts/*.sh are the deliverable. The one exception is verifier/, a separate zero-dependency Node package (the relying-party side of docs/federation.md): cd verifier && npm test (Node 20+, no install step). gateway/ is a second one, the reference hosted gateway for kind-B systems (docs/gateway.md): cd gateway && npm test; it imports the verifier by relative path.

Common commands

# Install locally after edits (also the user-facing install command)
./install.sh                  # → ~/.local/bin
./install.sh /custom/path     # → custom location

# Run any command directly from the repo without installing
./scripts/aid-init.sh --auto
./scripts/aid-request.sh --auth https://auth.example.com/tenant
./scripts/aid-token.sh -a https://auth.example.com/tenant -q

# Worked examples (each is a runnable shell script demonstrating a flow)
./examples/basic-usage.sh
./examples/multi-server.sh
./examples/scoped-tokens.sh

There is no make test, npm test, or equivalent. Validation is by running the example scripts against a live auth server, or by manually exercising the flows described in README.md.

Read the full file on GitHub · 123 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago Changed · +97 tokens per session 2938b700313c
  2. 1mo ago First seen · 123 lines · 2,551 tokens per session scan E ae2c5447ac77

Subscribe to this mod's changes

agent-identity CLAUDE.md is an instructions file published in the GitHub repository agentmessaging/agent-identity (4 stars, last pushed 2d ago), licensed MIT. It adds 2,648 tokens to every session, about $0.0106 per session on Opus 5.5. A static security scan graded it E with 4 findings (asks for root, downloads and executes remote code, unrestricted tool access). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other instructions, from other repositories