← 返回 Skills 市场
byungkyu

Clockify

作者 byungkyu · GitHub ↗ · v1.0.0
cross-platform ✓ 安全检测通过
672
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install clockify
功能描述
Integrate with Clockify API to track time, and manage projects, clients, tasks, tags, and workspaces using OAuth authentication.
使用说明 (SKILL.md)

Clockify

Access the Clockify API with managed OAuth authentication. Track time, manage projects, clients, tasks, tags, and workspaces.

Quick Start

# Get current user
python \x3C\x3C'EOF'
import urllib.request, os, json
req = urllib.request.Request('https://gateway.maton.ai/clockify/api/v1/user')
req.add_header('Authorization', f'Bearer {os.environ["MATON_API_KEY"]}')
print(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))
EOF

Base URL

https://gateway.maton.ai/clockify/{native-api-path}

Replace {native-api-path} with the actual Clockify API endpoint path. The gateway proxies requests to api.clockify.me and automatically injects your credentials.

Authentication

All requests require the Maton API key in the Authorization header:

Authorization: Bearer $MATON_API_KEY

Environment Variable: Set your API key as MATON_API_KEY:

export MATON_API_KEY="YOUR_API_KEY"

Getting Your API Key

  1. Sign in or create an account at maton.ai
  2. Go to maton.ai/settings
  3. Copy your API key

Connection Management

Manage your Clockify OAuth connections at https://ctrl.maton.ai.

List Connections

python \x3C\x3C'EOF'
import urllib.request, os, json
req = urllib.request.Request('https://ctrl.maton.ai/connections?app=clockify&status=ACTIVE')
req.add_header('Authorization', f'Bearer {os.environ["MATON_API_KEY"]}')
print(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))
EOF

Create Connection

python \x3C\x3C'EOF'
import urllib.request, os, json
data = json.dumps({'app': 'clockify'}).encode()
req = urllib.request.Request('https://ctrl.maton.ai/connections', data=data, method='POST')
req.add_header('Authorization', f'Bearer {os.environ["MATON_API_KEY"]}')
req.add_header('Content-Type', 'application/json')
print(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))
EOF

Get Connection

python \x3C\x3C'EOF'
import urllib.request, os, json
req = urllib.request.Request('https://ctrl.maton.ai/connections/{connection_id}')
req.add_header('Authorization', f'Bearer {os.environ["MATON_API_KEY"]}')
print(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))
EOF

Response:

{
  "connection": {
    "connection_id": "13fe7b78-42ba-4b43-9631-69a4bf7091ec",
    "status": "ACTIVE",
    "creation_time": "2026-02-13T09:18:02.529448Z",
    "last_updated_time": "2026-02-13T09:18:09.334540Z",
    "url": "https://connect.maton.ai/?session_token=...",
    "app": "clockify",
    "metadata": {}
  }
}

Open the returned url in a browser to complete OAuth authorization.

Delete Connection

python \x3C\x3C'EOF'
import urllib.request, os, json
req = urllib.request.Request('https://ctrl.maton.ai/connections/{connection_id}', method='DELETE')
req.add_header('Authorization', f'Bearer {os.environ["MATON_API_KEY"]}')
print(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))
EOF

Specifying Connection

If you have multiple Clockify connections, specify which one to use with the Maton-Connection header:

python \x3C\x3C'EOF'
import urllib.request, os, json
req = urllib.request.Request('https://gateway.maton.ai/clockify/api/v1/user')
req.add_header('Authorization', f'Bearer {os.environ["MATON_API_KEY"]}')
req.add_header('Maton-Connection', '13fe7b78-42ba-4b43-9631-69a4bf7091ec')
print(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))
EOF

If omitted, the gateway uses the default (oldest) active connection.

API Reference

User Operations

Get Current User

GET /clockify/api/v1/user

Response:

{
  "id": "698eeb9f5cd3a921db12069f",
  "email": "[email protected]",
  "name": "John Doe",
  "activeWorkspace": "698eeb9e5cd3a921db120693",
  "defaultWorkspace": "698eeb9e5cd3a921db120693",
  "status": "ACTIVE"
}

Workspace Operations

List Workspaces

GET /clockify/api/v1/workspaces

Get Workspace

GET /clockify/api/v1/workspaces/{workspaceId}

