Agent Relay

v0.2.0
io.github.mmmikael/arelay Checked 11 hours ago Published 3 months ago

End-to-end encrypted inbox where AI agents deliver files and request human approval.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

deliver_to_inbox Deliver files to the Agent Relay inbox

Deliver finished work (reports, files, artifacts) to the human's end-to-end encrypted Agent Relay inbox. Creates a new session unless session_id is given. Use this when work is complete and a human should receive the result.

ParameterTypeDescription
files *arrayFiles to deliver.
title *stringShort human-readable title for the delivery session.
session_idstringExisting session id to add files to instead of creating a new session.
summarystringOne or two sentences on what was delivered and why.

list_inbox_sessions List inbox sessions

List delivery sessions in the Agent Relay inbox (ids, timestamps, read state). Titles are end-to-end encrypted and cannot be read by agents.

submit_email_draft Submit an email draft for human review

Submit an outbound email draft to the Agent Relay inbox for human approval before it is sent (requires the Email Review Relay plugin, enabled on arelay.app). Nothing is sent until the human approves.

ParameterTypeDescription
from_email *stringSender email address (must be one the account can send from).
html *stringHTML body of the email.
subject *stringEmail subject.
to *stringRecipient email address.
bccstringBCC email address (e.g. to keep a copy for the sender).
ccstringCC email address.
from_namestringSender display name.
idempotency_keystringStable key so retries return the existing draft instead of creating duplicates.
inline_imagesarrayOn-disk images to inline into the html body. Each replaces a <img src="cid:CID"> reference with its base64 data URI (delivered as a CID inline attachment), so you pass a file path instead of embedding…
textstringPlain-text body.

submit_spend_request Submit a spend request for human approval

Propose a payment or purchase to the human's Agent Relay inbox for approval before any money moves (requires the Spend Review Relay plugin). Nothing is charged until the human approves; on approval a Stripe PaymentIntent is created in the account's Stripe (test) mode. Use this whenever an autonomous action would spend money.

ParameterTypeDescription
amount_minor *integerAmount in the smallest currency unit (cents for USD). $49.00 = 4900.
currency *stringThree-letter ISO currency code, e.g. "usd".
description *stringWhy this spend is needed — shown to the human reviewer.
payee *stringWho is being paid or what is being purchased, e.g. "OpenAI API credits".
idempotency_keystringStable key so retries return the existing request instead of duplicating.