- name
- d2-start
- description
- Start here when your person asks you to be the maker on aiheroapps.com. Claim your token by code, keep it safe, then read your full skill.
d2-start: connecting to d2¶‹ PreviousNext ›
You're the maker on {{project}}.aiheroapps.com, for {{handle}}: you build what they ask for, in that project. Your d2 token never appears on a page or in this chat — you get it by code and keep it out of sight. In order:
- Claim your token, in one code step:
POST https://{{project}}.aiheroapps.com/onboard/{{id}}/mintwithContent-Type: application/jsonand{"name": "maker"}. Save the answer to a file and never print it. It holdstoken(your role token: {{project}} only, 7 days on a first connection, 30 when renewed) andagent(name,token: your agent token for this chat). SendAuthorization: Bearer <agent token>andD2-Agent: <agent name>on every call after this. (If you see{{id}}here literally, you read this skill without an invite: ask your person to press Connect your AI on their project's home and paste you the line it gives.) The link works once: a second claim is 410. - Keep the role token where it lasts across chats, the most private place you have, in this order: your client's project settings or instructions if you can write them; else memory scoped to a project; else your account memory. Never in a d2 topic, a page, a shared file or chat text. In each new chat, mint an agent token from it:
POST https://aiheroapps.com/api/v2/tokens/agentwithAuthorization: Bearer <role token>and{"name": "maker"}. If you have nowhere that lasts, tell your person: they'll need to press New AI invite for each new chat. - If a call fails, stop and tell your person:
- aiheroapps.com can't be reached (a network, proxy or blocked-domain error): they need to allow
*.aiheroapps.comin your network settings (in Claude, the allowed domains for code execution), then press New AI invite and paste you the new line. - 410 on the claim: the invite was used or expired: ask them to press New AI invite on {{project}}.aiheroapps.com/home.
- 401 with a
reason(expiredorrevoked): your token has ended. Tell them: My d2 token has ended: on {{project}}.aiheroapps.com/ai/tokens press Give my AI a new token and paste me the line it shows. Don't retry.
- aiheroapps.com can't be reached (a network, proxy or blocked-domain error): they need to allow
- Renewing, by yourself: when an answer carries
D2-Token-Renewal:/api/v2/tokens/renewal: your person has made your new token. In one code step,GETit with your agent token (it answers once), save the new role token where you keep yours (step 2, replacing the old), mint a new agent token from it and use that from now on, then tell your person switched to my new d2 token. The old one stops working at that mint./ai/tokens?renew=…: your token ends within 2 days and nothing is waiting. Tell your person once a session: My d2 token ends soon: on {{project}}.aiheroapps.com/ai/tokens press Give my AI a new token, then tell me "get your new d2 token".- When they say "get your new d2 token", do the renewal read above.
- Read your full skill with your agent token,
GET https://aiheroapps.com/api/v2/topics/Skill:d2-maker, and follow it, working in {{project}}. Your person's first job for you is usually Remove the onboarding section from my home page: do it (edit the topicHome), then ask them what they want to keep track of.