Open source payment router

Route payments from a CLI your systems can trust.

Rute Bayar connects Indonesian payment gateways through one Go CLI and webhook daemon. It keeps provider logic modular, stores raw JSON for debugging, and gives product teams a clean path from invoice to webhook verification.

create invoice
$ rutebayar pay create --provider xendit \
  --method payment_link \
  --reference agent-run-1001 \
  --amount 25000

payment_url: https://checkout.example/...
status: pending
webhook daemon
$ rutebayar webhook serve --addr :8080
listening on /webhooks/xendit
listening on /webhooks/midtrans
forwarding enabled: orders-api
Live: Xendit Live: Midtrans Next: Doku Roadmap: Flip Business Roadmap: Duitku

Payment rail clarity

One operational line between your product and many providers.

Rute Bayar keeps your business logic away from provider-specific details. Create payments, check status, receive webhooks, replay events, and forward callbacks without scattering gateway code across every service.

CLI-first onboarding

Set provider credentials, test accounts, create payments, request refunds, and inspect status from the same command surface.

Webhook daemon

Receive provider callbacks, verify signatures where configured, persist raw payloads, and replay events for recovery.

Pass-through forwarding

Forward provider webhooks to your own service while keeping the original payload available for audit and debugging.

AI Agent billing

Let agents create invoices and verify payments without embedding gateway code.

An AI Agent can call `rutebayar` to create a dynamic invoice, store its own run reference, check payment status, and react to verified webhooks. The CLI becomes a narrow, inspectable tool boundary between automation and money movement.

Open the skill guide
agent tool call
$ rutebayar pay status --provider xendit --reference agent-run-1001
reference: agent-run-1001
provider: xendit
status: paid

$ rutebayar reconcile --provider xendit --reference agent-run-1001
local status is in sync

Install

Start with a binary, Homebrew, or source build.

The current release ships static binaries for Linux, macOS, and Windows.

quick install
$ brew tap pendig/tap
$ brew install rutebayar

$ rutebayar provider list
$ rutebayar onboard xendit --environment sandbox