caldav-cli
Manage CalDAV calendars (iCloud, Google, Yandex) from the command line. Supports OAuth2 and Basic auth, multi-account, table/JSON output.
- License 许可
- MIT
- 最近更新
- 2026-06-07
- Stars
- ★ 0
- Forks
- 1
01 前言 Front Matter
- name
- caldav-cli
- metadata
- { "clawdbot": { "os": [ "linux", "macos" ], "emoji": "📅", "source": "https://github.com/cyberash-dev/caldav-cli", "install": [ { "id": "npm", "bins": [ "caldav-cli" ], "kind": "shell", "label": "Install caldav-cli via npm", "command": "npm install -g caldav-cli" } ], "requires": { "bins": [ "caldav-cli", "node" ], "configs": [ "~/.config/caldav-cli/config.json" ], "keychain": true } } }
- description
- Manage CalDAV calendars (iCloud, Google, Yandex) from the command line. Supports OAuth2 and Basic auth, multi-account, table/JSON output.
03 SKILL.md 正文
caldav-cli
A CalDAV CLI client. Manages multiple accounts with secure OS keychain storage. Supports iCloud, Google (OAuth2), Yandex and any custom CalDAV server.
Installation
Requires Node.js >= 18.
npm install -g caldav-cli
After installation the caldav-cli command is available globally.
Quick Start
caldav-cli account add # Interactive wizard: pick provider, enter credentials
caldav-cli events list # Show events for the next 7 days
caldav-cli events create # Interactive wizard: create a new event
Account Management
Add account (interactive wizard — prompts for provider, credentials, tests connection):
caldav-cli account add
List configured accounts:
caldav-cli account list
Remove an account:
caldav-cli account remove <name>
View Events
caldav-cli events list # Next 7 days (default)
caldav-cli events list --from 2026-02-10 --to 2026-02-20
caldav-cli events list -a work # Specific account
caldav-cli events list -c "Team Calendar" # Filter by calendar name
caldav-cli events list -a work -c Personal --from 2026-03-01 --to 2026-03-31
JSON output (for scripting):
caldav-cli events list --json
caldav-cli events list --json --from 2026-02-10 --to 2026-02-20
Create Events
Interactive wizard (prompts for all fields):
caldav-cli events create
Non-interactive (all options via flags):
caldav-cli events create \
--title "Team standup" \
--start "2026-02-10T10:00" \
--end "2026-02-10T10:30" \
--account work \
--calendar "Team Calendar" \
--description "Daily sync" \
--location "Room 42"
Partial flags (wizard prompts for the rest):
caldav-cli events create --title "Lunch" --account work
JSON output after creation:
caldav-cli events create --json --title "Event" --start "2026-02-10T10:00" --end "2026-02-10T11:00"
Supported Providers
| Provider | Auth | Server URL |
|---|---|---|
| Apple iCloud | Basic (app-specific password) | https://caldav.icloud.com |
| Google Calendar | OAuth2 (Client ID + Secret) | https://apidata.googleusercontent.com/caldav/v2 |
| Yandex Calendar | Basic (app password) | https://caldav.yandex.ru |
| Custom | Basic | User provides URL |
Google Calendar Setup
Google requires OAuth2. Before running caldav-cli account add:
- Go to https://console.cloud.google.com/
- Create a project, enable CalDAV API
- Create OAuth client ID (Desktop app type)
- Note the Client ID and Client Secret
The wizard will ask for these, then open a browser for authorization. The refresh token is stored securely in the OS keychain.
Data Storage
- Passwords, OAuth2 refresh tokens, and OAuth2 client credentials (Client ID, Client Secret, Token URL): OS keychain (macOS Keychain, Linux libsecret, Windows Credential Vault) via
@napi-rs/keyring. Never written to disk in plaintext. - Account metadata (name, provider ID, username, server URL):
~/.config/caldav-cli/config.json(file permissions0600).
No secrets are stored on disk. Existing installations that stored OAuth2 client credentials in config.json are automatically migrated to the keychain on first run.
Flag Reference
events list
| Flag | Short | Description | Default |
|---|---|---|---|
--account <name> |
-a |
Account name | default account |
--from <date> |
Start date (YYYY-MM-DD) | today | |
--to <date> |
End date (YYYY-MM-DD) | today + 7 days | |
--calendar <name> |
-c |
Filter by calendar name | all calendars |
--json |
Output as JSON | false |
events create
| Flag | Short | Description |
|---|---|---|
--title <title> |
-t |
Event title |
--start <datetime> |
-s |
Start (YYYY-MM-DDTHH:mm) |
--end <datetime> |
-e |
End (YYYY-MM-DDTHH:mm) |
--account <name> |
-a |
Account name |
--calendar <name> |
-c |
Calendar name |
--description <text> |
-d |
Event description |
--location <text> |
-l |
Event location |
--json |
Output as JSON |
All events create flags are optional. Omitted values trigger interactive prompts.
04 同仓库更多 Skills
crowd-prompting
A marketplace where AI agents improve prompts, system instructions, tool descriptions, and other text-based content with domain expertise from real-world operations — and earn tokens for valuable contributions.
ceaser
Interact with the Ceaser privacy protocol on Base L2 using the ceaser-mcp MCP tools. This skill uses the ceaser-mcp npm package for ALL operations -- shield, unshield, note management, and protocol queries. All ceaser tool calls use CLI subcommands (npx -y ceaser-mcp <subcommand>). Ceaser is a privacy-preserving ETH wrapper using Noir/UltraHonk zero-knowledge proofs on Base L2 (chain ID 8453).
ceaser-send
Fully automated private ETH transfer via Ceaser Protocol on Base L2 using the ceaser-mcp MCP tools. This skill uses the ceaser-mcp npm package for ALL operations -- all ceaser tool calls use CLI subcommands (npx -y ceaser-mcp <subcommand>). WARNING -- creates observable on-chain links between user wallet and hot wallet (see Privacy Warning). Generates an ephemeral hot wallet with BIP-39 mnemonic recovery, user funds it, agent signs and broadcasts the Shield TX automatically. Exactly one manual step required (funding the hot wallet with ETH). Uses Noir/UltraHonk zero-knowledge proofs.
dilemm-ai
Compete in DilemmAI, the prisoner's dilemma AI arena at dilemm.ai. Use when an OpenClaw agent wants to create an account, design and submit strategy prompts for their bot, enter matchmaking, analyze historical matches and leaderboards, and iterate on bot strategy. Requires headless browser automation (no API available yet).
moldium
Post and manage content on the Moldium blog platform. Triggered by "post to Moldium", "write a blog post", "publish an article", etc.
arxiv-paper-reviews
Interact with arXiv Crawler API to fetch papers, read reviews, submit comments, search papers, and import papers. Use when working with arXiv papers, fetching paper lists by date/category/interest, viewing paper details with comments, submitting paper reviews, searching papers by title, or importing papers from arXiv URLs via API at http://weakaccept.top:8000/.