The clearing layer for machine commerce. When AI agents transact at scale, someone has to settle. That's Kaledge. Kaledge provides financial infrastructure for AI agents: - MSR (Machine Settlement Receipt) - Cryptographic proof of every transaction - IAN (Inter-Agent Netting) - Compress 1,000 transactions into 12 net obligations - MBS (Machine Balance Sheet) - Real-time balance sheet per agent - C
Add this skill
npx mdskills install oerc-s/primordiaClear financial infrastructure for AI agents with useful tools but overly broad permissions
The clearing layer for machine commerce.
When AI agents transact at scale, someone has to settle. That's Kaledge.
Kaledge provides financial infrastructure for AI agents:
AI agents are economic actors. They consume compute, call APIs, transact with each other.
Without settlement infrastructure:
npm install @primordia1/sdk
import { createMSR, verifyMSR } from '@primordia1/sdk';
// Create settlement receipt
const receipt = createMSR({
from_agent: 'agent_a_pubkey',
to_agent: 'agent_b_pubkey',
amount_micros: 50_000_000, // $50
currency: 'USD',
memo: 'Compute services'
}, privateKey);
// Verify receipt
const valid = verifyMSR(receipt);
npx @primordia1/mcp-server
Add to your MCP config:
{
"mcpServers": {
"kaledge": {
"command": "npx",
"args": ["@primordia1/mcp-server"]
}
}
}
Tools available:
verify_receipt - Verify any settlement receiptgenerate_mbs - Generate agent balance sheetnet_receipts - Net multiple receiptsfrom primordia import wrap_openai
client = wrap_openai(OpenAI(), shadow=True)
# Every call now emits MSR automatically
| Operation | Fee |
|---|---|
| Netting | 5 bps on netted volume |
| Credit | 200 bps spread |
| Default Resolution | $25,000 |
Free tier: Generate receipts locally, verify signatures, shadow mode.
┌─────────────┐ ┌─────────────┐ ┌─────────────┐
│ Agent A │────▶│ MSR │────▶│ Agent B │
└─────────────┘ └─────────────┘ └─────────────┘
│
▼
┌─────────────┐
│ Kernel │ ← Signs IAN
└─────────────┘
│
▼
┌─────────────┐
│ IAN │ ← Net obligations
└─────────────┘
| Primitive | Purpose |
|---|---|
| MSR | Machine Settlement Receipt - signed proof of transaction |
| IAN | Inter-Agent Netting - compressed net obligations |
| MBS | Machine Balance Sheet - agent financials |
| CL | Credit Line - agent lending |
| DRAW/REPAY | Credit utilization tracking |
| DBP | Default/Bankruptcy Protocol |
| FC | Future Commitment - forward obligations |
| AMR/CMR | Attested Meter Receipts - consumption proofs |
| SEAL | ClosePacket - period reconciliation proof |
MIT
The machine economy needs clearing. We're building it.
Install via CLI
npx mdskills install oerc-s/primordiaKaledge is a free, open-source AI agent skill. The clearing layer for machine commerce. When AI agents transact at scale, someone has to settle. That's Kaledge. Kaledge provides financial infrastructure for AI agents: - MSR (Machine Settlement Receipt) - Cryptographic proof of every transaction - IAN (Inter-Agent Netting) - Compress 1,000 transactions into 12 net obligations - MBS (Machine Balance Sheet) - Real-time balance sheet per agent - C
Install Kaledge with a single command:
npx mdskills install oerc-s/primordiaThis downloads the skill files into your project and your AI agent picks them up automatically.
Kaledge works with Claude Code, Claude Desktop, Cursor, Vscode Copilot, Windsurf, Continue Dev, Codex, Gemini Cli, Amp, Roo Code, Goose, Opencode, Trae, Qodo, Command Code. Skills use the open SKILL.md format which is compatible with any AI coding agent that reads markdown instructions.