naira-agent-cli
2
总安装量
2
周安装量
#69049
全站排名
安装命令
npx skills add https://github.com/usebuildera/agent-skills --skill naira-agent-cli
Agent 安装分布
opencode
2
antigravity
2
github-copilot
2
codex
2
kimi-cli
2
gemini-cli
2
Skill 文档
Naira Payment Skill
This skill defines a safe, repeatable workflow for AI agents using the naira-agent CLI for transfers and bill payments.
Install and Run
Preferred (global):
npm i -g naira-agent
naira-agent --help
Prerequisites
- CLI is installed and available as
naira-agent - User has completed login flow (
naira-agent login).
Agent Rules (Required)
- Always resolve recipients before first transfer to a new account.
- Never assume bank codes; fetch with
naira-agent banks. - If any command returns an OTP-pending response, pause and request OTP from the user.
- Do not retry payment commands blindly after
pending_otp; usenaira-agent confirm. - For bulk, large, or long-running tasks, create a labeled session and pass
--session-tokenexplicitly. - Revoke task sessions when done.
- For scheduled payments, the scheduler/orchestrator triggers CLI execution at due time; this CLI does not provide a built-in cron scheduler.
Core Commands
Authentication
naira-agent loginnaira-agent logout
Read Operations
naira-agent balancenaira-agent profile(includes KYC status details in profile output)naira-agent banksnaira-agent history [-l <limit>] [-o <offset>]naira-agent bills categoriesnaira-agent bills billers -c <AIRTIME|DATA|TV|ELECTRICITY>naira-agent bills plans -c <AIRTIME|DATA|TV|ELECTRICITY> -b <billerId>
Payment Operations
- Resolve account:
naira-agent resolve -b <bankCode> -a <accountNumber> - Transfer:
naira-agent transfer -b <bankCode> -a <accountNumber> -m <amount> [-r <reason>] [-s|--session-token <token>] - Bill payment:
naira-agent bills pay -c <category> -b <billerId> [-p <planId>] -t <target> -a <amount> [-s|--session-token <token>]
Supported bill categories: AIRTIME, DATA, TV, ELECTRICITY.
If no valid session token is supplied while OTP confirmation is enabled, payment commands may return pending_otp and a reference (TX-... or BILL-...).
Account Operations
naira-agent accounts listnaira-agent beneficiary listnaira-agent beneficiary add -n <name> -a <account> -b <bankCode> [--bank-name <name>]
OTP and Confirmation
- OTP setting:
naira-agent settings otp status|enable|disable - Confirm pending transfer/bill/session request:
naira-agent confirm -r <reference> -c <otp>
Session Workflow (Duration-Based, Multi-Session)
Sessions are explicit and can exist in parallel.
- Request:
naira-agent session request [-l <label>] [-d <minutes>] - Check status:
naira-agent session status - List sessions:
naira-agent session list - Revoke one session:
naira-agent session revoke -i <sessionId> - Revoke all sessions:
naira-agent session revoke
Important:
- CLI does not auto-attach session tokens to transfer/bill operations.
- Agent must pass
--session-tokenper payment command when session-based execution is desired.
Examples
1. Single Transfer With OTP
naira-agent transfer -b 100004 -a 9066269233 -m 100 -r "Gift"- If response is pending: ask user for OTP.
naira-agent confirm -r TX-XXXX -c <otp>
2. Bulk Payments With Explicit Session
naira-agent session request -l "bulk-payouts" -d 90- Confirm:
naira-agent confirm -r SES-XXXX -c <otp> - Capture token from confirmation output or inspect
naira-agent session list. - Use token on every payment:
naira-agent transfer -b 100004 -a 9066269233 -m 1000 --session-token <token> - Revoke at end:
naira-agent session revoke -i <sessionId>
3. Bill Payment With Discovery Flow
naira-agent bills categoriesnaira-agent bills billers -c DATAnaira-agent bills plans -c DATA -b <billerId>naira-agent bills pay -c DATA -b <billerId> -p <planId> -t <phone> -a <amount>- If pending, confirm:
naira-agent confirm -r BILL-XXXX -c <otp>
4. Scheduled Payment Pattern (Agent + Scheduler)
- Scheduler stores payment instruction and due time.
- At due time, agent runs:
naira-agent transfer -b <bankCode> -a <accountNumber> -m <amount> --session-token <token> - If token is expired or OTP is required, pause and request user confirmation (
naira-agent confirmflow).