Use the Google Calendar CLI from KosmoKrator to call Google Calendar tools headlessly, return JSON, inspect schemas, and automate workflows from coding agents, scripts, and CI.
Google Calendar can be configured headlessly with `kosmokrator integrations:configure google-calendar`.
# Install KosmoKrator first if it is not available on PATH.curl -fsSL https://raw.githubusercontent.com/OpenCompanyApp/kosmokrator/main/install.sh | bash# Configure and verify this integration.kosmokrator integrations:configure google-calendar --set access_token="$GOOGLE_CALENDAR_ACCESS_TOKEN" --enable --read allow --write ask --jsonkosmokrator integrations:doctor google-calendar --jsonkosmokrator integrations:status --json
Credentials
Authentication type: Manual OAuth tokenoauth2_manual_token. Configure credentials once, then use the same stored profile from
scripts, coding CLIs, Lua code mode, and the MCP gateway.
Key
Env var
Type
Required
Label
access_token
GOOGLE_CALENDAR_ACCESS_TOKEN
Secret secret
yes
Access Token
url
GOOGLE_CALENDAR_URL
URL url
no
API Base URL
Call Google Calendar Headlessly
Use the generic call form when another coding CLI or script needs a stable universal interface.
Every function below can be called headlessly. The generic form is stable across all integrations;
the provider shortcut is shorter but specific to Google Calendar.
google-calendar.gcalendar_list_events
Read read
List events on a Google Calendar. Returns events within a specified time range. Use "primary" as the calendar ID for the user's main calendar.
Parameters
calendar_id, timeMin, timeMax, maxResults, q, orderBy
Create a new event on a Google Calendar. Requires at minimum a summary, start time, and end time. Supports adding attendees, location, and description.
Get the available color definitions for Google Calendar events and calendars. Returns color palettes that can be used when creating or updating events and calendars.
Calendar identifier (use "primary" for the user's main calendar).
event_id
string
yes
The unique identifier of the event.
google-calendar.gcalendar_create_event
Create a new event on a Google Calendar. Requires at minimum a summary, start time, and end time. Supports adding attendees, location, and description.
Calendar identifier (use "primary" for the user's main calendar).
summary
string
yes
Title of the event (e.g., "Team Standup").
start
object
yes
Start time of the event. An object with "dateTime" (RFC 3339) and "timeZone" (e.g., {"dateTime": "2026-04-06T10:00:00+02:00", "timeZone": "Europe/Amsterdam"}). For all-day events use "date" instead of "dateTime".
end
object
yes
End time of the event. Same format as start. Must be after the start time.
description
string
no
Description or notes for the event. Can contain HTML.
attendees
array
no
List of attendee email objects, e.g., [{"email": "[email protected]"}].
location
string
no
Location of the event (e.g., "Conference Room A" or a video call URL).
google-calendar.gcalendar_list_calendars
List all calendars on the user's Google Calendar account. Returns calendar IDs, summaries, and metadata for each calendar.
Calendar identifier (use "primary" for the user's main calendar, or a specific calendar email/ID).
google-calendar.gcalendar_list_colors
Get the available color definitions for Google Calendar events and calendars. Returns color palettes that can be used when creating or updating events and calendars.
Headless calls still follow the integration read/write permission policy. Configure read/write defaults
with integrations:configure. Add --force only for trusted automation that should bypass that policy.