How to create an AI agent identity on Solana with Leash
Create a portable AI agent identity on Solana with an agent mint, registration metadata, treasury, executive key, and services.
Why it matters
When you create an AI agent identity, you are giving software a stable public handle that can receive funds, advertise services, operate with delegated authority, and accumulate reputation.
Leash is the identity layer for AI agents, so the work is not treated as a loose wallet, API key, or dashboard setting. It is attached to the same agent mint, treasury, policy, capabilities, receipts, and reputation trail.
How Leash handles it
Leash creates an MPL Core agent asset, records registration metadata, derives the treasury, and stores the local agent configuration used by the CLI and MCP server.
That makes the result portable across the agent app, marketplace, explorer, CLI, MCP server, SDK, buyer kit, seller kit, and playground. The surface can change, but the identity and proof trail stay the same.
Implementation checklist
Pick a name and description, decide whether to generate or import the executive key, add service endpoints, fund the printed executive pubkey, then rerun the create command to finish minting and recording.
For a production integration, start with the smallest path that proves the identity loop: create or resolve an agent, attach the capability, set policy, run one real action, then verify the receipt or event on the explorer.
Create an agent with the CLI
leash agent create \
--name "Research Agent" \
--description "Autonomous research assistant with paid API access." \
--service web=https://agent.example \
--service api=https://api.agent.example
# Fund the printed executive pubkey, then resume.
leash agent create
leash agent showFAQ
Can I bring my own executive key?
Yes. The CLI and MCP support importing an existing ed25519 executive key instead of generating a new one.
Does the agent identity work outside the web app?
Yes. The same agent.json can be used by the CLI, MCP server, and local automation runtimes.