
Ticktick Cli
A Python CLI for automating TickTick task management through their Open API, with proper support for both the Chinese Dida365 and international versions. It handles the full lifecycle: projects, tasks, checklists, habits, and focus records. The auth flow is smart about not re-authenticating on every call, only when tokens actually fail. Useful if you're scripting task creation from other tools or need programmatic access to your lists without clicking through a UI. The documentation is thorough about execution details like using the uv shebang directly instead of wrapping it in python calls, and it warns you that delete operations are real and permanent. Remote SSH scenarios need some thought around the OAuth callback, but the token file approach keeps it straightforward for local automation.
- skills.sh installs
- 258
- GitHub stars
- 25
- last updated
- Aug 21, 2026
Install
$ npx -y skills add dcjanus/prompts --skill ticktick-cli --agent claude-codeInstalls into .claude/skills of the current project.
Files
ticktick-cli
通过本 skill 调用滴答清单 / TickTick Open API。默认中国区 Dida365;国际版只在登录时显式选择。
执行约定
- 给 Agent 解析的输出一律加
--json,并且全局参数必须放在子命令前。 - 删除项目或任务前先确认用户意图;
delete会真实删除远端数据。 - 参数不确定时先查
./scripts/ticktick_cli.py <command> --help。
认证
默认假设本地 token 有效,直接执行用户请求的操作;不要在每次操作前先跑 auth doctor。
只有命令失败且报错指向认证、token、权限、区域或 API base URL 问题时,再诊断当前本地 token:
./scripts/ticktick_cli.py --json auth doctor
确实没有 token、token 失效或用户要求重新登录时再登录:
./scripts/ticktick_cli.py auth login
- 国际版登录用
./scripts/ticktick_cli.py auth login --region ticktick。 - 默认只输出授权链接,不自动打开浏览器;需要自动打开时加
--open。 - 登录会启动 localhost callback,默认等待 5 分钟;看到链接后应尽快完成授权。
- token 默认保存到
~/.config/ticktick-cli/token.json,可用TICKTICK_TOKEN_FILE覆盖。 - 后续命令只读本地 token 文件,并从 token 元数据推断区域和 API base URL。
- 远程 SSH 场景下,浏览器 callback 必须能访问运行 CLI 的机器;必要时在目标机器本地登录,或自行做端口转发。
日常操作
常用命令族:
auth login|doctor|logoutproject list|get|data|create|update|deletetask get|create|update|complete|delete|move|completed|filterfocus get|list|deletehabit list|get|create|update|checkin|checkins
常见入口:
Sponsors
Details
- Repository
- github.com/dcjanus/prompts
- Categories
- Backend & APIs, Python, CLI & Terminal
- First seen
- Jun 3, 2026