UbuntuRemit: a cross-border payments backend
A backend prototype for sending money across African borders, built on ISO 20022 payment messages, where AI agents suggest and plain code decides. Its parts are built and tested, but they don't run together yet.
- Built by
- Katlego Tlhapiso, before founding Lefika Logic
- Built
- March 2026
The problem
A payment between African countries usually passes through several banks and payment networks, and every transfer has to be screened for money laundering and sanctions. Banks' payment systems are moving to ISO 20022 messages. And using AI in that flow raises a hard question: how do you get a model's help without ever letting it approve a payment?
How it's built
- ISO 20022 messagesIt builds and reads four message types (pain.001, pacs.008, camt.053 and head.001) and validates each against the official schemas. It isn't certified by the South African Reserve Bank, and doesn't claim to be.
- Models suggest, code decidesTwo AI agents, one for compliance checks and one for choosing a payment route, make suggestions; a state machine with no AI in it decides. Checks on both sides (sanctions screening, KYC limits, validating what the agents return) fail closed, so a model can never approve a payment. So far the agents have been tested with scripted responses, not a live model.
- An audit trail nobody can editEvents are written to an append-only PostgreSQL store, fed from Kafka; the database's own permissions and triggers refuse changes and deletions.
- Payment networks behind one interfaceA fallback retries a failed payment on another network. No real network is connected yet.
Results
Each number has the date it was measured and the command that measures it again.
Unit tests, all passing
336measured on
Reproduce with: uv run pytest # at commit 47d8eb6
Integration tests against PostgreSQL and Kafka
7measured on
Reproduce with: uv run pytest -m integration --collect-only # at commit 47d8eb6
ISO 20022 message types validated against the official schemas
4measured on
Reproduce with: uv run pytest services/messaging/tests/test_{pain001,pacs008,camt053,bah}.py # at commit 47d8eb6
Have something like this in mind?
Tell us what it needs to do. We reply within one business day.