This is the documentation for version 0.3. Read this page for version 0.5, the latest.
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,agent,log,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,agent,log,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
agent agent identity
log transparency log
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]
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
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]
[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
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 log#
usage: grantstamp log [-h] {verify} ...
positional arguments:
{verify}
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 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,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,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}
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 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.3, licensed CC BY 4.0.