Skip to main content

Agentis Pay CLI — interact with Pix accounts via Bipa, with MCP support for agent workflows

Project description

agentis-pay

Install

Build and install the CLI locally with:

./scripts/install-agentis-pay.sh

Options:

  • --bin-dir to change the binary destination (default: ~/.local/bin).
  • Shell completion installation is currently not bundled in this CLI package.

Usage

Discover available commands with:

agentis-pay --help
agentis-pay pay --help

Example commands:

agentis-pay signup --email user@example.com --cpf 123.456.78901 --phone "+55 (11) 99999 0000"
agentis-pay pay --key 12345678901 --amount 12,34 --note "coffee"
agentis-pay pay --key 12345678901 --amount-cents 1234 --note "coffee"
agentis-pay keys
agentis-pay history --limit 10

MCP

Install and run the MCP server in read-only mode (default):

agentis-pay login
agentis-pay mcp install --client claude --mode readonly

The generated JSON can be pasted directly into Claude Desktop config. For local MCP clients, agentis-pay mcp serve automatically reuses the session already saved by the CLI in ~/.agentis-pay/credentials.json, including refreshable auth state and the persisted installation/device identity. The MCP command surface intentionally exposes only:

  • agentispay_signup
  • agentispay_login
  • agentispay_whoami
  • agentispay_status
  • agentispay_account
  • agentispay_balance
  • agentispay_history
  • agentispay_deposit
  • agentispay_limits
  • agentispay_pix_lookup
  • agentispay_pay (and optional alias agentispay_pix_send)

Trust-related tools are intentionally omitted from MCP for now.

Most local agents should use the saved-login flow above and avoid embedding JWTs in config files. For advanced cases, MCP still supports explicit env overrides:

AGENTIS_PAY_OUTPUT=json \
AGENTIS_PAY_JWT=<token> \
AGENTIS_PAY_AGENT_NAME=<name> \
AGENTIS_PAY_DEVICE_ID=<device-id> \
agentis-pay mcp serve --stdio --mode readonly

To allow payment execution, run MCP in write mode:

agentis-pay mcp serve --stdio --mode write

Include a request_id and optional idempotency_key for production-safe retries:

{
  "name": "agentispay_pay",
  "arguments": {
    "key": "alice@pix",
    "amount_cents": 1250,
    "request_id": "request-123e4567",
    "idempotency_key": "idem-123e4567"
  }
}

agentispay_pay returns the transfer result:

{
  "request_id": "request-123e4567",
  "status": "paid",
  "key": "alice@pix",
  "owner_name": "Alice Cooper",
  "key_type": "pix",
  "amount_cents": 1250,
  "amount_brl": "R$ 12.50",
  "note": ""
}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

agentis_pay-0.1.0-py3-none-macosx_11_0_arm64.whl (4.9 MB view details)

Uploaded Python 3macOS 11.0+ ARM64

File details

Details for the file agentis_pay-0.1.0-py3-none-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for agentis_pay-0.1.0-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5753384b27dc4c67e03e3f8264ea12237e00c17e8d23103a8e08894333eff5af
MD5 078ec02dd8037a4a40a3d635371d4d2c
BLAKE2b-256 7e0d861a51c8a36c8019a5ba329e2e18fcfdf9bd15a328b56da8174bc981162e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page