Use the Splitwise CLI from KosmoKrator to call Splitwise tools headlessly, return JSON, inspect schemas, and automate workflows from coding agents, scripts, and CI.
Splitwise can be configured headlessly with `kosmokrator integrations:configure splitwise`.
# 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 splitwise --set access_token="$SPLITWISE_ACCESS_TOKEN" --enable --read allow --write ask --jsonkosmokrator integrations:doctor splitwise --jsonkosmokrator integrations:status --json
Credentials
Authentication type: Bearer tokenbearer_token. Configure credentials once, then use the same stored profile from
scripts, coding CLIs, Lua code mode, and the MCP gateway.
Key
Env var
Type
Required
Label
access_token
SPLITWISE_ACCESS_TOKEN
Secret secret
yes
Access Token
url
SPLITWISE_URL
URL url
no
API URL
Call Splitwise Headlessly
Use the generic call form when another coding CLI or script needs a stable universal interface.
Every function below can be called headlessly. The generic form is stable across all integrations;
the provider shortcut is shorter but specific to Splitwise.
splitwise.splitwise_list_expenses
Read read
List shared expenses from Splitwise. Optionally filter by group, friend, or date range. Returns expense details including cost, description, category, and split information.
Create a new shared expense in Splitwise. Specify the total cost, description, and users involved. The expense will be split equally unless custom owed_share amounts are provided per user.
Use these parameter tables when building CLI payloads without calling integrations:schema first.
splitwise.splitwise_list_expenses
List shared expenses from Splitwise. Optionally filter by group, friend, or date range. Returns expense details including cost, description, category, and split information.
Create a new shared expense in Splitwise. Specify the total cost, description, and users involved. The expense will be split equally unless custom owed_share amounts are provided per user.
Description of the expense (e.g., "Dinner at Italian restaurant").
users
array
yes
Array of users sharing the expense. Each user should have "user_id" (integer) and optionally "owed_share" (string, e.g., "22.75"). If owed_share is omitted, cost is split equally.
group_id
integer
no
Group ID to assign the expense to.
currency_code
string
no
Three-letter currency code (e.g., "USD", "EUR"). Defaults to the user's default currency.
date
string
no
Date of the expense in ISO 8601 format (e.g., "2025-01-15"). Defaults to today.
category_id
integer
no
Category ID for the expense (e.g., 18 for "Food", 9 for "Entertainment").
details
string
no
Additional notes or details about the expense.
splitwise.splitwise_list_groups
List all groups the current user belongs to in Splitwise. Returns group names, member information, and balance summaries.
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.