Global Rails is a developer-first Python SDK designed to give autonomous AI agents native financial capabilities across the African continent.
Traditional mobile money APIs (like Daraja) are built for human-in-the-loop workflows—requiring registered businesses, KRA PINs, and manual KYB. African Rails bypasses this friction. By sitting on top of Web3-to-fiat infrastructure (Kotani Pay, HoneyCoin, Swypt, Eversend), this SDK provides your LangChain or CrewAI agents with programmatic, machine-native financial execution—from on-chain token swaps to last-mile M-Pesa payouts.
- Market Data Oracle: Real-time fetching of local fiat-to-crypto exchange rates (KES/USDC, NGN/USDT).
- Native On-Chain Transactions: Generate, sign, and broadcast transactions directly to blockchains via MPC wallets.
- Autonomous Token Swaps: Programmatic DEX routing to swap tokens (e.g., USDT to USDC) on-chain based on optimal slippage.
- L402 Agentic Paywalls: Native support for the HTTP 402 protocol, allowing agents to seamlessly pay other agents for data, inference, or API access per-request.
- The Statement Problem (Last-Mile Settlement): Directly trigger a stablecoin payout to a local USSD mobile money wallet (M-Pesa, MTN Mobile Money) without requiring human intervention or corporate KYB.
Install via pip:
pip install african-rails