KosmoKrator

payments

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.

7 functions 7 read 0 write Bearer token auth

Stripe Connect CLI Setup

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

# 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 use the same stored profile from scripts, coding CLIs, Lua code mode, and the MCP gateway.

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

Call Stripe Connect Headlessly

Use the generic call form when another coding CLI or script needs a stable universal interface.

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

Use the provider shortcut form for shorter human-facing commands.

kosmo integrations:stripe-connect stripe_connect_list_accounts '{
  "limit": 1
}' --json

Agent Discovery Commands

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

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

All CLI Functions

Every function below can be called headlessly. The generic form is stable across all integrations; the provider shortcut is shorter but specific to Stripe Connect.

stripe-connect.stripe_connect_list_accounts

Read read

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

Parameters
limit

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

stripe-connect.stripe_connect_get_account

Read read

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

Parameters
id

Generic CLI call

kosmo integrations:call stripe-connect.stripe_connect_get_account '{"id":"example_id"}' --json

Provider shortcut

kosmo integrations:stripe-connect stripe_connect_get_account '{"id":"example_id"}' --json

stripe-connect.stripe_connect_list_payouts

Read read

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

Parameters
limit, status, arrival_date

Generic CLI call

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

Provider 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

Read read

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

Parameters
id

Generic CLI call

kosmo integrations:call stripe-connect.stripe_connect_get_payout '{"id":"example_id"}' --json

Provider shortcut

kosmo integrations:stripe-connect stripe_connect_get_payout '{"id":"example_id"}' --json

stripe-connect.stripe_connect_list_balances

Read read

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

Parameters
limit

Generic CLI call

kosmo integrations:call stripe-connect.stripe_connect_list_balances '{"limit":1}' --json

Provider shortcut

kosmo integrations:stripe-connect stripe_connect_list_balances '{"limit":1}' --json

stripe-connect.stripe_connect_list_capabilities

Read read

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

Parameters
account

Generic CLI call

kosmo integrations:call stripe-connect.stripe_connect_list_capabilities '{"account":"example_account"}' --json

Provider shortcut

kosmo integrations:stripe-connect stripe_connect_list_capabilities '{"account":"example_account"}' --json

stripe-connect.stripe_connect_get_current_user

Read read

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

Parameters
none

Generic CLI call

kosmo integrations:call stripe-connect.stripe_connect_get_current_user '{}' --json

Provider 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

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

Operation
Read read
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

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

Operation
Read read
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

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

Operation
Read read
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

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

Operation
Read read
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

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

Operation
Read read
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

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

Operation
Read read
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

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

Operation
Read read
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.