Create Workspace

POST /clockify/api/v1/workspaces
Content-Type: application/json

{
  "name": "My Workspace"
}

List Workspace Users

GET /clockify/api/v1/workspaces/{workspaceId}/users

Project Operations

List Projects

GET /clockify/api/v1/workspaces/{workspaceId}/projects

Get Project

GET /clockify/api/v1/workspaces/{workspaceId}/projects/{projectId}

Create Project

POST /clockify/api/v1/workspaces/{workspaceId}/projects
Content-Type: application/json

{
  "name": "My Project",
  "isPublic": true,
  "clientId": "optional-client-id"
}

Response:

{
  "id": "698f7cba4f748f6209ea8995",
  "name": "My Project",
  "clientId": "",
  "workspaceId": "698eeb9e5cd3a921db120693",
  "billable": true,
  "color": "#1976D2",
  "archived": false,
  "public": true
}

Update Project

PUT /clockify/api/v1/workspaces/{workspaceId}/projects/{projectId}
Content-Type: application/json

{
  "name": "Updated Project Name",
  "archived": true
}

Delete Project

DELETE /clockify/api/v1/workspaces/{workspaceId}/projects/{projectId}

Note: You cannot delete active projects. Set archived: true first.

Client Operations

List Clients

GET /clockify/api/v1/workspaces/{workspaceId}/clients

Get Client

GET /clockify/api/v1/workspaces/{workspaceId}/clients/{clientId}

Create Client

POST /clockify/api/v1/workspaces/{workspaceId}/clients
Content-Type: application/json

{
  "name": "Acme Corp",
  "address": "123 Main St",
  "note": "Important client"
}

Response:

{
  "id": "698f7cba0705b7d880830262",
  "name": "Acme Corp",
  "workspaceId": "698eeb9e5cd3a921db120693",
  "archived": false,
  "address": "123 Main St",
  "note": "Important client"
}

Update Client

PUT /clockify/api/v1/workspaces/{workspaceId}/clients/{clientId}
Content-Type: application/json

{
  "name": "Acme Corporation"
}

Delete Client

DELETE /clockify/api/v1/workspaces/{workspaceId}/clients/{clientId}

Tag Operations

List Tags

GET /clockify/api/v1/workspaces/{workspaceId}/tags

Get Tag

GET /clockify/api/v1/workspaces/{workspaceId}/tags/{tagId}

Create Tag

POST /clockify/api/v1/workspaces/{workspaceId}/tags
Content-Type: application/json

{
  "name": "urgent"
}

Response:

{
  "id": "698f7cbbaa9e9f33e5fc0126",
  "name": "urgent",
  "workspaceId": "698eeb9e5cd3a921db120693",
  "archived": false
}

Update Tag

PUT /clockify/api/v1/workspaces/{workspaceId}/tags/{tagId}
Content-Type: application/json

{
  "name": "high-priority"
}

Delete Tag

DELETE /clockify/api/v1/workspaces/{workspaceId}/tags/{tagId}

Task Operations

List Tasks on Project

GET /clockify/api/v1/workspaces/{workspaceId}/projects/{projectId}/tasks

Get Task

GET /clockify/api/v1/workspaces/{workspaceId}/projects/{projectId}/tasks/{taskId}

Create Task

POST /clockify/api/v1/workspaces/{workspaceId}/projects/{projectId}/tasks
Content-Type: application/json

{
  "name": "Implement feature",
  "assigneeIds": ["user-id-1"],
  "estimate": "PT2H",
  "billable": true
}

Response:

{
  "id": "698f7cc4aa9e9f33e5fc017b",
  "name": "Implement feature",
  "projectId": "698f7cba4f748f6209ea8995",
  "assigneeIds": [],
  "estimate": "PT0S",
  "status": "ACTIVE",
  "billable": true
}

Update Task

PUT /clockify/api/v1/workspaces/{workspaceId}/projects/{projectId}/tasks/{taskId}
Content-Type: application/json

{
  "name": "Updated task name",
  "status": "DONE"
}

Delete Task

DELETE /clockify/api/v1/workspaces/{workspaceId}/projects/{projectId}/tasks/{taskId}

Note: You cannot delete active tasks. Set status: "DONE" first.

Time Entry Operations

