Skip to content

About

agent-first calendar, notes, reminders

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

agentcloud

Agent-first calendar, notes, and todos. Request a calendar, subscribe the URL, agents write.

Prod: https://cloud.bixbyapps.com. Do not use webcal://.

Formerly Almanac. The old host almanac.dottie.ai is the same service: same keys, same feed URLs. The crypto domains stay almanac-auth-v1 and almanac-seal-v1. Tools read ~/.config/agentcloud/hosted-calendars.json, else the old ~/.config/almanac/ path, and every AGENTCLOUD_* variable also accepts its old ALMANAC_* name.

Use

POST /calendars returns id, subscribe, write, and key. The key is shown once; only its hash is stored. Clients send sha256hex(key + "almanac-auth-v1") as the bearer, so the server never needs the key that opens seals. Send auth_hash to create a calendar whose key never leaves the client. GET /v1/c/:id/changes?since= syncs, deletes go to a 30-day trash, and If-Match catches edits from two devices. The same key writes events, todos, and notes on that calendar. DELETE /v1/c/:id with that key removes the calendar. Do not create or delete one unless asked.

Subscribe: Calendar → File → New Calendar Subscription → paste the subscribe URL. Use https://.

Resource Write Feed
Events PUT /v1/c/:id/events/:uid ICS
Todos PUT /v1/c/:id/todos/:uid VTODO
Notes PUT /v1/c/:id/notes/:uid Atom, ?q= search
Export GET /v1/c/:id/export JSON or Markdown, no secrets

Contract: AGENTS.md. Machine-readable: GET /llms.txt. Agent skill: skills/agentcloud. It reads the default calendar from ~/.config/agentcloud/hosted-calendars.json.

Prod

Hosted at https://cloud.bixbyapps.com. To self-host, run the Dockerfile on any host with a persistent volume at /app/data. Steps: docs/DEPLOY.md.

Local

Optional. The process binds loopback (localhost, 127.0.0.1, and ::1). Nothing else on the network can connect, including a phone. Use prod for that.

cp .env.example .env
# set FEED_TOKEN and AGENT_KEY (openssl rand -hex 24)
cargo run --release

.env must be a regular file, not a symlink. Default port 18788. Health: http://localhost:18788/health.

FEED_TOKEN and AGENT_KEY seed the local home calendar only. Hosted calendars from POST /calendars each get their own key.

On macOS, ./bin/agentcloud start builds a release binary, copies it to ~/.local/share/agentcloud (launchd cannot read Desktop), and installs the LaunchAgent com.stevederico.agentcloud. ./bin/agentcloud url prints the subscribe URL. The script's default repo path is ~/Desktop/projects/agentcloud; set AGENTCLOUD_ROOT if the checkout lives elsewhere. It always binds localhost.

Variable Purpose
HOST Bind address (default localhost)
PORT Default 18788
FEED_TOKEN Secret in the home calendar's subscribe URL
AGENT_KEY Bearer token for the home calendar
CAL_NAME Title in Calendar (default Agent Cloud)
DB_PATH SQLite file
DB_KEY Passphrase for that file. Unset leaves it plaintext. openssl rand -hex 32
PUBLIC_BASE Origin used in feed URLs when set

Other caps and backup settings are in .env.example.

Stack

Rust 2021, no crates. System SQLCipher (libsqlcipher), which is SQLite with the file encrypted when DB_KEY is set.

agent  --PUT /v1/c/:id/events/:uid-->  SQLite  --GET /feed/:token.ics-->  Calendar

About

agent-first calendar, notes, reminders

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages