productivity
Teamwork CLI for Headless Automation
Use the Teamwork CLI for headless automation with headless JSON commands, schema discovery, credentials, and permission controls.
7 functions 6 read 1 write API token auth
Teamwork CLI for Headless Automation
Use KosmoKrator as a non-interactive integration runtime for local automations and wrappers.
Use headless automation when another tool needs a stable local command surface. The Teamwork CLI uses the same integration registry as the TUI, Lua runtime, and MCP gateway, but returns predictable command output for automation.
Command Shape
# Teamwork CLI for Headless Automation
kosmokrator integrations:configure teamwork --set api_token="$TEAMWORK_API_TOKEN" --enable --read allow --write ask --json
kosmo integrations:call teamwork.teamwork_create_task '{"projectId":1,"name":"example_name","description":"example_description","assigneeId":1,"dueDate":"example_dueDate","priority":"example_priority","startDate":"example_startDate"}' --json Discovery Before Execution
Agents and scripts can inspect Teamwork docs and schemas before choosing a function.
kosmo integrations:docs teamwork --json
kosmo integrations:docs teamwork.teamwork_create_task --json
kosmo integrations:schema teamwork.teamwork_create_task --json
kosmo integrations:search "Teamwork" --json
kosmo integrations:list --json Useful Teamwork CLI Functions
| Function | Type | Parameters | Description |
|---|---|---|---|
teamwork.teamwork_create_task | Write | projectId, name, description, assigneeId, dueDate, priority, startDate | Create a new task in Teamwork. |
teamwork.teamwork_get_current_user | Read | none | Get the currently authenticated Teamwork user. |
teamwork.teamwork_get_project | Read | id | Get detailed information about a Teamwork project. |
teamwork.teamwork_get_task | Read | id | Get detailed information about a Teamwork task. |
teamwork.teamwork_list_projects | Read | status, page, pageSize | List projects in Teamwork with optional filters. |
teamwork.teamwork_list_tasks | Read | projectId, page, pageSize, filter, sort | List tasks in Teamwork with optional filters. |
teamwork.teamwork_list_timers | Read | page, pageSize | List time timers for the authenticated user in Teamwork. |
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.