Tools
Caldav
CalDAV calendar tools for OpenClaw: read your calendar and add events on Nextcloud, Fastmail, iCloud, Radicale or any CalDAV server
Install
npm install --legacy-peer-deps
README
# openclaw-caldav
Calendar tools for [OpenClaw](https://openclaw.ai) that work with any CalDAV server. Your agent can
tell you what is on your calendar, check whether a time is free, and add events, on the calendar
you already use: Nextcloud, Fastmail, iCloud, Radicale, Baïkal and others.
The password stays in OpenClaw's config. The agent gets four typed tools and never sees it, and
it can only look at your calendar unless you allow more.
[](https://github.com/rickysinghmba/openclaw-caldav/actions/workflows/ci.yml) [](https://clawhub.ai/rickysinghmba/plugins/openclaw-caldav) [](LICENSE)
> **Status: 0.1, early.** Tested with OpenClaw 2026.11.10 on macOS, and in CI on Linux, against a
> Radicale 3.9 server: finding calendars, listing events with repeating ones expanded, adding and
> deleting events, and an agent turn that used the tools. **Not tested yet:** Nextcloud, Fastmail,
> iCloud and Baïkal. They speak the same protocol, but servers differ in details, so please report
> what you find.
## Requirements
- OpenClaw 2026.10.34 or later
- A calendar account on a CalDAV server, and its address
## Install
```bash
openclaw plugins install openclaw-caldav
```
## Set up
```json5
{
plugins: {
entries: {
caldav: {
config: {
server: "https://cloud.example.org/remote.php/dav",
username: "you",
password: "an-app-password",
},
},
},
},
}
```
You can leave `username` and `password` out of the file and set the `CALDAV_USERNAME` and
`CALDAV_PASSWORD` environment variables for the gateway.
Then ask your agent: "What is on my calendar this week?"
### Server addresses
| Service | Address | Password |
| --- | --- | --- |
| Nextcloud | `https://YOUR-HOST/remote.php/dav` | an app password from Settings → Security |
| Fastmail | `https://caldav.fastmail.com` | an app password with calendar access |
| iCloud | `https://caldav.icloud.com` | an app-specific password from your Apple ID page |
| Radicale | the server's address, e.g. `https://cal.example.org` | the account password |
| Baïkal | `https://YOUR-HOST/dav.php` | the account password |
These are the addresses the services document. Only Radicale has been tested with this plugin so
far. Use an app password wherever the service offers one, so you can revoke it without changing
your main password.
### Let the agent add events
The plugin starts read-only. To let the agent add events:
```json5
{
plugins: {
entries: {
caldav: {
config: {
access: "create",
defaultCalendar: "Personal",
},
},
},
},
}
```
Set `access` to `"full"` to also let it delete events.
## What the agent can do
| Tool | What it does | Needs |
| --- | --- | --- |
| `calendar_list_calendars` | Lists your calendars and what the agent may do. | `read` |
| `calendar_list_events` | Lists events in a time range, in one calendar or all, with an optional text search. | `read` |
| `calendar_create_event` | Adds a single timed or all-day event. | `create` |
| `calendar_delete_event` | Deletes an event. A repeating event needs an explicit confirmation flag. | `full` |
## Configuration
Settings go under `plugins.entries.caldav.config`.
| Setting | Default | What it does |
| --- | --- | --- |
| `server` | none | Address of the CalDAV server or account. Required. |
| `username` | none | Account user name. Or set `CALDAV_USERNAME`. |
| `password` | none | Account password or app password. Or set `CALDAV_PASSWORD`. |
| `access` | `read` | `read` (look only), `create` (also add events) or `full` (also delete). |
| `calendars` | all | Names of the calendars the agent may use. |
| `defaultCalendar` | none | Calendar new events go to when none is named. |
| `timezone` | this machine's | Your time zone, e.g. `Europe/Berlin`. Times are shown and read in it. |
| `allowInsecureHttp` | `false` | Allow a plain `http://` server that isn't on this machine. Leave off unless you trust the network. |
| `timeoutSeconds` | `20` | How long to wait for the server. |
## How it behaves
- **Read-only by default.** Adding and deleting are refused until you set `access`, and the
refusal happens before the server is contacted.
- **Only your calendars.** With `calendars` set, the agent can't list, search, add to or delete
from any other calendar on the account.
- **The password goes to one place.** The server address must be `https`, except for a server on
this machine. Redirects to another host are refused, so the password is never sent elsewhere.
- **Repeating events are expanded.** A weekly meeting shows up on each date, at the right clock
time across daylight-saving changes, with skipped and moved occurrences honoured.
- **Times are in your time zone.** Results carry an offset, such as `2026-12-03T15:00:00+01:00`.
All-day events are dates, and their end is the last day.
- **Event text is treated as data.** Titles, locations and descriptions can come from anyone who
sends you an invitation. They are shortened, stripped of control characters, and passed to the
agent with a note that they are information and not instructions.
- **Answers are size-limited as they arrive.** A server that sends more than 8 MB is cut off
mid-transfer, so it can't fill the gateway's memory.
- **Calendar data can't stall the gateway.** Calendar text is parsed in a worker thread with a
fixed allowance of steps, time and memory shared across all calendars and events. The worker is
stopped from outside if it overruns or the turn is cancelled. If the allowance runs out, the
result says it is incomplete.
- **Server error text is not passed on.** If the server refuses a request, the agent gets a short
message and a status code, never the server's own words.
- **Deleting a series needs a second step.** Deleting a repeating event removes every occurrence,
so the tool refuses until the agent confirms with you and asks again with a flag.
What you ask and what your calendar contains is sent to the model your OpenClaw uses, like any
other tool result. If that is a cloud model, your event details go to that provider.
## Limits
- Events can be added and deleted, but not changed yet.
- New events are single events. Repeating events can't be created yet.
- One occurrence of a repeating event can't be deleted on its own yet.
- One account. Tasks and invitations are not handled.
- Events in a time zone this machine doesn't know (some Windows zone names) are read in your
own time zone.
## Roadmap
Planned next: testing with Nextcloud, Fastmail and iCloud, changing events, and repeating events.
See [ROADMAP.md](https://github.com/rickysinghmba/openclaw-caldav/blob/main/ROADMAP.md).
## Development
```bash
npm install --legacy-peer-deps
npm test
```
`npm test` runs the unit tests. The live tests run when `CALDAV_TEST_ENV` points at a file with
test accounts on a real CalDAV server; see the top of `test/live.test.js`. The end-to-end test
also needs `OPENCLAW_BIN`, and uses
[openclaw-plugin-testkit](https://www.npmjs.com/package/openclaw-plugin-testkit) to run an agent
turn in a throwaway OpenClaw.
This project is not affiliated with OpenClaw or any calendar service.
## License
MIT
tools
Comments
Sign in to leave a comment