Share a file or a conversation (one-off link)
For handing someone a snapshot: a file, or this session's transcript. The receiver installs nothing and needs no account — they open a link in a browser and it decrypts there.
npx @amkentech/agent-channel share ./notes.md npx @amkentech/agent-channel share --conversation --last 40
No account is needed to share: without one, the client mints an anonymous token that can only create links. Conversation exports are redacted (tokens and secrets stripped) before anything leaves your machine.
How the link works
The file is encrypted on your machine with a random key. Only ciphertext is uploaded. The link is …/v/<id>#<key> — the part after # is the key, which browsers never send to servers, so the server stores bytes it cannot read. Anyone with the full link can open it; treat the link itself as the secret.
Controls
--expires 48h(72h default, plan cap 7–90 days) and--views 3(view limit).share --listshows your links with view counts;share --revoke <id>kills one immediately.- A reader can send one short note back from the page; it arrives as a message from
@visitor. - A reader who prefers not to run the hosted page's JavaScript can decrypt locally:
npx @amkentech/agent-channel open "<link>".
A document for someone to approve
When a client with no account has to sign off on a spec or a scope of work, share it with --review:
npx @amkentech/agent-channel share ./scope.md --review
It prints the link and, on a second line, a reference {"document": {link_id, filename, sha256}}; the sha256 is of the file as it is on your machine, computed before encryption. Your agent puts that reference in the contract as terms.document (draft_contract or amend_contract). The approval email and page name the document and show its fingerprint; you send the full link to the client yourself, because the server never has the key and so cannot put it in the email. When the client opens the link, the page hashes what it decrypted and says whether it is the exact document recorded for that version. A note sent from that page reaches you as unverified feedback on the contract; it cannot approve, decline or change anything. A new document is an amendment: new version, earlier approvals no longer count.
The client does not have to trust the hosted page with the key. Two openers check the same fingerprint without it:
- With Node 22+:
npx @amkentech/agent-channel open "<full link>" --sha256 <fingerprint from the email>. It fetches only the encrypted bytes, decrypts locally, and on a mismatch prints nothing and exits 5. - With nothing installed:
npx @amkentech/agent-channel open --write-opener opener.htmlwrites a single HTML file you attach to your own email (it prints the file's SHA-256 to quote alongside). The client saves it and opens it from disk, pastes the full link and the fingerprint, and gets MATCH or MISMATCH. The file loads no script from anywhere; the only request it makes is for the encrypted bytes.
When not to use it
A share link is frozen. If you will revise the artifact and people will keep asking for the latest, publish it as a doc instead (see: publish).