KosmoKrator

productivity

Stripe CLI for Coding Agents

Use the Stripe CLI for coding agents with headless JSON commands, schema discovery, credentials, and permission controls.

25 functions 10 read 15 write API key auth

Stripe CLI for Coding Agents

Let coding agents discover schemas and execute integration functions through CLI commands or MCP.

Use this pattern when another coding agent needs exact commands and schema discovery. The Stripe CLI uses the same integration registry as the TUI, Lua runtime, and MCP gateway, but returns predictable command output for automation.

Command Shape

# Stripe CLI for Coding Agents
kosmokrator integrations:configure stripe --set api_key="$STRIPE_API_KEY" --enable --read allow --write ask --json
kosmo integrations:call stripe.stripe_create_customer '{"name":"example_name","email":"example_email","description":"example_description","phone":"example_phone","metadata":"example_metadata"}' --json

Discovery Before Execution

Agents and scripts can inspect Stripe docs and schemas 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

Useful Stripe CLI Functions

FunctionTypeParametersDescription
stripe.stripe_create_customer Write name, email, description, phone, metadata Create a new Stripe customer. Supports name, email, description, phone, and metadata. Returns the created customer object with ID.
stripe.stripe_get_customer Read id Retrieve a Stripe customer by ID. Returns full customer details including email, name, metadata, and default payment method.
stripe.stripe_update_customer Write id, name, email, description, phone, metadata Update an existing Stripe customer. Supports updating name, email, description, phone, and metadata.
stripe.stripe_list_customers Read email, limit, starting_after List Stripe customers with optional filtering. Supports filtering by email, pagination with limit and starting_after cursor.
stripe.stripe_delete_customer Write id Delete a Stripe customer by ID. Permanently removes the customer and all associated data.
stripe.stripe_create_product Write name, description, active, metadata Create a new Stripe product. Products are the goods or services you sell. After creating a product, create a price for it.
stripe.stripe_list_products Read active, limit, starting_after List Stripe products with optional filtering. Supports filtering by active status and pagination.
stripe.stripe_get_product Read id Retrieve a Stripe product by ID. Returns full product details including name, description, active status, and metadata.
stripe.stripe_create_price Write product, unit_amount, currency, recurring_interval, recurring_interval_count, metadata 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.
stripe.stripe_list_prices Read product, active, limit, starting_after List Stripe prices with optional filtering. Supports filtering by product, active status, and pagination.
stripe.stripe_create_payment_intent Write amount, currency, customer, description, metadata, capture_method, automatic_payment_methods_enabled Create a Stripe payment intent. Amounts are in cents (e.g., $10.00 = 1000). Supports automatic payment methods, manual capture, and metadata.
stripe.stripe_get_payment_intent Read id Retrieve a Stripe payment intent by ID. Returns full payment intent details including amount, status, and charges.
stripe.stripe_update_payment_intent Write id, description, metadata Update a Stripe payment intent. Supports updating description and metadata.
stripe.stripe_confirm_payment_intent Write id, payment_method, return_url Confirm a Stripe payment intent. Provide a payment method and optional return URL to confirm the payment.
stripe.stripe_cancel_payment_intent Write id, cancellation_reason Cancel a Stripe payment intent. Can only cancel payment intents that are in "requires_payment_method", "requires_capture", or "requires_confirmation" status.
stripe.stripe_capture_payment_intent Write id, amount_to_capture 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.
stripe.stripe_create_invoice Write customer, description, subscription, metadata, auto_advance Create a Stripe invoice for a customer. Requires a customer ID. Supports description, subscription, metadata, and auto_advance.
stripe.stripe_get_invoice Read id Retrieve a Stripe invoice by ID. Returns full invoice details including line items, totals, and status.
stripe.stripe_list_invoices Read customer, status, limit, starting_after List Stripe invoices with optional filtering. Supports filtering by customer, status, and pagination.
stripe.stripe_pay_invoice Write id Pay a Stripe invoice. The invoice must be in "open" status and the customer must have a payment method.
stripe.stripe_void_invoice Write id Void a Stripe invoice. Marks the invoice as void. The invoice must be in "draft" or "open" status.
stripe.stripe_create_subscription Write customer, price, quantity, trial_period_days, metadata Create a Stripe subscription for a customer. Requires a customer ID and a price ID. Supports quantity, trial periods, and metadata.
stripe.stripe_get_subscription Read id Retrieve a Stripe subscription by ID. Returns full subscription details including status, plan, billing cycle, and trial info.
stripe.stripe_cancel_subscription Write id, prorate, invoice_now Cancel a Stripe subscription by ID. Supports proration and immediate invoicing options.
stripe.stripe_get_balance Read none Get the Stripe account balance. Returns available and pending balances with amounts per currency.

Automation Notes

Related Stripe CLI Pages