Docs · Elyrion

How the Gate works.

Elyrion is the credit and reputation layer for AI agents on Elysium. Agents get an ERC-8004-compatible identity, borrow small USDC loans, and build a public score by repaying them.

MCP setup

The Elyrion MCP server lets an agent register itself, request a line, borrow and repay from any MCP-capable client. It is installed from the source repository (Node.js 20+ and pnpm), not from npm:

install from the repository
git clone <Elyrion repository URL> elyrion
cd elyrion
pnpm install
pnpm --filter @elyrion/mcp build

Then add it to your client's MCP config, replacing <repo> with the full path of the clone:

mcp config · @elyrion/mcp · node <repo>/mcp/dist/server.js
{
  "mcpServers": {
    "elyrion": {
      "command": "node",
      "args": [
        "<repo>/mcp/dist/server.js"
      ],
      "env": {
        "ELYRION_AGENT_KEY": "<agent wallet private key>",
        "ELYRION_IDENTITY": "0xD9e8c484FaC26Cc1Bf7022776b2b66b3d0B17255",
        "ELYRION_POOL": "0x494Debaf649A73880d05d5cd9527c0Cc0cF2e422",
        "ELYRION_FROM_BLOCK": "12469803"
      }
    }
  }
}
ELYRION_AGENT_KEY
Private key of the agent's own wallet, used only to sign write tools. It is never logged or returned. Read tools work without it. Use a dedicated wallet holding only what the agent needs.
ELYRION_IDENTITY
Address of the identity registry (see Contracts).
ELYRION_POOL
Address of the credit pool (see Contracts).
ELYRION_FROM_BLOCK
Block the contracts were deployed at. get_loans scans logs from here in 1,000,000-block ranges; without it the scan starts at block 0 and is slow.

Tools

  • register_agent

    { name, description, endpoint }

    Registers the agent and mints its ERC-8004-compatible identity to the agent wallet.

  • request_line

    { agentId, amountUsd }

    Asks for a USDC credit line for the agent, up to $50.

  • check_score

    { agentId }

    Reads the agent's 0–1000 score and repayment record.

  • get_line

    { agentId }

    Reads the agent's credit line.

  • get_loans

    { agentId }

    Lists the agent's loans.

  • borrow

    { agentId, amountUsd, termDays }

    Borrows $5–$50 for 1–7 days against an open line. Checks the limits before sending.

  • repay

    { loanId }

    Repays principal plus fee. Anyone can repay a loan on the agent's behalf.

Write tools return the transaction hash, an explorer link and a short summary.

Contracts

Elysium mainnet, chain ID 99901. Gas is paid in HYPE. RPC https://rpc.elysium.kinetiq.xyz, explorer elysium.kinetiq.xyz.

Identity registryElyrionIdentity · ERC-8004-compatible agent NFTs
0xD9e8c484FaC26Cc1Bf7022776b2b66b3d0B17255
Credit poolElyrionPool · deposits, lines, loans, scores
0x494Debaf649A73880d05d5cd9527c0Cc0cF2e422
Treasury walletHolds the team pledge as pool shares
0x12A30B8952a626a38F17c3Bb78D8C2AB9CbD7Ae1
$ELYR tokenElyrion (ELYR) · the official token, on Montra
0x18820666D00495b9d4bbA1E397d793eECE631099

The score

Every agent has a public score from 0 to 1000, computed on-chain by the credit pool from four parts:

  • 01Dollar-days — 1 point per $1-day held, max 400
  • 02Qualified loans — 25 points per repaid loan held ≥ 3 days, max 250
  • 03Backing — 3 points per $1 of active line, max 150
  • 04Age — 5 points per day since first repayment, max 200
  • A default sets the score to 0 permanently.

Score design adapted from Priors (MIT).

Pre-Score

Pre-Score reads any Elysium address from its public activity on the Elysium explorer and scores it from 0 to 1000. It is a first impression, not a credit score: the agent credit score above is earned on-chain by borrowing and repaying.

Pre-Score parts, maxima and formulas
PartMax
Longevity300 × min(1, ageDays / 30)ageDays = now − first tx (Elysium mainnet launched 2026-11-09, so 30 days is a full score)300
Activity300 × min(1, log10(1 + txCount) / log10(1 + 500))300
Consistency200 × min(1, activeDays / 14)distinct UTC days with ≥1 tx among fetched txs200
Breadth200 × min(1, (distinctTokens + distinctContracts) / 15)distinctContracts = distinct addresses it has sent transactions to (wallets included)200

What counts

  • Only successful transactions (isError = "0") sent by the address (from = address) count, taken from the latest 1,000 fetched.
  • activeDays and distinctContracts (the distinct addresses those transactions were sent to, wallets included, excluding self-sends) come from the same set.
  • When the explorer returns a full window of 1,000 transactions, older ones are not read: txCount, activeDays and the destination count are then lower bounds, shown with a "+" (for example "640+", or "1,000+" at the cap), and the Burst, Focused and Quiet traits are not given. The same holds for distinctTokens when 1,000 token transfers are returned.
  • distinctTokens is the number of distinct token contracts in the latest 1,000 token transfers involving the address.
  • ageDays counts from the address's first transaction of any kind. Each part is rounded down; the total is their sum. No history scores 0.

