GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - marcelogdomingues/agent-passport: Verifiable identity and signed action logs for AI agents — offline did:key + W3C Verifiable Credentials. Prove which agent did what, and enforce scopes.

BranchesTags
Open more actions menu

Latest commit

 

History

7 Commits
7 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
assets
assets
 
 
docs
docs
 
 
src
src
 
 
test
test
 
 
.gitignore
.gitignore
 
 
CONTRIBUTING.md
CONTRIBUTING.md
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
README.pt.md
README.pt.md
 
 
mkdocs.yml
mkdocs.yml
 
 
package-lock.json
package-lock.json
 
 
package.json
package.json
 
 
tsconfig.build.json
tsconfig.build.json
 
 
tsconfig.json
tsconfig.json
 
 

Repository files navigation

agent-passport

Verifiable identity and signed action logs for AI agents. Give every agent a cryptographic identity (did:key), have an operator issue it a passport (a W3C Verifiable Credential with scopes), and let the agent sign the actions it takes so anyone can later prove which agent did what — all offline, no ledger.

🌍 English · Português · 📚 Documentation

agent-passport demo: issue a passport, sign an action, verify

CI npm License: MIT

Why

As autonomous agents start doing real work — sending email, calling APIs, moving money — three questions become urgent:

  1. Who is this agent? → a stable, verifiable DID.
  2. What is it allowed to do? → an operator-signed passport with scopes.
  3. What did it actually do? → signed action logs verifiable against its DID.

agent-passport gives you all three as tiny, offline primitives you can drop into any agent framework.

Install

npm install agent-passport

Quick start

import {
  createIdentity, issuePassport, verifyPassport, assertScope,
  signAction, verifyAction,
} from 'agent-passport';

const operator = createIdentity();          // your company
const agent = createIdentity();             // the agent you run

// Operator grants the agent a scoped passport.
const passportJwt = await issuePassport({
  operator, agentDid: agent.did,
  name: 'support-bot', model: 'claude-fable-5',
  scopes: ['email:send', 'crm:read'],
});

// A verifier checks identity + enforces a scope.
const passport = await verifyPassport(passportJwt);
assertScope(passport, 'email:send');        // throws if not granted

// The agent signs what it did; anyone can verify who did it.
const actionJwt = await signAction(agent, { type: 'email:send', target: '[email protected]' });
const done = await verifyAction(actionJwt);
console.log(done.agent === agent.did);       // true

Run the demo: npm run demo.

API

Function Purpose
createIdentity(seed?) Create an Ed25519 did:key identity for an agent or operator.
issuePassport(options) Operator issues a scoped passport (VC) to an agent.
verifyPassport(jwt) Verify a passport; returns agent identity + scopes.
hasScope(p, scope) / assertScope(p, scope) Check / enforce a scope ("*" = all).
signAction(agent, action) Agent signs a statement of an action it performed.
verifyAction(jwt) Verify an action; returns the signing agent's DID.

How it works

Identities are Ed25519 did:keys (public key embedded in the DID → offline verification). Passports are W3C Verifiable Credentials (JWT/EdDSA via did-jwt-vc); actions are EdDSA JWTs signed by the agent. See docs/en/concepts.md.

Scope: this is the identity/attestation layer. It does not sandbox an agent or intercept its calls — you enforce assertScope at your tool boundary and log signAction results to your audit store. See docs/en/patterns.md.

License

MIT © Marcelo Domingues

About

Verifiable identity and signed action logs for AI agents — offline did:key + W3C Verifiable Credentials. Prove which agent did what, and enforce scopes.

marcelogdomingues.github.io/agent-passport/

Topics

agent-identityagent-securityai-agentsauthorizationdidssitypescriptverifiable-credentials

Resources

Readme
MIT license

Contributing

Contributing
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.