KosmoKrator

data

Stripe Connect CLI for AI Agents

Use the Stripe Connect CLI from KosmoKrator to call Stripe Connect tools headlessly, return JSON, inspect schemas, and automate workflows from coding agents, scripts, and CI.

Stripe Connect CLI Setup

Stripe Connect can be configured headlessly with `kosmokrator integrations:configure stripe-connect`.

Install, configure, and verify
# Install KosmoKrator first if it is not available on PATH.
curl -fsSL https://raw.githubusercontent.com/OpenCompanyApp/kosmokrator/main/install.sh | bash

# Configure and verify this integration.
kosmokrator integrations:configure stripe-connect --set access_token="$STRIPE_CONNECT_ACCESS_TOKEN" --enable --read allow --write ask --json
kosmokrator integrations:doctor stripe-connect --json
kosmokrator integrations:status --json

Credentials

Authentication type: Bearer token bearer_token. Configure credentials once, then reuse the same stored profile from scripts, coding CLIs, Lua, and MCP.

KeyEnv varTypeRequiredLabel
access_token STRIPE_CONNECT_ACCESS_TOKEN Secret secret yes Access Token
base_url STRIPE_CONNECT_BASE_URL URL url no Base URL

Command Patterns

The generic command is stable across every integration. The provider shortcut is shorter for humans.

Generic CLI call
kosmo integrations:call stripe-connect.stripe_connect_list_accounts '{"limit":1}' --json
Provider shortcut
kosmo integrations:stripe-connect stripe_connect_list_accounts '{"limit":1}' --json

Discovery

These commands return structured output for coding agents that need to inspect capabilities before choosing a function.

Discovery commands
kosmo integrations:docs stripe-connect --json
kosmo integrations:docs stripe-connect.stripe_connect_list_accounts --json
kosmo integrations:schema stripe-connect.stripe_connect_list_accounts --json
kosmo integrations:search "Stripe Connect" --json
kosmo integrations:list --json

Automation Contexts

The same configured command surface works in these environments. The command does not change unless the host wrapper, credentials, or permissions change.

CLI Functions

Every function below can be called headlessly. Commands are highlighted, copyable, and scroll horizontally when payloads are long.

stripe-connect.stripe_connect_list_accounts

List Stripe Connect accounts. Returns a paginated list of connected accounts with ID, business type, display name, and email.

Read read
Parameters
limit
Generic call
kosmo integrations:call stripe-connect.stripe_connect_list_accounts '{"limit":1}' --json
Shortcut
kosmo integrations:stripe-connect stripe_connect_list_accounts '{"limit":1}' --json

stripe-connect.stripe_connect_get_account

Retrieve a Stripe Connect account by ID. Returns full account details including business profile, capabilities, and metadata.

Read read
Parameters
id
Generic call
kosmo integrations:call stripe-connect.stripe_connect_get_account '{"id":"example_id"}' --json
Shortcut
kosmo integrations:stripe-connect stripe_connect_get_account '{"id":"example_id"}' --json

stripe-connect.stripe_connect_list_payouts

List Stripe Connect payouts with optional filtering. Supports filtering by status (paid, pending, in_transit, canceled, failed) and arrival date, and pagination with limit.

Read read
Parameters
limit, status, arrival_date
Generic call
kosmo integrations:call stripe-connect.stripe_connect_list_payouts '{"limit":1,"status":"example_status","arrival_date":"example_arrival_date"}' --json
Shortcut
kosmo integrations:stripe-connect stripe_connect_list_payouts '{"limit":1,"status":"example_status","arrival_date":"example_arrival_date"}' --json

stripe-connect.stripe_connect_get_payout

Retrieve a Stripe Connect payout by ID. Returns full payout details including amount, status, arrival date, and destination.

Read read
Parameters
id
Generic call
kosmo integrations:call stripe-connect.stripe_connect_get_payout '{"id":"example_id"}' --json
Shortcut
kosmo integrations:stripe-connect stripe_connect_get_payout '{"id":"example_id"}' --json

stripe-connect.stripe_connect_list_balances

List Stripe Connect balance transactions. Returns a paginated list of balance transactions with type, amount, currency, and description.

Read read
Parameters
limit
Generic call
kosmo integrations:call stripe-connect.stripe_connect_list_balances '{"limit":1}' --json
Shortcut
kosmo integrations:stripe-connect stripe_connect_list_balances '{"limit":1}' --json

stripe-connect.stripe_connect_list_capabilities

List Stripe Connect account capabilities. Returns capabilities for a specified connected account, including activation status (active, inactive, pending).

Read read
Parameters
account
Generic call
kosmo integrations:call stripe-connect.stripe_connect_list_capabilities '{"account":"example_account"}' --json
Shortcut
kosmo integrations:stripe-connect stripe_connect_list_capabilities '{"account":"example_account"}' --json

stripe-connect.stripe_connect_get_current_user

Get the currently authenticated Stripe Connect user. Returns user profile information including ID, name, and email.

Read read
Parameters
none
Generic call
kosmo integrations:call stripe-connect.stripe_connect_get_current_user '{}' --json
Shortcut
kosmo integrations:stripe-connect stripe_connect_get_current_user '{}' --json

Function Schemas

Use these parameter tables when building CLI payloads without calling integrations:schema first.

stripe-connect.stripe_connect_list_accounts 1 parameters
Schema command
kosmo integrations:schema stripe-connect.stripe_connect_list_accounts --json
ParameterTypeRequiredDescription
limit integer no Number of accounts to return (1–100, default 10).
stripe-connect.stripe_connect_get_account 1 parameters
Schema command
kosmo integrations:schema stripe-connect.stripe_connect_get_account --json
ParameterTypeRequiredDescription
id string yes Stripe Connect account ID (e.g., "acct_...").
stripe-connect.stripe_connect_list_payouts 3 parameters
Schema command
kosmo integrations:schema stripe-connect.stripe_connect_list_payouts --json
ParameterTypeRequiredDescription
limit integer no Number of payouts to return (1–100, default 10).
status string no Filter by payout status: paid, pending, in_transit, canceled, or failed.
arrival_date string no Filter by arrival date. A Unix timestamp (e.g., 1712304000), or a hash with "gt", "gte", "lt", "lte" keys.
stripe-connect.stripe_connect_get_payout 1 parameters
Schema command
kosmo integrations:schema stripe-connect.stripe_connect_get_payout --json
ParameterTypeRequiredDescription
id string yes Stripe payout ID (e.g., "po_...").
stripe-connect.stripe_connect_list_balances 1 parameters
Schema command
kosmo integrations:schema stripe-connect.stripe_connect_list_balances --json
ParameterTypeRequiredDescription
limit integer no Number of balance transactions to return (1–100, default 10).
stripe-connect.stripe_connect_list_capabilities 1 parameters
Schema command
kosmo integrations:schema stripe-connect.stripe_connect_list_capabilities --json
ParameterTypeRequiredDescription
account string yes Stripe Connect account ID (e.g., "acct_...").
stripe-connect.stripe_connect_get_current_user 0 parameters
Schema command
kosmo integrations:schema stripe-connect.stripe_connect_get_current_user --json
ParameterTypeRequiredDescription
No parameters.

Permissions

Headless calls still follow the integration read/write permission policy. Configure read/write defaults with integrations:configure. Add --force only for trusted automation that should bypass that policy.