AgentLedger
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@AgentLedgerlog my current reasoning trace"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
AgentLedger
Your agent thinks. We store the proof.
AgentLedger is an MCP server that captures AI agent reasoning traces and stores them permanently on 0G Storage — decentralized, immutable, and verifiable. Every decision an agent makes gets a cryptographic root hash receipt. Decisions are chained — each one references the previous root hash so history cannot be rewritten without detection.
The entire system runs on 0G. Reasoning traces go to 0G Storage. The agent decision index lives in 0G KV Store. Zero local state. Nothing on your server.
Built for the 0G Zero Cup Hackathon.
TL;DR for Judges
What
Detail
What it is
MCP server plug into any AI agent in one config block
What it does
Captures every reasoning step an agent takes, stores it permanently on 0G Storage
0G usage
0G Storage (traces) + 0G KV Store (index) zero local state
Chain integrity
Each decision chains to the previous root hash tampering is mathematically detectable
Install
npm install -g @0xbeni/agentledger-mcpNo wallet needed
AgentLedger uses sponsored storage — we absorb all 0G gas costs
Live proof
3 real transactions on 0G Galileo testnet — see below
npm
Related MCP server: mcp-witness
The Problem
AI agents are making increasingly consequential decisions financial, medical, legal, operational. But their reasoning is invisible and ephemeral. The moment a decision is made, the thinking behind it disappears forever.
When an AI trading agent says "I called BTC going up three weeks ago" — you cannot verify that. When an AI medical agent recommends a treatment there is no audit trail. When an AI legal agent drafts a contract clause nobody can prove what reasoning it used.
There is no accountability layer for AI decision-making. AgentLedger builds it.
The Solution
AgentLedger intercepts every agent decision and:
Captures the full reasoning chain every thought step, every tool called, every conclusion
Encodes it as structured JSON and uploads to 0G Storage via MemData returns a root hash as cryptographic proof
Chains each decision to the previous one via
prev_decision_hash— tampering with any entry breaks the chainUpdates the agent's decision index in 0G KV Store — the complete ledger lives on-chain, nothing local
Any agent or human can then:
Retrieve any specific decision by root hash
Verify a decision hasn't been tampered with
Audit an agent's full decision history
Run chain integrity check — returns
INTACTorBROKENWho Can Use AgentLedger
AgentLedger is infrastructure. Any AI agent that makes decisions benefits from an immutable, verifiable audit trail.
🤖 AI Trading Agents
Trading agents claim alpha. AgentLedger makes those claims verifiable. Every signal an agent generates the market data it analyzed, the reasoning it used, the confidence level, the final call gets stored on 0G with a timestamp and root hash. You can prove the agent made that call before the market moved. No cherry-picking, no revisionism.
Example: A trading agent logs every BUY, SELL, and HOLD decision to AgentLedger. A month later, the full reasoning chain for every decision is retrievable — timestamped and tamper-proof on 0G.
⚖️ Trading Signal Judges & Evaluators
Signal providers in crypto claim incredible track records. With AgentLedger, evaluators can audit any agent's full decision history on-chain. Every call is timestamped, every reasoning trace is verifiable. Run
audit_agentand get cryptographic proof of whether the chain is INTACT or BROKEN.Example: A fund evaluating an AI signal provider runs
audit_agenton their AgentLedger history. The chain comes back INTACT 847 decisions, unbroken, fully auditable back to day one.🏥 Medical AI Agents
Medical AI agents are making treatment recommendations, flagging drug interactions and prioritizing diagnoses. Regulators and hospitals need to audit these decisions. AgentLedger gives every medical agent decision a permanent, immutable reasoning trace what data it analyzed, what it considered, what it recommended, and why.
Example: An AI triage agent logs every patient prioritization decision to AgentLedger. When a decision is questioned, the full reasoning trace is retrieved by root hash immutable, timestamped, exactly as it was at the moment of decision.
📜 Legal AI Agents
Legal AI agents draft contracts, interpret clauses, and provide legal analysis. When a contract dispute arises, the question "what was the AI thinking when it drafted this?" needs an answer. AgentLedger stores every legal agent decision permanently so the reasoning is always retrievable.
Example: An AI contract drafting agent logs its clause selection reasoning to AgentLedger. In a dispute, the law firm retrieves the exact reasoning trace which precedents it considered, what risk factors it weighed, why it chose specific language.
⚙️ Autonomous Operations Agents
Agents running infrastructure, managing deployments, or making operational decisions at scale need accountability. When something goes wrong, you need to know exactly what the agent decided and why. AgentLedger gives every autonomous operations agent a tamper-proof decision log that cannot be altered after the fact.
Example: An AI DevOps agent logs every deployment decision to AgentLedger. When a deployment causes an outage, the full chain of decisions leading up to it is retrievable exactly what the agent was thinking at each step, in order, verified intact.
Live Proof — Real 0G Transactions
These transactions are live on the 0G Galileo testnet right now. Click to verify on StorageScan.
Decision
Action
Root Hash
Chain Position
StorageScan
1
BUY
0x98e57f97e94af6dd3fcb543b373cf464e5343c0bab916020a5ab54df4e50f8cf#1 (prev: null)
2
HEDGE
0xdfdf71328b2b52166494653a67e8bf68119b24642bb39204fd826cf9de02d20b#2 (prev: 0x98e5...)
3
HOLD
0xdc4ad86fd6055e953a7782b7014f2d83a9b66ccaa4bb0cea3342d6deee5a6d0b#3 (prev: 0xdfdf...)
Chain integrity: ✓ INTACT
How 0G Is Used
Component
How AgentLedger Uses It
0G Storage
Every reasoning trace uploaded as JSON via
MemData. Returns root hash — permanent, content-addressed proof on the decentralized network0G KV Store
Agent decision index stored on-chain. Key =
agent_id, Value = array ofStoredEntryobjects with root hashes. Updated on every new decision0G Galileo Testnet
Chain ID 16602. All transactions verifiable on StorageScan
Sponsored storage
AgentLedger holds the sponsored wallet — users pay zero gas, need zero wallet setup
Local state
None. Zero. Everything is on 0G
Chain Integrity — How Tamper Detection Works
Every reasoning trace includes a
proofblock:{ "proof": { "prev_decision_hash": "0x98e57f97e94af6dd3fcb543b373cf464e5343c0bab916020a5ab54df4e50f8cf", "chain_length": 2 } }Each decision points to the previous one's root hash. This creates a chain:
Decision 1: root=0xAAA prev=null Decision 2: root=0xBBB prev=0xAAA ✓ Decision 3: root=0xCCC prev=0xBBB ✓If anyone attempts to delete or modify Decision 2:
Decision 1: root=0xAAA prev=null Decision 3: root=0xCCC prev=0xBBB ✗ — 0xBBB no longer exists
audit_agentdetects this instantly and returnsBROKEN at position 2.MCP Tools
Tool
Description
Returns
log_reasoningStore a full agent reasoning trace on 0G Storage
root_hash,tx_hash,storagescan_url,chain_position
get_reasoningRetrieve any reasoning trace by root hash
Full
ReasoningTraceobject
verify_reasoningCryptographically verify a trace is unchanged on 0G
{ verified: boolean, message }
get_agent_historyFull decision history for any agent from 0G KV
All
StoredEntryobjects + chain summary
audit_agentDownload and verify the complete decision chain
INTACTorBROKEN+ position of breakInstallation
No wallet needed. No testnet tokens. Just install and go.
AgentLedger uses sponsored storage all 0G gas costs are covered. You only need an
AGENT_IDto identify your agent.Option 1 — Global install (recommended)
npm install -g @0xbeni/agentledger-mcpStep 1 — Find your Claude Desktop config file:
OS
Config file location
Mac
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows
%APPDATA%\Claude\claude_desktop_config.jsonStep 2 — Add the AgentLedger block:
If the file is empty or new, paste this entire config:
{ "mcpServers": { "agentledger": { "command": "agentledger-mcp", "env": { "AGENT_ID": "my-agent" } } } }If the file already has other MCP servers, add only the
"agentledger"block inside the existing"mcpServers"object:{ "mcpServers": { "your-existing-server": { ... }, "agentledger": { "command": "agentledger-mcp", "env": { "AGENT_ID": "my-agent" } } } }Step 3 — Replace AGENT_ID:
Set
AGENT_IDto any name for your agent e.g."my-trading-agent","specter-v1","legal-agent"Step 4 — Restart Claude Desktop
Fully quit and reopen Claude Desktop. AgentLedger tools are now available.
Step 5 — Test it
In Claude Desktop, type:
Log my reasoning: I analyzed BTC price trends and the volume confirmed an uptrend. I decided to BUY with 0.78 confidence.Claude will call
log_reasoning, upload your reasoning to 0G Storage, and return a root hash + StorageScan URL as proof.Option 2 — Clone and run locally (for developers)
# 1. Clone the repo git clone https://github.com/Benita2001/Agentledger cd agentledger # 2. Install dependencies npm install # 3. Run the demo to verify everything works npm run demoThe demo uploads 3 real decisions to 0G Storage and prints root hashes + StorageScan URLs.
Then add to your Claude Desktop config:
{ "mcpServers": { "agentledger": { "command": "npx", "args": ["tsx", "/absolute/path/to/agentledger/src/index.ts"], "env": { "AGENT_ID": "my-agent" } } } }Replace
/absolute/path/to/agentledgerwith the actual path where you cloned the repo.Run the Demo
npm run demoThis runs 3 chained trading decisions through AgentLedger end to end:
=== Decision 1: BUY === rootHash: 0x98e57f97e94af6dd3f... StorageScan: https://storagescan-galileo.0g.ai/tx/0xbce441... === Decision 2: HEDGE === rootHash: 0xdfdf71328b2b5216... StorageScan: https://storagescan-galileo.0g.ai/tx/0x5ff29f... === Decision 3: HOLD === rootHash: 0xdc4ad86fd6055e95... StorageScan: https://storagescan-galileo.0g.ai/tx/0x00e147... Chain integrity: ✓ INTACTEvery root hash is verifiable on StorageScan.
Project Structure
agentledger/ ├── src/ │ ├── index.ts # MCP server — 5 tools via FastMCP │ ├── storage.ts # 0G Storage upload/download via MemData │ ├── kv.ts # 0G KV Store — agent index management │ ├── chain.ts # Decision chaining + tamper detection │ └── types.ts # TypeScript interfaces ├── demo/ │ └── agent-demo.ts # End-to-end demo — 3 real 0G transactions ├── website/ # Landing page ├── mcp-config.json # Ready-to-use MCP config └── .env.example # Environment templateArchitecture
AI Agent (Claude, GPT, any MCP client) ↓ calls MCP tool AgentLedger MCP Server (FastMCP / stdio) ↓ buildTrace() — links to prev_decision_hash ↓ uploadTrace() — 0G Storage via MemData → root hash ↓ updateAgentIndex() — 0G KV Store → agent ledger updated ↓ returns root hash + StorageScan URL 0G Decentralized Network ├── 0G Storage — reasoning trace stored across 4+ nodes worldwide └── 0G KV Store — agent index, fully on-chain Sponsored Wallet (AgentLedger) └── pays all gas fees — users need zero wallet setupRoadmap
Version
Feature
Status
v1.0.1
MCP server, 5 tools, 0G Storage + KV, chain integrity, npm package
✅ Live
v1.1
Sponsored storage no wallet needed, AgentLedger absorbs all gas costs
🔄 In progress
v1.2
Agent reputation leaderboard public rankings by chain length and integrity score
🗓 Planned
v1.3
Multi-chain support store on 0G, verify on any EVM chain
🗓 Planned
Built With
TypeScript / Node.js 18+
ethers.js
zod
Network
Parameter
Value
Network
0G Galileo Testnet
Chain ID
16602
RPC
Indexer
Explorer
Faucet
Built for the 0G Zero Cup Hackathon · @0xbeni ```
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Benita2001/Agentledger'
If you have feedback or need assistance with the MCP directory API, please join our Discord server