Get User's Time Entries

GET /clockify/api/v1/workspaces/{workspaceId}/user/{userId}/time-entries

Response:

[
  {
    "id": "698f7cc4aa9e9f33e5fc0180",
    "description": "Working on project",
    "userId": "698eeb9f5cd3a921db12069f",
    "billable": true,
    "projectId": "698f7cba4f748f6209ea8995",
    "taskId": null,
    "workspaceId": "698eeb9e5cd3a921db120693",
    "timeInterval": {
      "start": "2026-02-13T18:34:28Z",
      "end": "2026-02-13T19:34:28Z",
      "duration": "PT1H"
    }
  }
]

Create Time Entry

POST /clockify/api/v1/workspaces/{workspaceId}/time-entries
Content-Type: application/json

{
  "start": "2026-02-13T09:00:00Z",
  "end": "2026-02-13T10:00:00Z",
  "description": "Team meeting",
  "projectId": "project-id",
  "taskId": "task-id",
  "tagIds": ["tag-id-1", "tag-id-2"],
  "billable": true
}

Create Time Entry for Another User

POST /clockify/api/v1/workspaces/{workspaceId}/user/{userId}/time-entries
Content-Type: application/json

{
  "start": "2026-02-13T09:00:00Z",
  "end": "2026-02-13T10:00:00Z",
  "description": "Team meeting"
}

Get Time Entry

GET /clockify/api/v1/workspaces/{workspaceId}/time-entries/{timeEntryId}

Update Time Entry

PUT /clockify/api/v1/workspaces/{workspaceId}/time-entries/{timeEntryId}
Content-Type: application/json

{
  "start": "2026-02-13T09:00:00Z",
  "end": "2026-02-13T11:00:00Z",
  "description": "Extended meeting"
}

Delete Time Entry

DELETE /clockify/api/v1/workspaces/{workspaceId}/time-entries/{timeEntryId}

Stop Running Timer

PATCH /clockify/api/v1/workspaces/{workspaceId}/user/{userId}/time-entries
Content-Type: application/json

{
  "end": "2026-02-13T17:00:00Z"
}

Get In-Progress Time Entries

GET /clockify/api/v1/workspaces/{workspaceId}/time-entries

Pagination

Clockify uses page-based pagination:

GET /clockify/api/v1/workspaces/{workspaceId}/projects?page=1&page-size=50

Query Parameters:

  • page - Page number (1-indexed, default: 1)
  • page-size - Items per page (default varies by endpoint)

Response includes a Last-Page header indicating if there are more pages.

Code Examples

JavaScript

const response = await fetch(
  'https://gateway.maton.ai/clockify/api/v1/workspaces',
  {
    headers: {
      'Authorization': `Bearer ${process.env.MATON_API_KEY}`
    }
  }
);
const workspaces = await response.json();

Python

import os
import requests

response = requests.get(
    'https://gateway.maton.ai/clockify/api/v1/workspaces',
    headers={'Authorization': f'Bearer {os.environ["MATON_API_KEY"]}'}
)
workspaces = response.json()

Create Time Entry (Python)

import os
import requests
from datetime import datetime, timedelta, timezone

workspace_id = "your-workspace-id"
start_time = (datetime.now(timezone.utc) - timedelta(hours=1)).isoformat().replace('+00:00', 'Z')
end_time = datetime.now(timezone.utc).isoformat().replace('+00:00', 'Z')

response = requests.post(
    f'https://gateway.maton.ai/clockify/api/v1/workspaces/{workspace_id}/time-entries',
    headers={
        'Authorization': f'Bearer {os.environ["MATON_API_KEY"]}',
        'Content-Type': 'application/json'
    },
    json={
        'start': start_time,
        'end': end_time,
        'description': 'Working on feature'
    }
)

Notes

  • All IDs are string identifiers
  • Timestamps must be in ISO 8601 format with UTC timezone (e.g., 2026-02-13T09:00:00Z)
  • Duration format uses ISO 8601 duration (e.g., PT1H for 1 hour, PT30M for 30 minutes)
  • Cannot delete active projects or tasks - must archive them first
  • Rate limit: 50 requests per second per workspace
  • IMPORTANT: When using curl commands, use curl -g when URLs contain brackets to disable glob parsing
  • IMPORTANT: When piping curl output to jq or other commands, environment variables like $MATON_API_KEY may not expand correctly in some shell environments

