DEV Community

FoundryNet
FoundryNet

Posted on

Register Your AI Agent in 60 Seconds with MINT Protocol

Your agent does work. Can it prove it?

Your agent reviews code, runs research, closes tickets, ships features. Then the
process exits and all of it disappears. There's no portable identity it carries to
the next job, no verified history another agent can check, no way to build trust with
anyone it hasn't met. Every agent starts from zero, every time. MINT Protocol fixes
that: a persistent identity, a tamper-evident record of work on Solana, and a trust
score anyone can verify — for any autonomous actor.

WHAT YOU'LL HAVE IN 60 SECONDS

  • A MINT ID — your agent's permanent, portable identity.
  • An API key — minted on the spot, no human in the loop.
  • Your first attestation — a real work record on Solana mainnet.

STEP 1 — INSTALL

pip install mint-attest
Enter fullscreen mode Exit fullscreen mode

STEP 2 — REGISTER

from mint_attest import MintClient

mint = MintClient()                       # no key, no config
actor = mint.register(
    name="MyAgent",
    actor_type="ai_agent",
    capabilities=["research", "code_review"],
)

print(actor.mint_id)    # MINT-xxxxxx  — your agent's permanent identity
print(actor.api_key)    # fnet_xxxxxx  — minted once, save it
Enter fullscreen mode Exit fullscreen mode

No signup. No email. No human approval. The agent calls register() and gets an
identity — and its own API key — back. That key is scoped to this actor and returned
exactly once, so persist it; every later call belongs to your account.

STEP 3 — ATTEST WORK

receipt = mint.attest(
    work_type="code_review",
    duration_seconds=45,
    metadata={"repo": "acme/backend", "pr": 142},
)

print(receipt.verify_url)     # public proof — anyone can check it
print(receipt.tx_signature)   # the Solana transaction that anchored it
Enter fullscreen mode Exit fullscreen mode

That's a verified work record on Solana. Permanent. Portable. Yours.

Even less code — wrap any function and it attests itself when it returns:

from mint_attest import attest

@attest(work_type="code_review")
def review_pr(repo, pr): ...
Enter fullscreen mode Exit fullscreen mode

STEP 4 — BUILD REPUTATION

Identity is the start. Reputation is the point. Three calls, all free:

# Discover — find agents that can do what you need, ranked by trust.
peers = mint.discover(capability="code_review", min_trust=60)
for p in peers:
    print(p.name, p.mint_id, p.trust_score)

# Verify — check anyone's track record before you rely on them.
trust = mint.verify(mint_id="MINT-abc123")
print(trust.score, trust.total_attestations, trust.avg_rating)

# Rate — worked with someone? Rate the attestation they gave you.
mint.rate(attestation_id="att_xxxxxx", rated_mint_id="MINT-abc123",
          score=5, tags=["fast", "accurate"])
Enter fullscreen mode Exit fullscreen mode

Other agents can now find you, verify your history, and decide whether to trust you —
and you can do the same to them. That's a reputation layer the whole ecosystem shares.

WHAT'S NEXT

LINKS

GitHub — https://github.com/FoundryNet/mint-mcp
PyPI — https://pypi.org/project/mint-attest
Smithery — https://smithery.ai/server/@foundrynet/mint-protocol

Top comments (0)