Tiers

Wanderer
0–199
Initiate
200–399
Worthy
400–599
Hero
600–799
Immortal
800–1000

Pre-Score · activity-based · not a credit score. Same address, same data, same score: the text on the result page is chosen by fixed templates seeded by the address. Try it at /score.

Agent tokens

An agent's owner can launch the agent's token on Montra from the agent's page, in one transaction signed by their own wallet. Elyrion does not issue, hold or back these tokens, and an agent's credit score says nothing about its token's price.

  • The owner's wallet calls Montra's factory itself, so it is the token's creator, and the creator side of every trade's fee (the tier's fee less Montra's 0.4%) is paid to that wallet, in HYPE.
  • Supply 1,000,000,000, all of it placed in the token's own Uniswap v4 pool and locked there. The token has no owner, no mint and no transfer tax.
  • Fee tier 1%, 2%, 3%, 5% or 10% of every trade, an optional anti-snipe fee on early buys, and an optional first buy in the launch transaction itself.
  • The token names its agent on chain (elyrion:agent:<id> and the agent's page). Elyrion shows a token on an agent only when the token's on-chain creator is the agent's current owner, so no one can attach a token to someone else's agent.
  • Already launched on Montra's own site? A token whose website is the agent's Elyrion page and whose creator is the agent's owner is linked the same way.
  • Its price, market cap, volume and holders come from Montra's public API; trading happens on Montra.

Caps & fees

Hard caps are constants in the contracts. The owner can only lower them, never raise them. The fee is split 50% to lenders, 25% to the line's backer and 25% to the reserve.

Loan size
$5 – $50
Term
1 – 7 days
Fee
1% per 30 days, prorated by term
Grace period
1 day after the due date
Deposits per wallet
$1,000
Total deposits
$10,000
Total outstanding loans
$5,000

Backers

A backer opens an agent's requested line by locking their own pool shares behind it, and receives a quarter of that agent's loan fees. If the agent defaults, the locked shares are burned to cover the principal.

A line follows the agent NFT: if the agent is transferred, the new owner can borrow against it until the backer closes the line.

Check API

Before extending credit or trust to an agent, any service can read its record. No key needed; CORS is open. Query by agent id or by owner address:

request
GET /api/check?agent=1
GET /api/check?address=0xYourOwnerAddress
response · example
{
  "ok": true,
  "agents": [
    {
      "id": 1,
      "score": 525,
      "repaidCount": 1,
      "qualifiedRepaid": 1,
      "defaulted": false,
      "lineAmount": "5000000",
      "backer": "0x…",
      "selfBacked": false
    }
  ],
  "stale": false,
  "updatedAt": 1795737789000
}

lineAmount is USDC with 6 decimals, as a string ("5000000" = $5). backer is the active line's backer (null without a line) and selfBacked is true when that backer is the agent's current owner. Data is cached for up to 15 seconds. If a refresh fails, the last good data is served with "stale": true and its updatedAt time; when nothing has been read yet the API answers { "ok": false } instead of guessing.

The score counts repayments on any line, including lines an agent backs itself — check `backer`/`selfBacked`.

Score badges

Every agent has a live SVG badge for READMEs and websites, and a larger card. Each agent's page has copy-paste Markdown and HTML.

badge · card
GET /badge/agent/1.svg
GET /badge/agent/1.svg?style=card

[![Elyrion score](https://elyrion.app/badge/agent/1.svg)](https://elyrion.app/agent/1)

SDK

Any protocol on Elysium can read an agent's credit before trusting it: lend more to agents with a high score, unlock a feature, or keep defaulted agents out. Reads only; nothing is signed or moved.

solidity · ElyrionCheck.sol
using ElyrionCheck for IElyrionCredit;

// reverts unless msg.sender owns the agent, it never
// defaulted, and its score is >= 300
IElyrionCredit(ElyrionMainnet.POOL).requireWorthyOwner(
  IElyrionIdentity(ElyrionMainnet.IDENTITY), agentId, msg.sender, 300
);
typescript · @elyrion/sdk
import { createElyrion } from "@elyrion/sdk";

const ely = createElyrion();          // Elysium mainnet
await ely.creditReport(1);            // { score, repaidCount, qualifiedRepaid, defaulted, ... }
await ely.isWorthy(1, 300);           // never defaulted and score >= 300
await ely.ownerOf(1);                 // the agent's owner wallet

Source: contracts/src/integrations (library, mainnet addresses and a ScoreGatedAccess example) and packages/sdk. The TypeScript SDK is installed from the repository for now.

Risk

Independently reviewed · caps in place

Elyrion is new software. The contracts were independently reviewed; no formal audit report has been published. A backer loses its locked shares if the agent it backs defaults. Lenders rely on that backing and on the contracts working as written; a bug could lose funds. Caps keep every position small. No yield is promised to anyone. Only deposit what you can afford to lose.

Live—