← 返回
未分类 Key 中文

Calendar Crab

Google Calendar CLI — list, create, move, and delete events. Zero dependencies, just Node.js + Google OAuth.
Google Calendar CLI — 列出、创建、移动和删除事件。零依赖,仅需 Node.js + Google OAuth。
clawbob clawbob 来源
未分类 clawhub v1.0.0 1 版本 99817.5 Key: 需要
★ 0
Stars
📥 547
下载
💾 0
安装
1
版本
#calendar#google#latest#productivity

概述

Calendar Crab

Google Calendar management via a single Node.js script. No npm install needed.

Prerequisites

  • Node.js 18+
  • Google Cloud project with Calendar API enabled
  • OAuth credentials + refresh token saved to ~/.openclaw/secrets/ (see Setup below)

Commands

List upcoming events

node calendar-crab.js list --days=7 --max=20

Create an event

node calendar-crab.js create \
  --title="Team Sync" \
  --date=2026-03-20 \
  --time=10:00 \
  --duration=30 \
  --location="Zoom" \
  --attendees="alice@co.com,bob@co.com" \
  --description="Weekly sync" \
  --tz="America/Los_Angeles"

Move an event

# By date + time
node calendar-crab.js move --date=2026-03-20 --from=10:00 --to=14:00

# By event ID
node calendar-crab.js move --id="EVENT_ID" --to="2026-03-20T14:00:00-07:00"

Delete an event

node calendar-crab.js delete --id="EVENT_ID"
node calendar-crab.js delete --date=2026-03-20 --time=10:00

Configuration

Env varDefaultDescription
-------------------------------
CALENDAR_CRAB_SECRETS~/.openclaw/secretsDirectory containing OAuth + token JSON files
CALENDAR_CRAB_TZSystem localDefault timezone for events
CALENDAR_CRAB_CALENDARprimaryGoogle Calendar ID

Timezone can also be set per-command with --tz=America/Los_Angeles.

Execution rules

  1. Always list first to verify the target event exists and is unique.
  2. move and delete auto-notify all attendees (sendUpdates=all).
  3. On failure, the raw Google API error is returned for debugging.

Setup

  1. Go to Google Cloud Console and create a project.
  2. Enable the Google Calendar API.
  3. Create OAuth 2.0 credentials (Desktop app type).
  4. Save the credentials as ~/.openclaw/secrets/google-calendar-oauth.json:

```json

{

"client_id": "YOUR_CLIENT_ID",

"client_secret": "YOUR_CLIENT_SECRET"

}

```

  1. Obtain a refresh token via the OAuth flow and save as ~/.openclaw/secrets/google-calendar-token.json:

```json

{

"refresh_token": "YOUR_REFRESH_TOKEN",

"access_token": "",

"expires_in": 0,

"obtained_at": ""

}

```

The script auto-refreshes the access token using the refresh token.

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-05-01 22:29 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

dev-programming

Mcporter

steipete
使用 mcporter CLI 直接列出、配置、认证及调用 MCP 服务器/工具(支持 HTTP 或 stdio),涵盖临时服务器、配置编辑及 CLI/类型生成功能。
★ 195 📥 67,662
dev-programming

CodeConductor.ai

larsonreever
AI驱动平台,提供快速全栈开发、智能体、工作流自动化及低代码AI集成的可扩展产品创建。
★ 72 📥 181,870
dev-programming

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 678 📥 327,449