Stripe CLI Setup Stripe can be configured headlessly with `kosmokrator integrations:configure stripe`.
# 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 --set api_key=" $STRIPE_API_KEY " --enable --read allow --write ask --json
kosmokrator integrations:doctor stripe --json
kosmokrator integrations:status --json Credentials
Authentication type: API key api_key. Configure credentials once, then use the same stored profile from
scripts, coding CLIs, Lua code mode, and the MCP gateway.
Call Stripe Headlessly Use the generic call form when another coding CLI or script needs a stable universal interface.
kosmo integrations:call stripe.stripe_create_customer '{
"name": "example_name",
"email": "example_email",
"description": "example_description",
"phone": "example_phone",
"metadata": "example_metadata"
}' --json Use the provider shortcut form for shorter human-facing commands.
kosmo integrations:stripe stripe_create_customer '{
"name": "example_name",
"email": "example_email",
"description": "example_description",
"phone": "example_phone",
"metadata": "example_metadata"
}' --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 --json
kosmo integrations:docs stripe.stripe_create_customer --json
kosmo integrations:schema stripe.stripe_create_customer --json
kosmo integrations:search "Stripe" --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.
stripe.stripe_create_customer Write write Create a new Stripe customer.
Supports name, email, description, phone, and metadata.
Returns the created customer object with ID.
name, email, description, phone, metadata kosmo integrations:call stripe.stripe_create_customer '{"name":"example_name","email":"example_email","description":"example_description","phone":"example_phone","metadata":"example_metadata"}' --json copy kosmo integrations:stripe stripe_create_customer '{"name":"example_name","email":"example_email","description":"example_description","phone":"example_phone","metadata":"example_metadata"}' --json copy
stripe.stripe_get_customer Read read Retrieve a Stripe customer by ID.
Returns full customer details including email, name, metadata, and default payment method.
id kosmo integrations:call stripe.stripe_get_customer '{"id":"example_id"}' --json copy kosmo integrations:stripe stripe_get_customer '{"id":"example_id"}' --json copy
stripe.stripe_update_customer Write write Update an existing Stripe customer.
Supports updating name, email, description, phone, and metadata.
id, name, email, description, phone, metadata kosmo integrations:call stripe.stripe_update_customer '{"id":"example_id","name":"example_name","email":"example_email","description":"example_description","phone":"example_phone","metadata":"example_metadata"}' --json copy kosmo integrations:stripe stripe_update_customer '{"id":"example_id","name":"example_name","email":"example_email","description":"example_description","phone":"example_phone","metadata":"example_metadata"}' --json copy
stripe.stripe_list_customers Read read List Stripe customers with optional filtering.
Supports filtering by email, pagination with limit and starting_after cursor.
email, limit, starting_after kosmo integrations:call stripe.stripe_list_customers '{"email":"example_email","limit":1,"starting_after":"example_starting_after"}' --json copy kosmo integrations:stripe stripe_list_customers '{"email":"example_email","limit":1,"starting_after":"example_starting_after"}' --json copy
stripe.stripe_delete_customer Write write Delete a Stripe customer by ID.
Permanently removes the customer and all associated data.
id kosmo integrations:call stripe.stripe_delete_customer '{"id":"example_id"}' --json copy kosmo integrations:stripe stripe_delete_customer '{"id":"example_id"}' --json copy
stripe.stripe_create_product Write write Create a new Stripe product.
Products are the goods or services you sell. After creating a product, create a price for it.
name, description, active, metadata kosmo integrations:call stripe.stripe_create_product '{"name":"example_name","description":"example_description","active":true,"metadata":"example_metadata"}' --json copy kosmo integrations:stripe stripe_create_product '{"name":"example_name","description":"example_description","active":true,"metadata":"example_metadata"}' --json copy
stripe.stripe_list_products Read read List Stripe products with optional filtering.
Supports filtering by active status and pagination.
active, limit, starting_after kosmo integrations:call stripe.stripe_list_products '{"active":true,"limit":1,"starting_after":"example_starting_after"}' --json copy kosmo integrations:stripe stripe_list_products '{"active":true,"limit":1,"starting_after":"example_starting_after"}' --json copy
stripe.stripe_get_product Read read Retrieve a Stripe product by ID.
Returns full product details including name, description, active status, and metadata.
id kosmo integrations:call stripe.stripe_get_product '{"id":"example_id"}' --json copy kosmo integrations:stripe stripe_get_product '{"id":"example_id"}' --json copy
stripe.stripe_create_price Write write Create a price for a Stripe product.
Amounts are in cents (e.g., $10.00 = 1000).
Supports one-time and recurring prices with configurable intervals.
product, unit_amount, currency, recurring_interval, recurring_interval_count, metadata kosmo integrations:call stripe.stripe_create_price '{"product":"example_product","unit_amount":1,"currency":"example_currency","recurring_interval":"example_recurring_interval","recurring_interval_count":1,"metadata":"example_metadata"}' --json copy kosmo integrations:stripe stripe_create_price '{"product":"example_product","unit_amount":1,"currency":"example_currency","recurring_interval":"example_recurring_interval","recurring_interval_count":1,"metadata":"example_metadata"}' --json copy
stripe.stripe_list_prices Read read List Stripe prices with optional filtering.
Supports filtering by product, active status, and pagination.
product, active, limit, starting_after kosmo integrations:call stripe.stripe_list_prices '{"product":"example_product","active":true,"limit":1,"starting_after":"example_starting_after"}' --json copy kosmo integrations:stripe stripe_list_prices '{"product":"example_product","active":true,"limit":1,"starting_after":"example_starting_after"}' --json copy
stripe.stripe_create_payment_intent Write write Create a Stripe payment intent.
Amounts are in cents (e.g., $10.00 = 1000).
Supports automatic payment methods, manual capture, and metadata.
amount, currency, customer, description, metadata, capture_method, automatic_payment_methods_enabled kosmo integrations:call stripe.stripe_create_payment_intent '{"amount":1,"currency":"example_currency","customer":"example_customer","description":"example_description","metadata":"example_metadata","capture_method":"example_capture_method","automatic_payment_methods_enabled":true}' --json copy kosmo integrations:stripe stripe_create_payment_intent '{"amount":1,"currency":"example_currency","customer":"example_customer","description":"example_description","metadata":"example_metadata","capture_method":"example_capture_method","automatic_payment_methods_enabled":true}' --json copy
stripe.stripe_get_payment_intent Read read Retrieve a Stripe payment intent by ID.
Returns full payment intent details including amount, status, and charges.
id kosmo integrations:call stripe.stripe_get_payment_intent '{"id":"example_id"}' --json copy kosmo integrations:stripe stripe_get_payment_intent '{"id":"example_id"}' --json copy
stripe.stripe_update_payment_intent Write write Update a Stripe payment intent.
Supports updating description and metadata.
id, description, metadata kosmo integrations:call stripe.stripe_update_payment_intent '{"id":"example_id","description":"example_description","metadata":"example_metadata"}' --json copy kosmo integrations:stripe stripe_update_payment_intent '{"id":"example_id","description":"example_description","metadata":"example_metadata"}' --json copy
stripe.stripe_confirm_payment_intent Write write Confirm a Stripe payment intent.
Provide a payment method and optional return URL to confirm the payment.
id, payment_method, return_url kosmo integrations:call stripe.stripe_confirm_payment_intent '{"id":"example_id","payment_method":"example_payment_method","return_url":"example_return_url"}' --json copy kosmo integrations:stripe stripe_confirm_payment_intent '{"id":"example_id","payment_method":"example_payment_method","return_url":"example_return_url"}' --json copy
stripe.stripe_cancel_payment_intent Write write Cancel a Stripe payment intent.
Can only cancel payment intents that are in "requires_payment_method", "requires_capture", or "requires_confirmation" status.
id, cancellation_reason kosmo integrations:call stripe.stripe_cancel_payment_intent '{"id":"example_id","cancellation_reason":"example_cancellation_reason"}' --json copy kosmo integrations:stripe stripe_cancel_payment_intent '{"id":"example_id","cancellation_reason":"example_cancellation_reason"}' --json copy
stripe.stripe_capture_payment_intent Write write Capture a Stripe payment intent that was created with capture_method="manual".
Optionally specify an amount_to_capture to capture less than the original amount.
Amounts are in cents.
id, amount_to_capture kosmo integrations:call stripe.stripe_capture_payment_intent '{"id":"example_id","amount_to_capture":1}' --json copy kosmo integrations:stripe stripe_capture_payment_intent '{"id":"example_id","amount_to_capture":1}' --json copy
stripe.stripe_create_invoice Write write Create a Stripe invoice for a customer.
Requires a customer ID. Supports description, subscription, metadata, and auto_advance.
customer, description, subscription, metadata, auto_advance kosmo integrations:call stripe.stripe_create_invoice '{"customer":"example_customer","description":"example_description","subscription":"example_subscription","metadata":"example_metadata","auto_advance":true}' --json copy kosmo integrations:stripe stripe_create_invoice '{"customer":"example_customer","description":"example_description","subscription":"example_subscription","metadata":"example_metadata","auto_advance":true}' --json copy
stripe.stripe_get_invoice Read read Retrieve a Stripe invoice by ID.
Returns full invoice details including line items, totals, and status.
id kosmo integrations:call stripe.stripe_get_invoice '{"id":"example_id"}' --json copy kosmo integrations:stripe stripe_get_invoice '{"id":"example_id"}' --json copy
stripe.stripe_list_invoices Read read List Stripe invoices with optional filtering.
Supports filtering by customer, status, and pagination.
customer, status, limit, starting_after kosmo integrations:call stripe.stripe_list_invoices '{"customer":"example_customer","status":"example_status","limit":1,"starting_after":"example_starting_after"}' --json copy kosmo integrations:stripe stripe_list_invoices '{"customer":"example_customer","status":"example_status","limit":1,"starting_after":"example_starting_after"}' --json copy
stripe.stripe_pay_invoice Write write Pay a Stripe invoice.
The invoice must be in "open" status and the customer must have a payment method.
id kosmo integrations:call stripe.stripe_pay_invoice '{"id":"example_id"}' --json copy kosmo integrations:stripe stripe_pay_invoice '{"id":"example_id"}' --json copy
stripe.stripe_void_invoice Write write Void a Stripe invoice.
Marks the invoice as void. The invoice must be in "draft" or "open" status.
id kosmo integrations:call stripe.stripe_void_invoice '{"id":"example_id"}' --json copy kosmo integrations:stripe stripe_void_invoice '{"id":"example_id"}' --json copy
stripe.stripe_create_subscription Write write Create a Stripe subscription for a customer.
Requires a customer ID and a price ID. Supports quantity, trial periods, and metadata.
customer, price, quantity, trial_period_days, metadata kosmo integrations:call stripe.stripe_create_subscription '{"customer":"example_customer","price":"example_price","quantity":1,"trial_period_days":1,"metadata":"example_metadata"}' --json copy kosmo integrations:stripe stripe_create_subscription '{"customer":"example_customer","price":"example_price","quantity":1,"trial_period_days":1,"metadata":"example_metadata"}' --json copy
stripe.stripe_get_subscription Read read Retrieve a Stripe subscription by ID.
Returns full subscription details including status, plan, billing cycle, and trial info.
id kosmo integrations:call stripe.stripe_get_subscription '{"id":"example_id"}' --json copy kosmo integrations:stripe stripe_get_subscription '{"id":"example_id"}' --json copy
stripe.stripe_cancel_subscription Write write Cancel a Stripe subscription by ID.
Supports proration and immediate invoicing options.
id, prorate, invoice_now kosmo integrations:call stripe.stripe_cancel_subscription '{"id":"example_id","prorate":true,"invoice_now":true}' --json copy kosmo integrations:stripe stripe_cancel_subscription '{"id":"example_id","prorate":true,"invoice_now":true}' --json copy
stripe.stripe_get_balance Read read Get the Stripe account balance.
Returns available and pending balances with amounts per currency.
none kosmo integrations:call stripe.stripe_get_balance '{}' --json copy kosmo integrations:stripe stripe_get_balance '{}' --json copy Function Schemas Use these parameter tables when building CLI payloads without calling integrations:schema first.
Operation Write write
Schema command kosmo integrations:schema stripe.stripe_create_customer --json
Operation Read read
Schema command kosmo integrations:schema stripe.stripe_get_customer --json
Operation Write write
Schema command kosmo integrations:schema stripe.stripe_update_customer --json
Operation Read read
Schema command kosmo integrations:schema stripe.stripe_list_customers --json
Operation Write write
Schema command kosmo integrations:schema stripe.stripe_delete_customer --json
Operation Write write
Schema command kosmo integrations:schema stripe.stripe_create_product --json
Operation Read read
Schema command kosmo integrations:schema stripe.stripe_list_products --json
Operation Read read
Schema command kosmo integrations:schema stripe.stripe_get_product --json
Operation Write write
Schema command kosmo integrations:schema stripe.stripe_create_price --json
Operation Read read
Schema command kosmo integrations:schema stripe.stripe_list_prices --json
Operation Write write
Schema command kosmo integrations:schema stripe.stripe_create_payment_intent --json
Operation Read read
Schema command kosmo integrations:schema stripe.stripe_get_payment_intent --json
Operation Write write
Schema command kosmo integrations:schema stripe.stripe_update_payment_intent --json
Operation Write write
Schema command kosmo integrations:schema stripe.stripe_confirm_payment_intent --json
Operation Write write
Schema command kosmo integrations:schema stripe.stripe_cancel_payment_intent --json
Operation Write write
Schema command kosmo integrations:schema stripe.stripe_capture_payment_intent --json
Operation Write write
Schema command kosmo integrations:schema stripe.stripe_create_invoice --json
Operation Read read
Schema command kosmo integrations:schema stripe.stripe_get_invoice --json
Operation Read read
Schema command kosmo integrations:schema stripe.stripe_list_invoices --json
Operation Write write
Schema command kosmo integrations:schema stripe.stripe_pay_invoice --json
Operation Write write
Schema command kosmo integrations:schema stripe.stripe_void_invoice --json
Operation Write write
Schema command kosmo integrations:schema stripe.stripe_create_subscription --json
Operation Read read
Schema command kosmo integrations:schema stripe.stripe_get_subscription --json
Operation Write write
Schema command kosmo integrations:schema stripe.stripe_cancel_subscription --json
Operation Read read
Schema command kosmo integrations:schema stripe.stripe_get_balance --json 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.