Loops House




HaxenMed Restock Agent
The pharmacist says what they need on Telegram and taps Pay; the supplier gets cedis in seconds. An agent that restocks a pharmacy in Ghana and pays its supplier on Celo, inside limits the owner sets and can switch off.

Agents Open for Business
Links
Team
1 member- VIOwner
Vincent Doh
Overview
When a pharmacy runs low on essentials and the reorder waits on a supplier payment, patients are turned away. HaxenMed Restock Agent closes that gap.
Built for pharmacies in Ghana. The pharmacist tells the agent what to order on Telegram, typed or as a voice note, or the agent spots low stock itself. It prices the order in cedis, asks the owner, and only after they tap Pay converts dollars to the cedi stablecoin (GHSm) on Mento and pays the supplier on Celo. No wallet screens, no exchange: the agent works from a wallet the owner controls, inside limits the chain enforces.
For the pharmacist it is one message and one tap. They say "order eight ORS sachets and five paracetamol", the agent answers "8 ORS sachets and 5 paracetamol strips from the wholesaler, GH₵35.00. Pay?", and they tap Pay. Everything below happens behind that tap.
The message is matched word by word against the pharmacy's own catalogue, with no AI model guessing items or numbers; anything unclear is asked back. Voice notes are turned into text on the owner's own computer (ffmpeg's built-in whisper), so no audio leaves it. With stock data from HaxenMed, the pharmacy system we build and run for pharmacies in Ghana, the agent also reorders on its own: it reads stock levels through a read-only restock API, works out what to reorder in whole cartons, and sends the order for one tap. After the tap, it swaps just enough USDC to Ghana cedis (GHSm) on Mento that even the worst price it allows covers the invoice, then pays the supplier in GHSm on Celo mainnet.
The pharmacy owner keeps control throughout. Before any payment, the agent sends the order to the owner on Telegram, and pays only if the owner taps Pay; no answer means no payment. The agent acts from a non-custodial Altana smart agentic wallet, holding only a session key. The owner grants that key with:
- a daily spend cap per token (USDC and GHSm)
- an allowlist of the exact calls the restock flow needs: approve USDC, Mento's Router, transfer GHSm or USDC
- an expiry
The owner can revoke it in one transaction. The agent also applies its own per-order and per-run limits before it asks for a quote.
Live on Celo mainnet as ERC-8004 agent #10181. On 2 Dec the owner also switched the agent off with one revoke transaction (https://celoscan.io/tx/0xd85a87b5a94ee50b391fb796a1d6fb99b94e03407f51a9238beec73828bed896): an approved order minutes later was refused with nothing sent. Then a new session key (6 USDC and GH₵60 a day, expires 16 Dec 2026) switched it back on (https://celoscan.io/tx/0x82b31c1c7e9a570429053f4c95ef6057d33bf5f9bbc5a59bfbe364d9e9d3cdf4).
The payment code is built like a payments backend:
- a double-entry ledger with immutable postings
- the purchase order id as the idempotency key, so no order is paid twice
- a compare-and-set state machine with an append-only audit trail
- crash recovery that checks the chain instead of guessing, and won't mistake an owner's top-up for the swap
- a reconciler that matches the ledger to the chain and flags any money it cannot explain
Pilot: a community pharmacy in Sunyani needs stock from a wholesale pharmacy in Sunyani. HaxenTech operates the agent and funds its wallet for the pilot, and approves each order on Telegram. The agent pays the wholesaler in cedis, straight to their own wallet, and the wholesaler gets the order on Telegram with the proof of payment and the delivery address. First order, 2 Dec 2026: GH₵35.00 for 8 ORS sachets and 5 paracetamol strips. Swap: https://celoscan.io/tx/0x04a3153a0ec13391bb94f4cb90ce31f9f087da25ebb79c36d936ef3651d2df6c · Payment: https://celoscan.io/tx/0xa5ad0033afb07ea97723f30495b63606865ae35ea60fc4d82c1412bbe276d616 (both carry our attribution tag).