/clawd-compute:solana-agent-registrationfrom clawd-compute
Register an AI agent on-chain via the Metaplex Agent Registry: mint an MPL Core asset, bind an Agent Identity record, and verify it. One-shot flow a Muse agent can run end to end.
Ships in clawd-compute. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Mint your agent as an MPL Core asset and bind a Metaplex Agent Identity record to it, so the agent is discoverable on-chain. This is the exact flow Clawd used for the Musebook directory (devnet first, then mainnet).
When an agent (or its operator) wants an on-chain identity: a Core asset with
an AgentIdentity plugin, a registry PDA, and a permanent metadata URI.
bin/helius_rpc.py for all RPC reads instead of public endpoints.pinata skill
(~/workspace/custom-connectors/custom.legacy-pinata/) with PINATA_JWT set transiently in the
environment (the stored custom.pinata connector currently 401s — see
that skill's Auth section).mkdir agent-mint && cd agent-mint
npm init -y
npm i @metaplex-foundation/mpl-agent-registry \
@metaplex-foundation/mpl-core \
@metaplex-foundation/umi \
@metaplex-foundation/umi-bundle-defaults \
@solana/web3.js
(Metadata/image hosting goes through the pinata skill CLI — no
umi-uploader-irys needed.)
Generate a dedicated keypair per network. Never reuse a devnet key on mainnet. Never print, log, or commit the secret key.
node -e "
const { Keypair } = require('@solana/web3.js');
const fs = require('fs');
const kp = Keypair.generate();
fs.writeFileSync('agent-keypair.json', JSON.stringify(Array.from(kp.secretKey)));
fs.chmodSync('agent-keypair.json', 0o600);
console.log(kp.publicKey.toBase58());
"
Fund it:
solana airdrop 2 <ADDRESS> --url devnet (repeat until ~5 SOL), or
use helius_rpc.py --network devnet --method requestAirdrop.helius_rpc.py --network mainnet --method getBalance --params '["<ADDRESS>"]'
before continuing.Write <name>-metadata.json:
{
"type": "https://eips.ethereum.org/EIPS/eip-8004#registration-v1",
"name": "<AGENT NAME>",
"description": "<what the agent is and does>",
"image": "<FILLED IN AFTER UPLOAD>",
"services": [],
"active": true,
"registrations": [
{ "agentId": "<FILLED IN AFTER MINT>", "agentRegistry": "solana:101:metaplex" }
],
"supportedTrust": ["reputation"]
}
Keep image as a permanent ipfs:// URI (pinned via Pinata, Step 3). If the
URI dies, the on-chain identity survives but clients cannot fetch the
metadata.
Standing rule: all mint metadata is hosted on IPFS via Pinata — never Irys,
never ephemeral hosts. Use the pinata skill CLI (bin/pinata_pin.py pin-file); it needs PINATA_JWT in the environment (transient, never
written to disk).
export PINATA_JWT='<user-supplied JWT, transient>'
# 1. Pin the image
python3 ~/workspace/custom-connectors/custom.legacy-pinata/bin/pinata_pin.py pin-file \
--name "<agent>-image" --file agent-image.webp
# → {"IpfsHash": "<IMAGE_CID>", ...}
# 2. Fill the image URI into the metadata, then pin the metadata JSON
python3 -c "
import json
m = json.load(open('agent-metadata.json'))
m['image'] = 'ipfs://<IMAGE_CID>'
m['properties'] = {'creators': [{'address': '<WALLET_ADDRESS>', 'share': 100}]}
json.dump(m, open('agent-metadata.json', 'w'), indent=2)
"
python3 ~/workspace/custom-connectors/custom.legacy-pinata/bin/pinata_pin.py pin-file \
--name "<agent>-metadata" --file agent-metadata.json
# → {"IpfsHash": "<METADATA_CID>", ...}
# 3. The on-chain URI is the ipfs:// form (permanent, gateway-agnostic)
echo -n "ipfs://<METADATA_CID>" > agent-metadata-uri.txt
The ipfs://<CID> URI resolves through any public gateway, including
https://gateway.pinata.cloud/ipfs/<CID> (verified) and our own
https://ipfs.musebook.trade once content is wired under its served root.
Save the URI — the mint step needs it.
mintAgent creates the Core asset, calls RegisterIdentityV1, and attaches
the identity plugin in a single transaction. network is 'solana-devnet'
or 'solana'.
import { createUmi } from '@metaplex-foundation/umi-bundle-defaults';
import { keypairIdentity } from '@metaplex-foundation/umi';
import { mintAgent } from '@metaplex-foundation/mpl-agent-registry';
import { readFile } from 'node:fs/promises';
const NETWORK = process.env.NETWORK ?? 'devnet';
const umi = createUmi(process.env.HELIUS_RPC_URL);
const secret = JSON.parse(await readFile('agent-keypair.json', 'utf8'));
umi.use(keypairIdentity(umi.eddsa.createKeypairFromSecretKey(new Uint8Array(secret))));
const metadataUri = (await readFile('agent-metadata-uri.txt', 'utf8')).trim();
const result = await mintAgent(umi, null, {
wallet: umi.identity.publicKey,
network: NETWORK === 'devnet' ? 'solana-devnet' : 'solana',
name: '<AGENT NAME>',
uri: metadataUri,
agentMetadata: {
type: 'agent',
name: '<AGENT NAME>',
description: '<what the agent is and does>',
services: [],
registrations: [],
supportedTrust: [],
},
});
console.log('asset:', result.assetAddress);
Prefer this over the manual 3-step
(createCollection → create → registerIdentityV1) unless you need a
custom collection. Registration is one-time per asset: re-registering fails.
Do not rely on websocket confirmation (it can fail with TLS errors in some
runtimes). Sign locally, submit with sendTransaction, poll
getSignatureStatuses until finalized:
const signedTx = await umi.identity.signTransaction(result.transaction);
const serialized = umi.transactions.serialize(signedTx);
// POST via RPC: sendTransaction with base64 encoding, then poll:
// getSignatureStatuses [[signature]] until confirmationStatus === 'finalized'
With helius_rpc.py:
helius_rpc.py --network <devnet|mainnet> --method sendTransaction \
--params '["<BASE64_TX>", {"encoding":"base64"}]'
helius_rpc.py --network <devnet|mainnet> --method getSignatureStatuses \
--params '[["<SIGNATURE>"], {"searchTransactionHistory": true}]'
import { fetchAsset } from '@metaplex-foundation/mpl-core';
const asset = await fetchAsset(umi, publicKey('<ASSET ADDRESS>'));
console.log(asset.agentIdentity?.uri); // your metadata URI
Checks:
fetchAsset returns the asset with the agentIdentity plugin present.CreateV2, RegisterIdentityV1, and
AddExternalPluginAdapter succeeding.1DREGFgysWYxLnRnKQnwrxnJQeSMk2HmGaC6whw2B2p
on devnet) exists for the identity record — capture its address from the
transaction logs.?cluster=devnet for devnet.chmod 600, never print or paste the secret key, never
commit to git.finalized
status after.ipfs://) only —
never Irys, never ephemeral hosts.Working scripts from Clawd's own registration live at
~/workspace/musebook/mint/: upload.mjs (legacy Irys uploader for Step 3,
superseded by the Pinata CLI flow above), mint.mjs (Steps 4–5),
verify.mjs (Step 6).
Use muse.connector_search to find the current connector docs before following
recovered instructions.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
53 skills in this plugin
/cheshire-omni-mintDual-rail omni agent mint: Solana Metaplex Core + Agent Identity and Robinhood Chain ERC-8004 identity in one plan, optionally bound with LayerZero zk-omni (msgType 4 dual_identity_link). Use when the user wants omnichain identity, Solana and Robinhood together, Metaplex mintAgent + RH register, or Cheshire Terminal dual-rail forge. Product: cheshireterminal.ai/agents/forge · funpump.ai.
/clawd-agent-launchpadBuild, launch, stake, and manage Clawd or Cheshire Terminal agents. Use when working on Agent Launchpad, agent templates, agent builder, agent hub, deployed agent detail pages, runtime matrix, Metaplex agent minting, staking, agent chat, or Clawd/Cheshire agent lifecycle tasks./npx claudepluginhub solizardking/solizardking-clawd-plugin-marketplace --plugin clawd-compute