A local model that pays, on QVAC and WDK
Run an agent whose model lives on the same machine under Tether QVAC with outbound network denied, sees three slim tools and no keys, and still pays in USDT through Abazi.
What you end up with
A reference agent on one computer. Its language model is served locally by Tether QVAC and cannot open a network connection to anything but the same machine. You give it a task in plain words; it searches the Catalog, asks to buy one service, and comes back with the result and a receipt link. The payment is a direct USDT transfer on Ethereum or Tron, built on Tether's Wallet Development Kit. The copy-paste setup, with the QVAC configuration and the full agent program, is on Local model on Tether QVAC.
How the pieces sit
| Piece | Runs where | Holds |
|---|---|---|
| Local model (Qwen3 1.7B, 4-bit) | Served by QVAC on the same machine, inside an operating-system sandbox that allows only local connections | Nothing: no key, no credential, no limits |
| Agent program | The same machine | The agent's credential |
| Abazi | Abazi's servers | The mandate, the policy, the budget and the signer |
| USDT spending wallet | Abazi's signer zone, built on Tether WDK | The agent's USDT, funded by the owner and sweepable |
Steps
Start the model locally
QVAC serves the model on the same machine through an OpenAI-compatible endpoint (qvac serve --openai), with tool calling on. The model is downloaded once. The serving process runs in a sandbox that denies every connection that does not stay on the machine, so the model cannot send your task, or anything else, out.
Give the model three slim tools
The model does not see Abazi's full tool list. It sees three tools with the smallest possible inputs:
| Tool | The model fills in |
|---|---|
search_catalog | the search text |
request_purchase | a service id |
get_spending_status | nothing |
The agent program, not the model, adds the task id, the idempotency key, the wait time and the purpose, and attaches the agent credential. The model never sees any of them.
Let the model choose
Given a task such as "get tomorrow's forecast for Tbilisi", the model calls search_catalog, picks a service from the results and calls request_purchase with its id.
QVAC real: local model local-agent (QWEN3_1_7B_INST_Q4) is choosing tools
model -> search_catalog({"query": "weather forecast"})
model -> request_purchase({"service_id": "svc_..."})
{"status": "paid", "intent_id": "pi_...", "receipt_id": "rcpt_..."}
model -> get_spending_status({})
Receipt rcpt_... verify: <public verification link>Abazi decides and pays in USDT
Abazi runs the same policy as for any agent. In the reference run, the purchase is paid as a direct USDT transfer from the agent's spending wallet on Tron, or on Ethereum when that is the funded network, and confirmed on chain before the merchant releases the resource.
Check the receipt
The agent prints the receipt id and its public link. Anyone can run the four checks on it. See Verify a receipt.
Why the model gets no wallet
A wallet tool in the model's hands would let it send money itself, outside Abazi's reserve, sign and confirm sequence, and outside the receipt chain. Keeping the wallet in the signer zone means a confused or manipulated local model can, at worst, ask for a purchase the mandate then refuses.
Failure cases
| Situation | Result |
|---|---|
| QVAC is not running | The agent says so and follows a fixed, scripted plan instead of the model; nothing about payments changes. |
| The model asks for something the mandate does not allow | Abazi denies with a reason code, for example RAIL_NOT_ALLOWED or HARD_CAP_EXCEEDED. |
| The model tries to reach the internet | The sandbox refuses the connection. |
| The spending wallet runs dry | Denied with NO_FUNDED_CHAIN; the owner funds the wallet. |
Next steps
Verify a receipt
Run the four receipt checks (hash, signature, chain link and on-chain anchor) on the public page, through the API, or by hand without trusting Abazi's database.
System map
Where every part of Abazi sits, which parts stay fixed for every rail, which part swaps, and what each part holds.