other
Strava CLI for Cron Jobs
Use the Strava CLI for cron jobs with headless JSON commands, schema discovery, credentials, and permission controls.
6 functions 5 read 1 write Bearer token auth
Strava 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 Strava CLI uses the same integration registry as the TUI, Lua runtime, and MCP gateway, but returns predictable command output for automation.
Command Shape
# Strava CLI for Cron Jobs
kosmokrator integrations:configure strava --set access_token="$STRAVA_ACCESS_TOKEN" --enable --read allow --write ask --json
kosmo integrations:call strava.strava_create_activity '{"name":"example_name","type":"example_type","start_date_local":"example_start_date_local","elapsed_time":1,"description":"example_description","distance":1,"trainer":1,"commute":1}' --json Discovery Before Execution
Agents and scripts can inspect Strava docs and schemas before choosing a function.
kosmo integrations:docs strava --json
kosmo integrations:docs strava.strava_create_activity --json
kosmo integrations:schema strava.strava_create_activity --json
kosmo integrations:search "Strava" --json
kosmo integrations:list --json Useful Strava CLI Functions
| Function | Type | Parameters | Description |
|---|---|---|---|
strava.strava_create_activity | Write | name, type, start_date_local, elapsed_time, description, distance, trainer, commute | Create a manual activity on Strava. Requires a name, activity type, start date, and elapsed time in seconds. |
strava.strava_get_activity | Read | activity_id | Get detailed information about a specific Strava activity, including distance, pace, elevation, and splits. |
strava.strava_get_athlete | Read | none | Get the authenticated athlete's Strava profile — name, location, follower/following counts, and stats. |
strava.strava_get_current_user | Read | none | Get the current authenticated user's Strava profile. This is an alias for strava_get_athlete — returns name, location, follower/following counts, and stats. |
strava.strava_list_activities | Read | page, per_page, before, after | List recent activities for the authenticated Strava athlete. Supports pagination and date filtering with before/after Unix timestamps. |
strava.strava_list_clubs | Read | page, per_page | List clubs the authenticated Strava athlete belongs to. Returns club names, member counts, and sport types. |
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.