UBOS Republic · sovereign · self-hosted

Constitutional infrastructure & tools for AI agents

A deterministic Constitutional Reality Check and a metered LLM vessel, sold per call in stablecoin — no accounts, no sign-up, no human in the loop. Built for autonomous agents, open to anyone.

checking the live store…

01What this is

UBOS runs small, sharp services that AI agents can call and pay for autonomously. You don't create an account — your agent simply calls an endpoint, and if it has no balance it gets back an HTTP 402 Payment Required telling it exactly where to send a few cents of USDC. It pays, the balance credits within seconds, and the call goes through. That whole handshake is the emerging x402 agent-payment standard — and here it runs on code and a wallet we own outright.

Two principles make it different:

Deterministic The Governor's verdict is computed by rules and a cited constitutional library — no language model decides the answer, so it can't be talked out of a "no." Sovereign Our own engine, our own wallet, our own corpus, self-hosted on our own machine. Nothing rented that can be switched off.

02The services

⚖️ The Governor

Constitutional Reality Check. Send an action an agent is about to take; get back a deterministic verdict — SAFE CAUTION UNSAFE — plus the principle it's grounded in, cited from a 47-book governance library.

Use it as a guardrail in an agent loop: check before you delete, deploy, spend, or expose. Bright-line rules (destructive-without-backup, disable-safety, exfiltrate-secrets) hard-fail every time.

0.005 USDC / call

product id: governor

🔥 The Hot Vessel

Metered LLM generation. POST a prompt, get a completion. A simple sovereign proxy to a language model, billed per call — no subscription, no key management, pay only for what you use.

Use it for one-off generations from inside an agent that already speaks USDC, or when you want a single metered text endpoint instead of managing provider accounts.

0.01 USDC / call (fast tier)

product id: hotvessel

More services slot in as new product modules on the same metered spine — constitutional law lookup, grounded knowledge over a private corpus, and grant/funding scans are on the roadmap.

03How payment works (the x402 loop)

  1. Call the service. Your agent POSTs to /store/serve. With no balance, it gets HTTP 402 with the price and the receiving wallet.
  2. Pay. Send USDC on Solana to that wallet, and put your api_key (any string you choose) in the transaction memo.
  3. Auto-credit. Our verifier watches the wallet and credits your key's balance within ~15 seconds. No confirmation step, no dashboard.
  4. Call again. The same request now returns 200 with the result, and your balance is debited the per-call price. Top up any time; balance never expires.

USDC mint (Solana): EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v. The memo is your account — keep it consistent to reuse a balance.

04Quickstart

Base URL: https://api.welcome-to-ubos.com/store

1 · See the catalog (free)

# list products + prices
curl https://api.welcome-to-ubos.com/store/products

2 · Call the Governor (returns 402 until funded)

curl -X POST https://api.welcome-to-ubos.com/store/serve \
  -H 'Content-Type: application/json' \
  -d '{"api_key":"my-agent-001","product":"governor",
       "payload":{"action":"delete all production backups without consent"}}'

→ While unfunded you get 402 with pay_to. After paying, the same call returns:

{"status":200,"product":"governor",
 "result":{"safety":"UNSAFE","verdict":"MISALIGNED",
   "citation":"Site Reliability Engineering (Google SRE): irreversible,
               destructive actions require backup, rollback, and consent.",
   "hard_fail":"destructive_action_without_safeguard"},
 "charged_usdc":0.005,"balance_usdc":0.045}

3 · Call the Hot Vessel

curl -X POST https://api.welcome-to-ubos.com/store/serve \
  -H 'Content-Type: application/json' \
  -d '{"api_key":"my-agent-001","product":"hotvessel",
       "payload":{"prompt":"Summarise the CAP theorem in one sentence."}}'

4 · Check your balance

curl "https://api.welcome-to-ubos.com/store/balance?key=my-agent-001"

05API reference

Method & pathDoes
GET /store/productsList products, prices, descriptions. Free.
GET /store/balance?key=…Current USDC balance for an api_key. Free.
GET /store/healthLiveness + product list. Free.
POST /store/serveRun a product. Body: {api_key, product, payload}. Returns 200 + result (debited), or 402 if the balance is short.

Verdict meanings (Governor)

safetyverdictmeaning
SAFEALIGNEDNo conflict found with the constitution.
CAUTIONWARNINGRelevant principles to weigh; proceed deliberately.
UNSAFEMISALIGNEDBright-line violation; do not proceed.

06Who it's for

🤖 AI agents

Wire /store/serve into your loop as a tool. Handle 402 by paying the quoted wallet with your key in the memo, then retry. Fully autonomous — no human, no OAuth, no account.

🛠️ Developers

Plain HTTP + JSON, no SDK required. One wallet top-up funds many calls. Use the Governor as a deterministic safety gate around risky tool-use in CrewAI / LangGraph / custom agents.

🏛️ Teams & operators

Need "is this action aligned with sound governance?" answered consistently and citably — for audits, agent oversight, or policy checks. Same engine, same citations, every time.

🔭 The curious

It's a live demonstration of the x402 agent economy running on owned infrastructure. Read the catalog, send a few cents, watch a sovereign system answer.