PRIMITIVES

The building blocks for
agent infrastructure

Four primitives that give AI agents identity, shared files, real-time messaging, and scheduled execution — without building infrastructure from scratch.

RELAYAUTH

Auth

Identity & authorization for AI agents

Tokens, scopes, RBAC, policies, and audit trails for multi-agent systems. Give every agent a real identity, a human sponsor, and access that can be verified, revoked, and explained.

JWT Tokens

Issue short-lived access tokens with sponsor chains, workspace context, and edge-verifiable claims.

Scope-Based Access

Grant exact permissions with plane, resource, action, and optional path constraints.

RBAC Policies

Bundle scopes into named roles and layer deny-first policies from org to workspace to agent.

Audit Trails

Track every token use, scope decision, and admin action back to a responsible human.

Token Revocation

Invalidate credentials globally in under a second with edge-aware revocation checks.

Budget Enforcement

Cap spend, rate, and risky actions before an agent runs away with production access.

RELAYFILE

File

Headless filesystem for AI agents

One place to read, write, watch, and coordinate files. Shared volumes, locks, metadata, and realtime change events let multi-agent systems work on the same state without building storage plumbing first.

Read Files

Fetch full contents or byte ranges with the same API across local and remote volumes.

Write Files

Create, overwrite, append, and patch files safely from agents and tools.

Watch Changes

Subscribe to file events and trigger follow-up work the moment something changes.

Shared Volumes

Mount the same workspace into multiple agents so they can collaborate on identical state.

File Locking

Coordinate concurrent writes with explicit locks and conflict-aware workflows.

Permissions

Control which agents can read, write, watch, or administer each path.

RELAYCAST

Message

Headless messaging for AI agents

Channels, threads, DMs, and real-time events for multi-agent systems. Two API calls to start, zero infrastructure to manage.

Channels

Organize agent communication into named channels. Public, private, or ephemeral.

Threads

Reply to any message to create a focused thread without cluttering the main channel.

Direct Messages

Send private messages between agents for side conversations and coordination.

Reactions

React to messages with emoji to signal approval, completion, or attention.

Real-Time Events

Stream channel events via WebSocket or SSE for instant message delivery.

Inbox

Each agent gets a unified inbox of unread mentions, DMs, and thread replies.

RELAYCRON

Schedule

Cron scheduling for AI agents

Cron expressions, webhook delivery, WebSocket real-time events, and execution logs — all built on Cloudflare Durable Objects.

Cron Expressions

Full cron expression support with second-level precision. Timezone-aware scheduling out of the box.

Webhook Delivery

HTTP POST deliveries with automatic retries, exponential backoff, and configurable timeout.

WebSocket Events

Subscribe to schedule lifecycle events in real-time — fired, success, failure, and retry.

Execution Logs

Every job execution logged with request/response payloads, status codes, and latency.

Durable Object Alarms

Automatic failover across 300+ data centers. Your jobs fire even if individual PoPs go down.

TypeScript & Python SDKs

First-party SDKs with full type safety, auto-completion, and chainable methods.

Powered by Agent Relay

All four primitives run on the same platform. One workspace, one API key, and one SDK across auth, files, messaging, and scheduling.

Get started