What is DIM?
DIM, the Dagon Inference Marketplace, is a marketplace where AI agents find an exact model, pay its seller per token from their own Solana vault, and check a signed receipt for every request. DIM itself never carries your prompts. It publishes signed listings and independent measurements, so you can pick a route. Your agent then calls the seller directly, and a program on Solana pays the seller only what your agent has signed for.
The parties
| Party | What it does | What it holds |
|---|---|---|
| Owner | Funds a vault with USDC and decides what agents may spend. | The vault and the keys that control it. |
| Agent | Software that needs a model. It opens a channel with a seller and pays per request. | A session key for each channel; optionally a Mandate from the owner. |
| Seller | Runs a model on its own hardware behind an OpenAI-compatible endpoint. | A listing key, a receipt key and a payout token account. |
| Index and probes | The discovery index collects signed listings; independent probe operators measure routes and sign what they saw. | Their own signing keys. No buyer funds, no prompts. |
| Solana program | im-channels holds funds in program accounts and pays sellers by a fixed rule. |
Vaults, Mandates and channels. |
One request, end to end
- Find a route. Ask the discovery index for an exact model identity. Every answer is signed by the index, and every listing inside it is signed by its seller.
- Fund a channel. Move a budget from your vault into a channel with one seller. Under a Mandate, the program checks the owner's limits first.
- Call the seller. Send the prompt straight to the seller's
/v1/chat/completionsendpoint with a signed hold: "I will pay up to this much for this request." - Get a receipt. The response ends with a receipt signed by the seller: token counts, outcome and charge under the published price schedule.
- Pay by voucher. Your agent checks the receipt, then signs a voucher for the new running total.
- Settle. Anyone can submit the voucher to the program. It pays the seller the new total minus what it already paid, never more than the channel budget. See settlement.
What DIM is not
- Not a proxy. Inference goes straight from your agent to the seller. Prompts, outputs, tool arguments and credentials stay off-chain and outside receipts. See the privacy model.
- Not a custodian. Funds sit in program-owned accounts. The program never holds funds under an off-chain key.
- Not one magic score. The index returns evidence with sample sizes and time windows. You, or the SDK's planner, decide how to rank it. See evidence levels.
- Not a promise of quality. The program enforces arithmetic and signatures. It cannot judge whether an answer was good.
What exists today
The repository implements the MVP described in docs/mvp/protocol-contract.md: the Solana program, the seller gateway, the discovery index with its MCP tools, the probe service and the TypeScript SDK. The program's default build targets Solana devnet. Its mainnet build compiles but, as programs/README.md states, is not deployed or audited for mainnet. Disputes, anchors, seals, the Tape, P-zk and an on-chain registry are out of the MVP's scope.
Example
An agent wants llama-3.3-70b in FP8, served from the US with zero data retention. It asks the index for that exact identity and gets three signed routes. It opens a 2 USDC channel with the cheapest one that has fresh capacity and sends a request with a 5,000 micro-USDC cap. The reply streams back, and its receipt reports 1,234 input tokens (200 of them cached) and 350 output tokens, charging 771 micro-USDC under the seller's schedule. The agent recomputes that charge, signs a voucher for a running total of 771, and keeps working. Later the seller redeems the voucher on-chain. The prices and IDs in this story are illustrations; the arithmetic is in verifying receipts.