finance
Splitwise CLI for Cron Jobs
Use the Splitwise CLI for cron jobs with headless JSON commands, schema discovery, credentials, and permission controls.
7 functions 6 read 1 write Bearer token auth
Splitwise CLI for Cron Jobs
Schedule repeatable integration workflows from cron while keeping credentials in KosmoKrator config.
Use the headless CLI from cron when an operation should run without an interactive agent session. 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 Cron Jobs
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
| Function | Type | Parameters | Description |
|---|---|---|---|
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
- Use
--jsonfor machine-readable output. - Keep credentials out of argv by using environment variables or stored KosmoKrator configuration.
- Configure read/write policy before unattended runs; use
--forceonly for trusted automation. - Use the MCP gateway instead when the agent needs dynamic tool discovery inside a conversation.