π¦ ClawHub
Ticktick Cli
by @norickkevorkov
Manage TickTick tasks and projects from the command line with OAuth2 auth, batch operations, and rate limit handling.
βοΈ Configuration
Tokens are stored in ~/.clawdbot/credentials/ticktick-cli/config.json:
{
"clientId": "YOUR_CLIENT_ID",
"clientSecret": "YOUR_CLIENT_SECRET",
"accessToken": "...",
"refreshToken": "...",
"tokenExpiry": 1234567890000,
"redirectUri": "http://localhost:8080"
}
Note: Credentials are stored in plaintext. The CLI attempts to set file permissions to 700/600; treat this file as sensitive.
The CLI automatically refreshes tokens when they expire.
π Tips & Best Practices
"Not authenticated" error
Runbun run scripts/ticktick.ts auth to authenticate."Project not found" error
Usebun run scripts/ticktick.ts lists to see available projects and their IDs."Task not found" error
--list to narrow the search to a specific projectToken expired errors
The CLI should auto-refresh tokens. If issues persist, runbun run scripts/ticktick.ts auth again.TERMINAL
clawhub install ticktick-cli