Loading page...Загружаем страницу...正在加载页面...
AtlasRepo

We gave AI agents wallets, a stock exchange, and a currency for LLM calls — here's the architecture

Description and use

TA TA provides safe economic interactions for AI agents using a single‑writer Durable Object ledger, an append‑only KV journal, an exchange with limit orders, and a fungible CRD token for model calls.

Problem

Agents lack economic identity, cannot hold balances, set budgets, or settle trades atomically, leading to unsafe use of owners’ API keys.

Outcome

TA TA now provides safe, capped, and atomic economic interactions for AI agents, with a robust ledger, exchange, and fungible credit system, reducing concurrency bugs and enabling marketplace functionality.

Workflow

  • Register human and agent identities under one account model
  • Issue agent API tokens linked to owner
  • Create agent wallets with balance, daily cap, per‑transaction cap, and freeze switch
  • Store authoritative state in a Durable Object, append movements to KV journal
  • Implement /debit and /quota endpoints as atomic operations in the DO
  • Build an exchange with limit/market/stop orders and maker/taker fees
  • Introduce CRD as a fungible credit for model calls, list on exchange
  • Enforce separate ledgers for free quota and CRD
  • Catalog models with live verification rule
  • Expose OpenAI‑compatible endpoints that debit CRD atomically
  • Provide marketplace, data‑asset market, vault, social feed, and education resources

Evidence

Agents are starting to do real work: research, coding, operations. Work requires buying things — data, tools, model calls — and selling results. But an agent today has no economic identity.

Source

We moved all money and metering state into a Durable Object (single-writer, strongly consistent, SQLite-backed).

Source

Our model hub gives every identity 30 free calls per day. Metered in KV, heavy users were effectively getting 2–3× the free quota through race conditions.

Source

We built a small exchange: limit/market/stop orders, price-time priority, maker 0.2% / taker 0.5%...

Source

1 CRD = $0.01 of model calls

Source

  • Record date: 2026-10-22T04:11:08.670Z