payba3

payba3 is an agent for coding agents from grtsnx/payba3. It costs 0 tokens per session (1,056 once invoked), scanned A, original, MIT.

An instruction guide for connecting coding agents and other tools to payba3, a server-side JavaScript or TypeScript package for using several payment and identity providers.

In plain words
What is it for?
It helps configure payba3, select providers such as Paystack or Monnify, import its main function, and handle its documented errors.
Why use it?
It tells an agent which documentation and provider-specific details to read, reducing guesswork when adding payba3 to a project.

Agent

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add agents/grtsnx/payba3/payba3
Clone the repo
git clone --depth 1 https://github.com/grtsnx/payba3

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for payba3

README.md
[![agentmods](https://agentmods.dev/badge/agents/grtsnx/payba3/payba3.svg)](https://agentmods.dev/agents/grtsnx/payba3/payba3)
Your own site
<a href="https://agentmods.dev/agents/grtsnx/payba3/payba3"><img src="https://agentmods.dev/badge/agents/grtsnx/payba3/payba3.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,056 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00000 $0.01056
Opus 5 $0.00000 $0.00528
Sonnet 5 $0.00000 $0.00211
Haiku 4.5 $0.00000 $0.00106

Measured 3d ago against content hash e69dd65d14f4, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

payba3 scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

agents/payba3.agent.md · 127 lines

How it starts

The opening of the file, as written. The whole thing — 127 lines — stays where its author put it; the contents beside it link to each section on GitHub.

payba3 Agent Integration Guide

This file is the agent-facing contract for using @grtsnx/payba3 inside IDE assistants, AI coding agents, workflow builders, and tool servers.

Discovery Order

When an agent needs to integrate payba3:

  1. Read @grtsnx/payba3/llms.txt.
  2. Read @grtsnx/payba3/agents.md.
  3. Read @grtsnx/payba3/llms-full.txt when broader context is needed.
  4. Read every provider-specific file needed for the requested channel:
    • @grtsnx/payba3/llms/paystack.txt
    • @grtsnx/payba3/llms/safehaven.txt
    • @grtsnx/payba3/llms/seerbit.txt
    • @grtsnx/payba3/llms/opay.txt
    • @grtsnx/payba3/llms/mono.txt
    • @grtsnx/payba3/llms/monnify.txt
    • @grtsnx/payba3/llms/qoreid.txt

Core Contract

  • Package: @grtsnx/payba3
  • Runtime: server-side JavaScript or TypeScript
  • Main import: createPayba3
  • Provider selector: payba3.use('<provider>')
  • Error surface: Payba3Error
  • Supported providers: paystack, safehaven, seerbit, opay, mono, monnify, qoreid
import { createPayba3 } from '@grtsnx/payba3';

const payba3 = createPayba3({
  paystack: {
    secretKey: process.env.PAYSTACK_SECRET_KEY,
  },
});

const paystack = payba3.use('paystack');

IDE Agent Instructions

When generating code:

  • Install @grtsnx/payba3 if it is missing.
  • Generate server-side code only.
  • Ask the developer for the provider they want to use.
  • Ask only for the credentials required by that provider.
  • Prefer environment variables or the host app's secret manager.
  • Use explicit createPayba3({ provider: { ...config } }) configuration when it improves clarity.
  • Keep provider-specific request validation in the host app or tool wrapper.
  • Never place provider secrets in frontend code, generated examples, comments, tests, logs, or fixtures.

Tool Wrapper Pattern

Agents should expose narrow tools that match business actions, not raw provider clients.

import { createPayba3 } from '@grtsnx/payba3';

const payba3 = createPayba3({
  paystack: {
    secretKey: process.env.PAYSTACK_SECRET_KEY,
  },
});

type InitializeCheckoutInput = {
  email: string;
  amountInKobo: number;
  reference: string;
};

export async function initializePaystackCheckout(
  input: InitializeCheckoutInput,
) {
  return payba3.use('paystack').initializeOneTimeCheckout({
    email: input.email,
    amountInKobo: input.amountInKobo,
    currency: 'NGN',
    reference: input.reference,
  });
}

Read the full file on GitHub · 127 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 127 lines · 0 tokens per session scan A e69dd65d14f4

Subscribe to this mod's changes

payba3 is an agent published in the GitHub repository grtsnx/payba3 (2 stars, last pushed 2mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,056 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.