Error Handling

Status Meaning
400 Missing Clockify connection or invalid request
401 Invalid or missing Maton API key
403 Insufficient permissions
404 Resource not found
429 Rate limited (50 req/sec per workspace)
4xx/5xx Passthrough error from Clockify API

Troubleshooting: API Key Issues

  1. Check that the MATON_API_KEY environment variable is set:
echo $MATON_API_KEY
  1. Verify the API key is valid by listing connections:
python \x3C\x3C'EOF'
import urllib.request, os, json
req = urllib.request.Request('https://ctrl.maton.ai/connections')
req.add_header('Authorization', f'Bearer {os.environ["MATON_API_KEY"]}')
print(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))
EOF

Troubleshooting: Invalid App Name

  1. Ensure your URL path starts with clockify. For example:
  • Correct: https://gateway.maton.ai/clockify/api/v1/user
  • Incorrect: https://gateway.maton.ai/api/v1/user

Resources

安全使用建议
This skill routes all Clockify API calls and OAuth through Maton services (gateway.maton.ai, ctrl.maton.ai). Before installing: verify you trust maton.ai (review their privacy/security docs), create and use a scoped/dedicated MATON_API_KEY rather than a high-privilege or reusable secret, confirm what access the Maton key grants to your Clockify data, and monitor/rotate the key if you enable the skill. Because it’s instruction-only there’s no local install risk, but the data flow to Maton is the primary privacy/security consideration.
功能分析
Type: OpenClaw Skill Name: clockify Version: 1.0.0 The OpenClaw AgentSkills bundle for Clockify is benign. It provides a legitimate integration with the Clockify API via a Maton.ai gateway, requiring a `MATON_API_KEY` for authentication. All code examples in `SKILL.md` demonstrate standard HTTP requests to `maton.ai` domains using this API key, consistent with the skill's stated purpose. There is no evidence of data exfiltration to unauthorized endpoints, malicious execution, persistence mechanisms, obfuscation, or prompt injection attempts designed to subvert the agent's behavior or steal unrelated sensitive data.
能力评估
Purpose & Capability
The name/description (Clockify integration) aligns with the runtime instructions: all examples call Maton-managed endpoints (gateway.maton.ai, ctrl.maton.ai) and require a single MATON_API_KEY. Requesting a Maton API key is proportionate for a proxied OAuth integration.
Instruction Scope
SKILL.md only instructs network calls to Maton-controlled endpoints and uses the MATON_API_KEY from environment; it does not ask the agent to read local files or unrelated environment variables. Note: all user Clockify activity is proxied through Maton endpoints (including connection creation/deletion), which is expected but a privacy/trust consideration.
Install Mechanism
Instruction-only skill with no install spec or code files — nothing is written to disk during install and no third-party packages are pulled, which minimizes installation risk.
Credentials
Only MATON_API_KEY is required, which is consistent with the described gateway usage. This key is sensitive because it authorizes access via Maton to your Clockify account; the skill does not declare other unrelated secrets.
Persistence & Privilege
always is false and there are no config paths or requests to modify other skills or system settings. Model invocation is allowed (platform default), which is normal for user-invocable skills.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install clockify
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /clockify 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release: integrates Clockify API with managed OAuth. - Track time, manage projects, clients, tasks, tags, and workspaces via Clockify. - Uses Maton API gateway for secure token management. - Includes detailed usage instructions for user, project, workspace, client, tag, and task operations. - Provides examples for authenticating, making API requests, and managing OAuth connections. - Supports specifying connections when multiple Clockify accounts are linked.
元数据
Slug clockify
版本 1.0.0
许可证
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Clockify 是什么?

Integrate with Clockify API to track time, and manage projects, clients, tasks, tags, and workspaces using OAuth authentication. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 672 次。

如何安装 Clockify?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install clockify」即可一键安装,无需额外配置。

Clockify 是免费的吗?

是的,Clockify 完全免费(开源免费),可自由下载、安装和使用。

Clockify 支持哪些平台?

Clockify 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Clockify?

由 byungkyu(@byungkyu)开发并维护,当前版本 v1.0.0。

💬 留言讨论