KosmoKrator

finance

Splitwise CLI for Coding Agents

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

7 functions 6 read 1 write Bearer token auth

Splitwise 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 Splitwise CLI uses the same integration registry as the TUI, Lua runtime, and MCP gateway, but returns predictable command output for automation.

Command Shape

# Splitwise CLI for Coding Agents
kosmokrator integrations:configure splitwise --set access_token="$SPLITWISE_ACCESS_TOKEN" --enable --read allow --write ask --json
kosmo integrations:call splitwise.splitwise_list_expenses '{"group_id":1,"friend_id":1,"dated_after":"example_dated_after","dated_before":"example_dated_before","limit":1,"offset":1}' --json

Discovery Before Execution

Agents and scripts can inspect Splitwise docs and schemas before choosing a function.

kosmo integrations:docs splitwise --json
kosmo integrations:docs splitwise.splitwise_list_expenses --json
kosmo integrations:schema splitwise.splitwise_list_expenses --json
kosmo integrations:search "Splitwise" --json
kosmo integrations:list --json

Useful Splitwise CLI Functions

FunctionTypeParametersDescription
splitwise.splitwise_list_expenses Read group_id, friend_id, dated_after, dated_before, limit, offset List shared expenses from Splitwise. Optionally filter by group, friend, or date range. Returns expense details including cost, description, category, and split information.
splitwise.splitwise_get_expense Read id Get detailed information about a specific expense in Splitwise, including cost, description, category, date, and how it was split among users.
splitwise.splitwise_create_expense Write cost, description, users, group_id, currency_code, date, category_id, details 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.
splitwise.splitwise_list_groups Read none List all groups the current user belongs to in Splitwise. Returns group names, member information, and balance summaries.
splitwise.splitwise_get_group Read id Get detailed information about a specific group in Splitwise, including all members and their current balances.
splitwise.splitwise_list_friends Read none List all friends on Splitwise with their current balance information. Shows how much you owe or are owed by each friend.
splitwise.splitwise_get_current_user Read none Get the authenticated Splitwise user's profile, including name, email, default currency, and account settings.

Automation Notes

Related Splitwise CLI Pages