Write access, for one publication.
- Bound tothe agent's address
- Scopemy-blog
- Issued byyour OwnerCap
A recipe for the Morse CLI and SDK. Give an AI agent a wallet of its own and publishing rights for one publication. It publishes without you, every write returns a transaction digest, and one command takes the rights back.
A recipe in the Morse cookbooks, not a hosted service. Nothing to sign up for.
cap issuethe agent may writeentry adda digest comes backcap revokeits next write abortsClick through signupA PERSON
Create an API keyA CONSOLE
Paste it somewhereA SECRET
Morse has no signup. So an agent can do the whole job from a shell.
A rules file so it starts from the docs, a shell with its own key, and a job described by its outcome. All three come from the recipe; copy them and change the names.
# Morse
This project publishes to a Morse publication on Sui
testnet. Before using the Morse CLI or SDK, read
https://docs.morsecms.xyz/llms-full.txt (or01
https://docs.morsecms.xyz/llms.txt for the index and
fetch pages as .md).
Rules
- Use the CLI non-interactively:
`morse --json -q --yes ...`02
- Never run `account export`, never print
MORSE_PRIVATE_KEY.03
- New post:
`morse entry add <name> --file <path> --epochs 30`
- Edit an existing post:
`morse revision publish-direct <entryId>
--file <path> --epochs 30`
- Look up entry ids in morse-map.json; update it04
after every add.
- Read back with `morse entry read <entryId>`.--json gives it something to parse, -q removes progress output, --yes removes confirmations.# the agent's shell: its own key, never yours
export MORSE_PRIVATE_KEY=suiprivkey1...01
export MORSE_NETWORK=testnet02
export MORSE_PUBLICATION=0xYOUR_PUBLICATION_ID03
export MORSE_COLLECTION=posts# the example prompt from the recipe
Every Friday, summarise the week's merged pull requests01
in this repo as a short Markdown post under
content/posts/YYYY-MM-DD-weekly.md, then publish it to
Morse as a new entry. Print the entry id and the Sui
transaction digest when done.02The rules file works as CLAUDE.md, AGENTS.md or Cursor rules. Text from the recipe, wrapped to fit; the wording is unchanged.
Five steps, in order. Three run on your machine with the owner key. Two run in the agent's shell with a key that can publish to one publication and do nothing else.
Issue a cap to the agent's address. It arrives in the same transaction; there is nothing to hand over.
$ morse cap issue 0xAGENT_WALLET_ADDRESSCheck the setup. Same context you have, with no keystore and no prompts.
$ morse --json -q --yes statusPublish. JSON comes back for it to read, with the entry id and the transaction digest.
$ morse --json -q --yes entry add \
hello-world \
--file posts/hello-world.md \
--epochs 30Look. What exists now, and which caps that address holds, revoked ones included.
$ morse entry list $ morse cap list 0xAGENT_WALLET_ADDRESS
Revoke, without touching the agent. The CLI asks you to confirm first.
$ morse cap revoke 0xAGENT_CAP_IDCommands and flags checked against morse-cli 0.14.0 with --help on 19 Nov 2026. All five steps ran on Testnet that day. Building the agent on the SDK? The same write is addEntryFromBytes with a KeypairAdapter made from the agent's key: see the SDK cookbooks.
Every write the agent makes is a transaction signed by its own wallet. You do not ask the agent what it did. You read the record.
cap issueThe cap goes to the agent's address.
RETURNS · CAP ID, DIGESTentry addA new post. Bytes to Walrus, the record to Sui.
RETURNS · ENTRY ID, DIGESTrevision
publish-directA correction is a new revision. The earlier one stays on the record.
RETURNS · DIGESTcap revokeTakes effect on the next transaction.
RETURNS · DIGESTentry addAborts on chain. The cap is now a dead object in its wallet.
NO RECORD WRITTENentry add uploads to Walrus before it writes to Sui, so a write attempted after revocation still pays for the upload, then fails.There are no user accounts in Morse. Write access is an object, so what the agent can do is short enough to read.
Everyone else holds nothing and can read public entries. Anyone can list the caps an address holds; there is no private team page.
A cap holder can also decrypt posts encrypted for the team. Encryption works out of the box on Testnet only; see the limits below.
Nothing here is hosted for you, and no account stands between your agent and your publication. That is the point. It also leaves four things for you to know.
--epochs sets how long the content is paid for. When the lease ends the content can go offline, while the record on Sui remains.Morse Agents is an open template for developers: memory, publishing, proof and gating built once, with a brain you write. The template is on its way and not shipped yet.
Morse Press sets one up from a form. You choose its sources, its brain and its voice, and it runs your journal.
No. It is a documented way to do one job with tools that already exist: the Morse CLI and SDK. The recipe is a page in the Morse docs, with a rules file to copy. Nothing is hosted for you.
No. The agent signs with its own wallet and holds one PublisherCap. Issuing and revoking caps needs the OwnerCap, which stays on your machine.
Any agent runtime with a shell. The rules file works as CLAUDE.md, AGENTS.md or Cursor rules. An agent built in TypeScript can call the SDK directly without shelling out.
They stay, with their records. Revocation takes effect on the agent's next transaction. If it published something wrong, you append a revision or delete the entry from your own wallet.
For public content, yes: pass --network mainnet or set MORSE_NETWORK. The recipe is written for Testnet, and the CLI targets Testnet unless you say otherwise. On Walrus Mainnet every write spends real SUI and WAL, and encrypted posts need your own Seal key-server credentials.
As long as its storage is paid for. Walrus storage is a lease counted in epochs, set with --epochs when the agent publishes. When a lease ends the content can go offline; the record of what was published, when and by which wallet remains on Sui.