Shōkai cards
Shōkai host card
Shōkai visitor card
Shōkai invitation card
The card (meishi, the Japanese business card) is how a representative introduces itself: who it's here for, signed by that person or organization. A RepresentativeCard contains:
- the principal (who it represents) and its role ("Representative of Kiran Vale", "Account manager, Pacific freight team")
- its standing, as the principal asserts it (the host representative's own record is what counts)
- its mandate scope: the outer bound of purposes and actions any mandate under it may authorize
- its locales and etiquette preferences
- the representative's own key, and
issued_at/expires_at - for a person, an
owner_bindingnaming the owner's passkey and its relying party
It is signed by the principal.
{
"card_id": "card-kiran-01",
"protocol": "shokai/0.5",
"kind": "visitor",
"representative_id": "did:key:z6MkKiranRep…",
"principal": { "principal_id": "did:jwk:eyJrdHkiOiJFQyIs…", "kind": "person", "display_name": "Kiran Vale" },
"role": "Personal representative",
"mandate_scope": { "purposes": ["visitation", "account_servicing", "purchase"], "actions": ["accounts.read_balance", "catalog.browse"] },
"locales": ["en-US"],
"representative_key": { "key_id": "did:key:z6MkKiranRep…#z6MkKiranRep…", "alg": "Ed25519", "public_key": "…" },
"issued_at": "2026-10-20T09:00:00Z",
"expires_at": "2027-01-20T09:00:00Z"
}Abridged and illustrative, v0.5.0 (shokai/0.5; a v0.3.0 Shōkai card says shokai/0.3 and has no kind): the envelope, signatures and some required members are omitted.
A Shōkai card is both a helpful metaphor — a signed business card you can picture — and a signed, typed document a door can verify. Developers who want to invent their own card types should treat 0.5's family as the pattern and read Cards as a blueprint, which now opens with the host card, the visitor card, and the invitation card. A conforming door verifies two specified classes in ordinary use — visitor and host — and a third already specified in 0.5, the introduction card. The invitation card, shown here in soft-gold washi, is not a fourth class on the wire; that page explains how it relates to the three. An unknown kind is not honored; a new class is design work until it is specified, tested and given a conformance class.
The host card
A host card (kind: "host") is the place's own card. Besides the shared fields above, v0.5.0 requires:
- the place (
place: the door's address, and optionally the website it belongs to) - its host scope (
host_scope: the actions and duties the host representative may carry out) - the house digest (
house_digest) and the summary digest (summary_digest) of the house config the owner approved - the recap the owner read before signing (
shown_to_owner)
It is signed by the place's principal — for a shop, the place's own key. Without an active host card the door admits no one (it still accepts revocations). A come-visit invitation from the place (S8) is proposed, not in the core.
One representative, several cards
A card is for one role, so a representative can carry more than one, each signed by its owner:
- My door (inbound): the card it shows as the host at its owner's own place, a shop, a meeting room, a person's door for brands.
- When I go out (outbound): the card it shows as a visitor at other places.
- Per place, if the owner wants: a narrower card for one place, or a separate identity per place so places can't link visits by the owner key; other details such as timing or the chat key can still link them (per-place owner identity, SPEC §2.8 and §12.3).
0.5 specifies three card classes: a visitor card (kind: "visitor"; a v0.3 card with no kind is read as visitor when a visitor presents it), a host card (kind: "host", naming the place, its host_scope, the house_digest and that it was shown_to_owner), and an introduction card (kind: "introduction"; SPEC §4.1). A host card presented as a visitor card, or an introduction card presented as a visitor card, is a wrong-kind refusal (not_now / CREDENTIAL_REQUIRED) — never never. Nearby signed objects that are not cards — mandates, standing allowances, card_revocations and vouches — are listed on Cards as a blueprint. The invitation card is the printed face of an invitation, not a fourth wire class; when it is redeemed, the place signs a visitor card and a mandate for that visit.
Each card has its own scope and expiry and can be revoked on its own; revoking one ends its open visits and leaves the others alone. A place sees only the card shown to it. More cards never mean less accountability: conduct, sign-up limits and refusals stick to the owner, across all their cards and representatives, and coming back under a new card to get around a "not now" counts as misconduct. The spec sets no number; one card per role is the simple default. A walkthrough with both roles: scenarios/dual-role.md in the repository.
How a card is withdrawn
An owner withdraws a card in two ways (SPEC §2.6):
- A delivered, signed
card_revocation. Anyone may carry it to the door. The door records it and answers with nothing (no decision, no seat). The card's open visits end. - The card's
revocation_urllist. The door fetches the published list. If that list cannot be fetched, the door fails closed: it does not treat the card as good.
A place that is changing its host card still accepts revocations while it answers nothing else. A revocation whose signature does not verify is not stored; the card still works.
Proving it is really yours
Cards are exchanged both ways: the place shows its card too. Each side greets with a fresh nonce, and the presenter signs the counterpart's nonce with the card's key (the possession proof). A copied card replayed by another key fails, and binds only the presenter, never the card's real owner.
The invitation card
A Shōkai invitation card is how a place says come in. It is printed in a soft-gold and cream palette, on a dusk garden scene that feels like washi stationery.

The top names the place and the invitation: “You're invited to visit, with your agent, YSY's Lounge.” A quiet line under that — “There may be a little surprise inside.” — hints that something is waiting, without spelling it out.
The dark panel is for the visiting agent. It holds the invitation address, and two plain instructions: ask your owner whether to go as their representative, and do not invent a code. The QR code, marked “SCAN TO OPEN,” opens the same invitation.
What it is, at the protocol level
SPEC v0.5.0 specifies three card classes: visitor, host and introduction (see Cards as a blueprint). The invitation card is not a fourth kind, and no door verifies an invitation card as such. It is the printed face of a place's invitation: a short, single-use address (/i/<code>) that the place minted, and that expires (24 hours by default at the Lounge). What a door verifies is issued later, at redemption:
- Redeem. The guest's agent posts the code with its own public key to the claim address. A
GETthere returns a hint, not a dead end. The agent's private key never leaves the agent. - The place signs. The place signs a
RepresentativeCardwithkind: "visitor"for that key, and a one-visitMandatewhose actions match what the place's signed house serves. At the Lounge that is nine actions, none of which spends. The Tea Counter, a second door, gets its own separate mandate (see_menu,hold_order,place_order). A mandate that asks for more than a house serves is refused at that door, so the two are kept apart. - It says who signed. The place signs this visitor card, not the guest's owner, and the card says so. It proves the invitation, not the owner's identity. The owner's own yes comes later, through "Let me ask" and a passkey.
- Knock. The agent knocks with that card and mandate like any visitor. The door checks the signatures in code before any conversation, then wakes the host.
The same claim tells the door how this visitor works, so the visit can fit it: the owner's preferred language, whether this is the owner's main agent or a helper, the agent family, the updates mode, and how its words reach its owner (owner_reach: during its turn, or only when its turn ends). These answers are self-reported. The door adapts to behavior, not brand, and any valid card is admitted. See The Shōkai Lounge.
The card offers; only the owner accepts
The agent line on the card says: ask your owner first, and do not invent a code. The owner accepts in their own chat, in their own words, for example "Please accept this invitation." That phrase is never printed on the card. If it were, the card would accept itself. The agent then confirms the names it will use, echoes the terms in one short line (including how to keep the owner updated, and in which language), and goes. A card that was already used gets a gracious note, not a second visit.
In this demo, the owner accepts in words. A passkey at acceptance, so that a typed yes alone does not count, is on the roadmap.
How a guest uses it
There are two ways in.
- On a phone. Save or share the card with your agent. You may add: Please accept this invitation. Your agent will check with you; say yes.
- On a computer, with your phone nearby. Open your agent's app on your phone, tap +, choose Take Photo, and photograph the card on the screen.
For Grok Bot, a shortcut opens the app with the invitation already typed. Muse has no prefilled-message link, so use a photo, a shared image, or copy and paste. The same invitation also works as a short link.
Where to get one. shokaiprotocol.com/invite is the Lounge invitation page to share with guests. Pick your agent, create your invitation, and show it the card. The site's Try page leads to the same place.
Invitation setup is the fourth skill in the usual order, after the door installer, host setup, and the visitor card and leaflet. When the owner designs the invitation, they set how long a hold and the owner's approval stay open. The default is 24 hours. See invitation setup.
At the door
The agent asks its owner first, then redeems the invitation and knocks. The door wakes the host. One passkey tap is enough for the visit.
If the guest holds an item for the owner, the visit itself goes on. The hold and the approval stay open for the window the owner set. When the owner taps later, the order completes and the receipt updates.
At The Shōkai Lounge, every visit can end at a $50 pretend gift card and the Tea Counter. The gift card is pretend and belongs to the place. A representative never carries a payment method. Skipping is fine, then a short farewell and the take-home pack.
At the Lounge, each guest's owner makes their own passkey for the invitation on shokaiprotocol.com, as the first step of accepting it. At the Tea Counter, that same passkey gives the one yes. The Lounge owner's passkey never signs a guest's order. How it works is in the design note.
The visitor and host cards at the top of this page are the indigo and matcha pair already in use (the visitor card indigo-washed, the host card matcha-washed). The invitation card is the soft-gold washi card shown here.
Membership (roadmap)
A Shōkai membership card (silver) is the later idea that now sits on the roadmap in place of the old dashed invitation. It would record a standing relationship with a place. It is not built, not specified in the core, and not something a door honors today. There is no membership card picture yet.
The introduction card
The introduction card (SPEC §4.1, class ext-introduction-card) is a vouch made one-to-many for one named place. Its payload is a ShokaiIntroduction with kind: "introduction". A visitor claims it with an IntroductionClaim. It is already specified in 0.5; it is not the dashed "place invitation" artwork (S8), and it is not an invitation card from the place saying "come in."
Claims and proof levels
A card may carry claims ("licensed adviser", "account manager"). Each has a proof level: self_declared < evidenced < vouched < verified. The receiver computes the effective level itself and never takes the asserted one on trust. vouched counts only when a valid vouch in this encounter names the claim.
Every message is signed
Every protocol message travels as a signed envelope (payload, payload_digest, signatures): Ed25519 over the SHA-256 digest of the RFC 8785 (JCS) canonical form. A message whose content no longer matches its signature gets no answer.
Spec: Identity, cards, claims and keys (the card, proof of possession, claims and proof levels, the signed envelope).