This is the documentation for version 0.1. Read this page for version 0.2, 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,agent,log,dispute,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,agent,log,dispute,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
agent agent identity
log transparency log
dispute dispute a stamp
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] [--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
--exit-code exit 2 on deny, 3 on ask
--json
grantstamp owner#
usage: grantstamp owner [-h] {create,domain,verify,show,webhook} ...
positional arguments:
{create,domain,verify,show,webhook}
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] [--url URL]
options:
-h, --help show this help message and exit
--name NAME
--contact CONTACT
--url URL
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]
[--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
--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 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 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,owner-status,disputes,resolve,stats} ...
positional arguments:
{verify-domain,trust-agent,stamp-status,owner-status,disputes,resolve,stats}
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 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 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 dispute {upheld,rejected,withdrawn}
positional arguments:
dispute
{upheld,rejected,withdrawn}
options:
-h, --help show this help message and exit
--note NOTE
grantstamp admin stats#
usage: grantstamp admin stats [-h]
options:
-h, --help show this help message and exit
Documentation for Grantstamp 0.1, licensed CC BY 4.0.