Skip to main content

Nostr-native scheduling for OpenClaw AI agents — read availability, book meetings, negotiate times over relay

Project description

NostrCalendar for OpenClaw

Give your AI agent a calendar.

Nostr-native scheduling that lets AI agents manage availability, book meetings, and negotiate times — all over relays, no centralized server. Think Calendly, but sovereign.

Why?

Scheduling is one of the most common things humans delegate. But every scheduling tool today is a walled garden — your availability lives on someone else's server, behind someone else's login.

NostrCalendar stores availability as Nostr events on your relay. Your AI agent reads and writes these events with its own keypair. Two agents can negotiate a meeting for their humans without either human lifting a finger.

What your agent can do:

  • Publish and update availability schedules
  • Check anyone's free slots on any relay
  • Send encrypted booking requests via DM
  • Accept, decline, or cancel meetings
  • Negotiate times with other agents (agent-to-agent)
  • Find mutual availability across multiple days

Install

pip install nostrcalendar

Quick Start

import asyncio
from nostrkey import Identity
from nostrcalendar import (
    AvailabilityRule, DayOfWeek, TimeSlot,
    publish_availability, get_free_slots, create_booking,
)
from datetime import datetime

async def main():
    identity = Identity.generate()
    relay = "wss://relay.nostrkeep.com"

    # Publish availability
    rule = AvailabilityRule(
        slots={
            DayOfWeek.MONDAY: [TimeSlot("09:00", "12:00"), TimeSlot("14:00", "17:00")],
            DayOfWeek.WEDNESDAY: [TimeSlot("10:00", "16:00")],
        },
        slot_duration_minutes=30,
        buffer_minutes=15,
        timezone="America/Vancouver",
    )
    await publish_availability(identity, rule, relay)

    # Check someone's availability
    slots = await get_free_slots("their_pubkey_hex", relay, datetime(2026, 3, 15))
    for slot in slots:
        print(f"{slot.start} - {slot.end}")

asyncio.run(main())

Agent-to-Agent Negotiation

from nostrcalendar import find_mutual_availability
from datetime import datetime, timedelta

dates = [datetime(2026, 3, d) for d in range(15, 20)]
mutual = await find_mutual_availability(my_agent, other_pubkey, relay, dates)

for date, slots in mutual.items():
    print(f"{date}: {', '.join(f'{s.start}-{s.end}' for s in slots)}")

NIPs Implemented

NIP Purpose
NIP-01 Basic event structure
NIP-04 Encrypted DMs (booking requests)
NIP-09 Event deletion (cancellations)
NIP-52 Calendar events & RSVPs
NIP-78 App-specific data (availability rules)

OpenClaw Skill

NostrCalendar is published on ClawHub as the nostrcalendar skill. Install it in your OpenClaw agent to give it scheduling capabilities.

License

MIT — Humanjava Enterprises Inc.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nostrcalendar-0.2.0.tar.gz (19.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nostrcalendar-0.2.0-py3-none-any.whl (16.3 kB view details)

Uploaded Python 3

File details

Details for the file nostrcalendar-0.2.0.tar.gz.

File metadata

  • Download URL: nostrcalendar-0.2.0.tar.gz
  • Upload date:
  • Size: 19.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.1

File hashes

Hashes for nostrcalendar-0.2.0.tar.gz
Algorithm Hash digest
SHA256 88b2530968507e6c01b9b0f2db26481aa58c46736933f00a6b554801ed779d2b
MD5 790c73c1af69f5ed209bc8873ebd7788
BLAKE2b-256 6e3fc37e847fb977eae631b2a1c3b89513e5914ba86ad4502d22d67377b6e75d

See more details on using hashes here.

File details

Details for the file nostrcalendar-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: nostrcalendar-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 16.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.1

File hashes

Hashes for nostrcalendar-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ccc3e2e7e741a1d8dc602c37b054d53d04723190dba3b5ebcc2c7ecc9fb0578a
MD5 e1c6a490efdb5b9af9c2a3b436cd1750
BLAKE2b-256 90fbc5804b627e0225aa73b6c8c4c58302b36a469e26f1d7187fa5ef393ec69b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page