Skip to main content

Introduction

kobana is the command-line tool for the APIs of Kobana's products, the Banking Gateway included. It is maintained in its own repository (kobana-cli) and the resource commands are not written by hand: at startup, it reads the OpenAPI specs embedded in the binary and builds the command tree from them. Only the +verb helpers are handwritten.

kobana <produto> <recurso> <metodo> [flags]

The CLI was designed for both people and AI agents: JSON output by default, schema introspection, --dry-run and automatic pagination.

Products​

ProductDescription
bankingBanking Gateway: charges, payments, transfers (API v1 and v2)
financeSmart Finance: accounts, entries, cash flow
billingAutomatic Billing: subscriptions, plans, invoices
inboxAutonomous Inbox: inboxes, agents, emails, webhooks

The banking product talks to the same API documented on this site, in versions v1 and v2. The version never appears in the command: /v1/bank_billets becomes kobana banking bank-billets, and /v2/charge/pix becomes kobana banking charge pix. The resources are in the catalog.

Getting started​

  1. Install. See Installation.

  2. Authenticate with kobana auth login or with a token in KOBANA_TOKEN. See Authentication.

  3. Make the first call, in the sandbox:

    kobana banking bank-billets list --env sandbox --output-format table
  4. Explore the surface. Every command accepts --help, and kobana schema shows the path, parameters and description of any endpoint without leaving the terminal.

CLI or MCP?​

The CLI is for scripts, automations and agents that run terminal commands. To connect an AI assistant (Claude, ChatGPT, an IDE) straight to the account, without a terminal, use the MCP server. Both call the same resources.

Next steps​