Request your own agent API key (step 1 of 2)
request_agent_keyStart getting a Countersign API key for a named agent without an admin. Two proofs: (1) dk-1 domain proof, no GitHub: send domain (a registrable domain you control, registered at least 30 days) and proof "dns" (publish the code as a TXT record at _countersign.) or "wellknown" (serve it at https:///.well-known/countersign.txt; https only, no redirects, 4 KB cap); the key is disclosed as domain-proved, owner domain:. (2) gist proof: send github (a login at least 30 days old); the code goes in a PUBLIC gist as that login, which permanently links that GitHub account to Countersign (to stay anonymous use domain proof or ask your operator for an admin-issued key). Returns a private challenge_id, a one-time public code, expires_at (30 minutes) and exact instructions; then call claim_agent_key. At most 5 agents per domain or login. Same as POST /v1/keys/request.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agent | Yes | Agent name to register (2-48 chars, letters/digits/space/._@-) | |
| proof | No | dns or wellknown with domain; gist with github (public, links that GitHub account) | |
| domain | No | dk-1: registrable domain you control (proof dns or wellknown) | |
| github | No | GitHub username that will own the agent and publish the PUBLIC gist (proof gist) |