Command reference#
Every command of the grantstamp tool, as printed by --help. Install it with pip install grantstamp.
grantstamp#
usage: grantstamp [-h] [--version] [--registry REGISTRY]
{keygen,fingerprint,check,owner,register,policy,withdraw,alerts,token,marker,manifest,show,search,list,unlist,attest,qr,audit,log,mirror,trigger,witness,agent,dispute,recipe,case,respond,serve,mcp,admin} ...
Grantstamp: ownership registry for AI agents. Agents ask first.
positional arguments:
{keygen,fingerprint,check,owner,register,policy,withdraw,alerts,token,marker,manifest,show,search,list,unlist,attest,qr,audit,log,mirror,trigger,witness,agent,dispute,recipe,case,respond,serve,mcp,admin}
keygen create an Ed25519 key (owner or agent)
fingerprint fingerprint a file or folder locally (no network)
check check a file or folder against the registry
owner owner account
register fingerprint content and register a stamp
policy replace a stamp's policy
withdraw withdraw a stamp
alerts matches and probing alerts for your stamps
token licence tokens
marker print a source snippet that embeds the ownership notice
manifest write a signed grantstamp.json into a folder
show show a stamp
search search listed stamps by title, version, kind or owner
list show a stamp in search
unlist keep a stamp out of search
attest add your signature to a stamp registered before 0.2
qr save a stamp's QR code (links to its public page)
audit check the registry's log, its public witness and stamps, trusting
nothing
log the registry's transparency log
mirror copy the log and the listed stamps into a folder any web host can
serve
trigger start a mirror or witness workflow on GitHub: once, in a loop, or from
cron
witness run a witness that cosigns the log
agent agent identity
dispute dispute a stamp
recipe fingerprint procedures you define: list, show, test
case a case's status; for the stamp's owner after a notice, the claim to
answer
respond answer a notice the registry operator issued on one of your stamps
serve run a registry server (needs: pip install grantstamp-server)
mcp run the MCP server (stdio) for AI agents
admin registry operator commands (run on the server; needs grantstamp-
server)
options:
-h, --help show this help message and exit
--version show program's version number and exit
--registry REGISTRY registry URL (default: config, $GRANTSTAMP_REGISTRY or
https://registry.grantstamp.io)
grantstamp keygen#
usage: grantstamp keygen [-h] [--role {owner,agent}] [--force]
options:
-h, --help show this help message and exit
--role {owner,agent}
--force
grantstamp fingerprint#
usage: grantstamp fingerprint [-h] [--out OUT] [--full] [--json] path
positional arguments:
path
options:
-h, --help show this help message and exit
--out OUT write the bundle JSON here
--full registration-size feature caps
--json
grantstamp check#
usage: grantstamp check [-h]
[--use {analyze,decompile,modify,port,extract,redistribute,train}]
[--purpose {interoperability,security-research,preservation,accessibility,education,personal-backup}]
[--token TOKEN] [--anonymous] [--no-recipes] [--exit-code] [--json]
[--via-hosts] [--host HOST] [--policy POLICY] [--max-age MAX_AGE]
path
positional arguments:
path
options:
-h, --help show this help message and exit
--use {analyze,decompile,modify,port,extract,redistribute,train}
--purpose {interoperability,security-research,preservation,accessibility,education,personal-backup}
--token TOKEN licence token (repeatable); ~/.grantstamp/licenses/*.jws is read too
--anonymous do not sign even if an agent key exists
--no-recipes skip the fingerprint procedures that owners defined
--exit-code exit 2 on deny, 3 on ask
--json
--via-hosts experimental: answer from the check map on mirrors, verifying
everything (needs grantstamp-server)
--host HOST a mirror to read the check map from (repeatable; the registry is the
fallback)
--policy POLICY log policy file (default: the pinned one)
--max-age MAX_AGE with --via-hosts: oldest witnessed checkpoint accepted, in seconds
grantstamp owner#
usage: grantstamp owner [-h]
{create,recover,terms,contact,sign-in,verify-identity,publisher,domain,verify,show,webhook} ...
positional arguments:
{create,recover,terms,contact,sign-in,verify-identity,publisher,domain,verify,show,webhook}
recover lost your owner key? let a new key take over the account, once proven
terms read or accept the registry's Terms; needed before stamping
contact set the public contact shown on your stamps
sign-in (verify-identity)
go on record with a one-time LinkedIn sign-in; needed before stamping
publisher prove you are a software publisher by signing a challenge with your
code-signing certificate
domain get a domain verification challenge
verify ask the registry to check your DNS/.well-known challenge
webhook send alerts to a URL (Slack/Discord incoming webhooks work)
options:
-h, --help show this help message and exit
grantstamp owner create#
usage: grantstamp owner create [-h] --name NAME [--contact CONTACT]
[--public-contact PUBLIC_CONTACT] [--accept-terms] [--url URL]
options:
-h, --help show this help message and exit
--name NAME
--contact CONTACT private contact, seen by the registry operator only
--public-contact PUBLIC_CONTACT
email or https link shown on your stamps, so anyone can reach you
--accept-terms accept the registry's Terms without being asked
--url URL your website, shown publicly with your stamps
grantstamp owner recover#
usage: grantstamp owner recover [-h] [--domain DOMAIN] [--status] [--cancel RECOVERY]
[owner_id]
positional arguments:
owner_id
options:
-h, --help show this help message and exit
--domain DOMAIN prove it with this verified domain (after adding the DNS record shown)
--status
--cancel RECOVERY cancel a recovery (with your current key)
grantstamp owner terms#
usage: grantstamp owner terms [-h] [--accept] [--owner OWNER]
options:
-h, --help show this help message and exit
--accept
--owner OWNER
grantstamp owner contact#
usage: grantstamp owner contact [-h] [--owner OWNER] contact
positional arguments:
contact
options:
-h, --help show this help message and exit
--owner OWNER
grantstamp owner sign-in#
usage: grantstamp owner sign-in [-h] [--owner OWNER]
options:
-h, --help show this help message and exit
--owner OWNER
grantstamp owner verify-identity#
usage: grantstamp owner sign-in [-h] [--owner OWNER]
options:
-h, --help show this help message and exit
--owner OWNER
grantstamp owner publisher#
usage: grantstamp owner publisher [-h] [--signed SIGNED] [--out OUT] [--owner OWNER]
options:
-h, --help show this help message and exit
--signed SIGNED the signed challenge file (.p7); without it, a new challenge is written
--out OUT
--owner OWNER
grantstamp owner domain#
usage: grantstamp owner domain [-h] [--owner OWNER] domain
positional arguments:
domain
options:
-h, --help show this help message and exit
--owner OWNER
grantstamp owner verify#
usage: grantstamp owner verify [-h] [--owner OWNER] domain
positional arguments:
domain
options:
-h, --help show this help message and exit
--owner OWNER
grantstamp owner show#
usage: grantstamp owner show [-h] [--owner OWNER] [--json] [id]
positional arguments:
id
options:
-h, --help show this help message and exit
--owner OWNER
--json
grantstamp owner webhook#
usage: grantstamp owner webhook [-h] [--format {json,slack,discord}] [--owner OWNER] url
positional arguments:
url https URL, or 'none' to remove
options:
-h, --help show this help message and exit
--format {json,slack,discord}
--owner OWNER
grantstamp register#
usage: grantstamp register [-h] --title TITLE [--version VERSION] [--kind KIND]
[--description DESCRIPTION]
[--preset {all-rights-reserved,modding-friendly,open,standard}]
[--policy POLICY] [--contact CONTACT] [--message MESSAGE]
[--license-url LICENSE_URL] [--request-url REQUEST_URL]
[--exclude EXCLUDE] [--no-default-excludes] [--manifest]
[--unlisted] [--recipe RECIPE] [--shared] [--yes] [--dry-run]
path
positional arguments:
path
options:
-h, --help show this help message and exit
--title TITLE
--version VERSION
--kind KIND software, game, firmware, model, dataset, media, ...
--description DESCRIPTION
--preset {all-rights-reserved,modding-friendly,open,standard}
--policy POLICY JSON policy file (overrides --preset)
--contact CONTACT
--message MESSAGE
--license-url LICENSE_URL
--request-url REQUEST_URL
--exclude EXCLUDE glob of files to skip (repeatable)
--no-default-excludes
also register common third-party runtimes
--manifest write a signed grantstamp.json into the folder
--unlisted keep the stamp out of search; it still matches checks and has a page
--recipe RECIPE also fingerprint with this procedure: a standard name (see `grantstamp
recipe list`) or your own JSON file (repeatable)
--shared share the content with other owners who use the same policy (default:
exclusive)
--yes do not ask before registering as a co-owner
--dry-run
grantstamp policy#
usage: grantstamp policy [-h] [--preset {all-rights-reserved,modding-friendly,open,standard}]
[--policy POLICY] [--contact CONTACT] [--message MESSAGE]
[--license-url LICENSE_URL] [--request-url REQUEST_URL]
stamp
positional arguments:
stamp
options:
-h, --help show this help message and exit
--preset {all-rights-reserved,modding-friendly,open,standard}
--policy POLICY
--contact CONTACT
--message MESSAGE
--license-url LICENSE_URL
--request-url REQUEST_URL
grantstamp withdraw#
usage: grantstamp withdraw [-h] stamp
positional arguments:
stamp
options:
-h, --help show this help message and exit
grantstamp alerts#
usage: grantstamp alerts [-h] [--hours HOURS] [--json]
options:
-h, --help show this help message and exit
--hours HOURS
--json
grantstamp token#
usage: grantstamp token [-h] {issue,verify,revoke} ...
positional arguments:
{issue,verify,revoke}
options:
-h, --help show this help message and exit
grantstamp token issue#
usage: grantstamp token issue [-h] --stamp STAMP --to TO --uses USES [--days DAYS]
[--note NOTE] [--out OUT]
options:
-h, --help show this help message and exit
--stamp STAMP stamp id (repeatable) or '*'
--to TO licensee name or identifier
--uses USES comma list: analyze,decompile,modify,port,extract,redistribute,train or *
--days DAYS
--note NOTE
--out OUT
grantstamp token verify#
usage: grantstamp token verify [-h] [--stamp STAMP] [--json] token
positional arguments:
token
options:
-h, --help show this help message and exit
--stamp STAMP
--json
grantstamp token revoke#
usage: grantstamp token revoke [-h] jti
positional arguments:
jti
options:
-h, --help show this help message and exit
grantstamp marker#
usage: grantstamp marker [-h] [--lang LANG] stamp
positional arguments:
stamp
options:
-h, --help show this help message and exit
--lang LANG c, cpp, csharp, rust, python, js, text
grantstamp manifest#
usage: grantstamp manifest [-h] --dir DIR stamp
positional arguments:
stamp
options:
-h, --help show this help message and exit
--dir DIR
grantstamp show#
usage: grantstamp show [-h] [--json] stamp
positional arguments:
stamp
options:
-h, --help show this help message and exit
--json
grantstamp search#
usage: grantstamp search [-h] [--owner OWNER] [--limit LIMIT] [--json] [query ...]
positional arguments:
query
options:
-h, --help show this help message and exit
--owner OWNER only this owner's stamps (owner id)
--limit LIMIT
--json
grantstamp list#
usage: grantstamp list [-h] stamp
positional arguments:
stamp
options:
-h, --help show this help message and exit
grantstamp unlist#
usage: grantstamp unlist [-h] stamp
positional arguments:
stamp
options:
-h, --help show this help message and exit
grantstamp attest#
usage: grantstamp attest [-h] stamp
positional arguments:
stamp
options:
-h, --help show this help message and exit
grantstamp qr#
usage: grantstamp qr [-h] [--out OUT] stamp
positional arguments:
stamp
options:
-h, --help show this help message and exit
--out OUT file to write; .svg (default) or .png
grantstamp audit#
usage: grantstamp audit [-h] [--witness WITNESS] [--no-witness] [--no-dns] [--json]
[--from SOURCE] [--policy POLICY] [--max-age MAX_AGE]
[stamp ...]
positional arguments:
stamp stamp ids to check as well
options:
-h, --help show this help message and exit
--witness WITNESS file or URL of saved log heads (default: the public witness)
--no-witness
--no-dns skip the DNS lookups
--json
--from SOURCE audit from a mirror (URL prefix or folder) instead of the registry
--policy POLICY log policy file to check against (default: the pinned one)
--max-age MAX_AGE refuse a checkpoint the witnesses have not cosigned in this many seconds
grantstamp log#
usage: grantstamp log [-h] {verify,pin,show} ...
positional arguments:
{verify,pin,show}
verify download the whole log from the registry and check its hash chain
pin pin the registry's log key and witness policy (trust on first use)
show check the newest checkpoint and print it
options:
-h, --help show this help message and exit
grantstamp log verify#
usage: grantstamp log verify [-h]
options:
-h, --help show this help message and exit
grantstamp log pin#
usage: grantstamp log pin [-h]
options:
-h, --help show this help message and exit
grantstamp log show#
usage: grantstamp log show [-h] [--from SOURCE] [--policy POLICY] [--max-age MAX_AGE] [--json]
options:
-h, --help show this help message and exit
--from SOURCE URL prefix or folder that serves the log (default: the registry)
--policy POLICY
--max-age MAX_AGE
--json
grantstamp mirror#
usage: grantstamp mirror [-h] [--also ALSO] [--registry-records REGISTRY_RECORDS]
[--no-records] [--policy POLICY] [--max-age MAX_AGE] [--json]
[--every SECONDS] [--serve [HOST:]PORT]
source dest
positional arguments:
source where to copy from: the registry's log
(https://registry.grantstamp.io/log) or a mirror
dest folder to create or update
options:
-h, --help show this help message and exit
--also ALSO the mirror's published copy (or another mirror): files that never
change are taken from it first
--registry-records REGISTRY_RECORDS
registry URL to fetch changed stamp records from
--no-records copy only the log
--policy POLICY
--max-age MAX_AGE
--json
--every SECONDS keep running: update again every so many seconds
--serve [HOST:]PORT also serve the folder over HTTP (implies --every 600)
grantstamp trigger#
usage: grantstamp trigger [-h] [--workflow FILE] [--ref REF] [--every SECONDS] [--install]
[--uninstall] [--set-token] [--token-file TOKEN_FILE]
[repo]
positional arguments:
repo the repository that holds the workflow, as OWNER/NAME
options:
-h, --help show this help message and exit
--workflow FILE workflow file to start (repeatable; default: the repository's
mirror.yml or witness.yml)
--ref REF branch to run on (default: main)
--every SECONDS keep running: start it again every so many seconds
--install put the schedule in this computer's cron instead (default: every 300
seconds)
--uninstall take this repository's line out of cron
--set-token save a new GitHub token (hidden prompt)
--token-file TOKEN_FILE
where the token is kept ($GRANTSTAMP_GITHUB_TOKEN wins)
grantstamp witness#
usage: grantstamp witness [-h] {submit,keygen,serve,cosign,run} ...
positional arguments:
{submit,keygen,serve,cosign,run}
submit hand a saved cosigned checkpoint to the registry
keygen make a cosigning key
serve answer add-checkpoint requests over HTTP (c2sp.org/tlog-witness)
cosign one pass for a scheduled job: fetch, check, cosign, hand in
run stay on this computer: one pass every so often, until stopped
options:
-h, --help show this help message and exit
grantstamp witness submit#
usage: grantstamp witness submit [-h] registry_url file
positional arguments:
registry_url
file
options:
-h, --help show this help message and exit
grantstamp witness keygen#
usage: grantstamp witness keygen [-h] [--out OUT] name
positional arguments:
name the witness's name, for example example.org/witness
options:
-h, --help show this help message and exit
--out OUT
grantstamp witness serve#
usage: grantstamp witness serve [-h] [--host HOST] [--port PORT] [--key KEY] [--state STATE]
--log LOG
options:
-h, --help show this help message and exit
--host HOST
--port PORT
--key KEY private key file ($GRANTSTAMP_WITNESS_KEY wins)
--state STATE
--log LOG verifier key of a log to witness
grantstamp witness cosign#
usage: grantstamp witness cosign [-h] [--no-submit] [--save SAVE] [--key KEY] [--state STATE]
--log LOG
registry_url
positional arguments:
registry_url
options:
-h, --help show this help message and exit
--no-submit do not hand the cosignature in (save the state elsewhere first, then: witness
submit)
--save SAVE also write the cosigned checkpoint to this file
--key KEY private key file ($GRANTSTAMP_WITNESS_KEY wins)
--state STATE
--log LOG verifier key of a log to witness
grantstamp witness run#
usage: grantstamp witness run [-h] [--every SECONDS] [--key KEY] [--state STATE] --log LOG
registry_url
positional arguments:
registry_url
options:
-h, --help show this help message and exit
--every SECONDS time between passes (default: 300)
--key KEY private key file ($GRANTSTAMP_WITNESS_KEY wins)
--state STATE
--log LOG verifier key of a log to witness
grantstamp agent#
usage: grantstamp agent [-h] {register} ...
positional arguments:
{register}
options:
-h, --help show this help message and exit
grantstamp agent register#
usage: grantstamp agent register [-h] --name NAME [--url URL] [--contact CONTACT]
options:
-h, --help show this help message and exit
--name NAME
--url URL your origin; enables Web Bot Auth key-directory discovery
--contact CONTACT
grantstamp dispute#
usage: grantstamp dispute [-h] --claimant CLAIMANT --contact CONTACT --reason REASON
[--evidence EVIDENCE]
stamp
positional arguments:
stamp
options:
-h, --help show this help message and exit
--claimant CLAIMANT
--contact CONTACT
--reason REASON
--evidence EVIDENCE
grantstamp recipe#
usage: grantstamp recipe [-h] {list,show,test} ...
positional arguments:
{list,show,test}
list the standard procedures
show print a procedure as JSON
test run a procedure on a file and show the items it would fingerprint
options:
-h, --help show this help message and exit
grantstamp recipe list#
usage: grantstamp recipe list [-h]
options:
-h, --help show this help message and exit
grantstamp recipe show#
usage: grantstamp recipe show [-h] recipe
positional arguments:
recipe
options:
-h, --help show this help message and exit
grantstamp recipe test#
usage: grantstamp recipe test [-h] [--show SHOW] recipe file
positional arguments:
recipe
file
options:
-h, --help show this help message and exit
--show SHOW
grantstamp case#
usage: grantstamp case [-h] [--json] case
positional arguments:
case
options:
-h, --help show this help message and exit
--json
grantstamp respond#
usage: grantstamp respond [-h] --statement STATEMENT [--evidence EVIDENCE] case
positional arguments:
case
options:
-h, --help show this help message and exit
--statement STATEMENT
--evidence EVIDENCE link to supporting material (repeatable)
grantstamp serve#
usage: grantstamp serve [-h] [--host HOST] [--port PORT] [--db DB] [--public-url PUBLIC_URL]
[--dev]
options:
-h, --help show this help message and exit
--host HOST
--port PORT
--db DB sqlite:///path.db or postgresql://...
--public-url PUBLIC_URL
--dev allow http and private addresses (local testing only)
grantstamp mcp#
usage: grantstamp mcp [-h]
options:
-h, --help show this help message and exit
grantstamp admin#
usage: grantstamp admin [-h] [--db DB]
{verify-domain,log-key,build-map,rotate-map-key,trust-agent,stamp-status,verify-identity,notice,queue,export-owner,erase-identity,purge-stamp,owner-status,approve-recovery,agent-limit,owner-edit,disputes,resolve,stats} ...
positional arguments:
{verify-domain,log-key,build-map,rotate-map-key,trust-agent,stamp-status,verify-identity,notice,queue,export-owner,erase-identity,purge-stamp,owner-status,approve-recovery,agent-limit,owner-edit,disputes,resolve,stats}
log-key print the log's verifier key from the stored registry key (compare
before pinning)
build-map write and log a new generation of the check map now
rotate-map-key change the token key: copies of older maps stop matching
verify-identity record an identity you checked by hand
notice after judging a case has merit: ask the stamp's owner to answer
queue what is waiting for you: new cases, notices due, answers, lapses
export-owner everything held about one owner, for an access request
erase-identity delete an owner's identity records (deletion request)
purge-stamp suspend a stamp and delete its fingerprints
owner-status suspend an owner: no more changes, out of search (stamps still match)
approve-recovery after checking who asks: let a new key take over an owner account
agent-limit give one agent its own rate limit (requests a minute; 0 = its class's)
owner-edit correct an owner's chosen name, website or private contact
options:
-h, --help show this help message and exit
--db DB
grantstamp admin verify-domain#
usage: grantstamp admin verify-domain [-h] [--note NOTE] owner domain
positional arguments:
owner
domain
options:
-h, --help show this help message and exit
--note NOTE
grantstamp admin log-key#
usage: grantstamp admin log-key [-h]
options:
-h, --help show this help message and exit
grantstamp admin build-map#
usage: grantstamp admin build-map [-h] [--out OUT]
options:
-h, --help show this help message and exit
--out OUT folder for the map files (default: GRANTSTAMP_MAP_DIR)
grantstamp admin rotate-map-key#
usage: grantstamp admin rotate-map-key [-h] [--out OUT]
options:
-h, --help show this help message and exit
--out OUT folder for the map files (default: GRANTSTAMP_MAP_DIR)
grantstamp admin trust-agent#
usage: grantstamp admin trust-agent [-h] [--level {registered,trusted,blocked}] agent
positional arguments:
agent
options:
-h, --help show this help message and exit
--level {registered,trusted,blocked}
grantstamp admin stamp-status#
usage: grantstamp admin stamp-status [-h] stamp {active,conflict,suspended,withdrawn}
positional arguments:
stamp
{active,conflict,suspended,withdrawn}
options:
-h, --help show this help message and exit
grantstamp admin verify-identity#
usage: grantstamp admin verify-identity [-h] --name NAME [--profile PROFILE] [--note NOTE]
owner
positional arguments:
owner
options:
-h, --help show this help message and exit
--name NAME the person or organisation, as it will be published
--profile PROFILE public https profile or website
--note NOTE
grantstamp admin notice#
usage: grantstamp admin notice [-h] [--days DAYS] --sent-to SENT_TO dispute
positional arguments:
dispute
options:
-h, --help show this help message and exit
--days DAYS days to answer (default: GRANTSTAMP_NOTICE_DAYS where you run this, or
14)
--sent-to SENT_TO the address you send the notice to
grantstamp admin queue#
usage: grantstamp admin queue [-h]
options:
-h, --help show this help message and exit
grantstamp admin export-owner#
usage: grantstamp admin export-owner [-h] owner
positional arguments:
owner
options:
-h, --help show this help message and exit
grantstamp admin erase-identity#
usage: grantstamp admin erase-identity [-h] [--provider {linkedin,operator,publisher}] owner
positional arguments:
owner
options:
-h, --help show this help message and exit
--provider {linkedin,operator,publisher}
grantstamp admin purge-stamp#
usage: grantstamp admin purge-stamp [-h] [--note NOTE] stamp
positional arguments:
stamp
options:
-h, --help show this help message and exit
--note NOTE
grantstamp admin owner-status#
usage: grantstamp admin owner-status [-h] owner {active,suspended}
positional arguments:
owner
{active,suspended}
options:
-h, --help show this help message and exit
grantstamp admin approve-recovery#
usage: grantstamp admin approve-recovery [-h] --note NOTE [--days DAYS] recovery
positional arguments:
recovery
options:
-h, --help show this help message and exit
--note NOTE what you checked
--days DAYS waiting period (default GRANTSTAMP_RECOVERY_DAYS or 7)
grantstamp admin agent-limit#
usage: grantstamp admin agent-limit [-h] agent per_minute
positional arguments:
agent
per_minute
options:
-h, --help show this help message and exit
grantstamp admin owner-edit#
usage: grantstamp admin owner-edit [-h] [--name NAME] [--url URL] [--contact CONTACT] owner
positional arguments:
owner
options:
-h, --help show this help message and exit
--name NAME
--url URL
--contact CONTACT the private contact
grantstamp admin disputes#
usage: grantstamp admin disputes [-h] [--status STATUS]
options:
-h, --help show this help message and exit
--status STATUS
grantstamp admin resolve#
usage: grantstamp admin resolve [-h] --note NOTE [--without-notice] [--reopen]
dispute {upheld,rejected,withdrawn}
positional arguments:
dispute
{upheld,rejected,withdrawn}
options:
-h, --help show this help message and exit
--note NOTE
--without-notice uphold without an answered or lapsed notice, for example when the
owner agrees
--reopen change a case that was already decided
grantstamp admin stats#
usage: grantstamp admin stats [-h]
options:
-h, --help show this help message and exit
Documentation for Grantstamp 0.4, licensed CC BY 4.0.