arelay
End-to-end encrypted inbox for AI agents — deliver artifacts to humans via HTTP API.
Install / Use
claude mcp add mmmikael -- npx -y github:mmmikael/arelayIf the server publishes to npm under a different name, use that package instead — check the repo README.
MCP Server
Model Context Protocol server
Quality Score
Category
Data & AnalyticsSupported Platforms
Our assessment of arelay
arelay scores 81/100 on our quality scale, 525th of 597 Data & Analytics skills we index.
Its MCP Server is 24 KB long, well organised into 31 sections with 11 code examples: a thorough specification that gives an agent plenty to work with.
It has 10 GitHub stars, so there is little community track record yet; judge it on its content.
Maintenance, license and trust
- The repository was last updated 35 days ago, so arelay is actively maintained.
- Our last check on 2026-08-23 found the source still online.
- It is released under the MIT license, a permissive license that allows use, modification and commercial use with attribution.
- Its trust signals score 92/100, with 1 caution from licensing, adoption, age or documentation. These come from repository metadata, not a code audit — read the skill file before letting an agent act on it.
Safety scan
No issues foundOur scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands. An AI review of the same text found nothing harmful.
AI review by kimi-k2.7-code on 2026-09-27. Automated pattern scan on 2026-09-27. It catches known dangerous patterns, not every risk — read a skill before letting an agent act on it.
arelay compared with similar skills
All 4 of these similar skills score higher than arelay; compare them before choosing.
| Skill | Score | Stars | Updated | Format |
|---|---|---|---|---|
| arelay (this skill)by mmmikael | 81 | 10 | 35d ago | MCP Server |
| claude-memby thedotmack | 100 | 97.5k | today | CLAUDE.md |
| Agent-Reachby Panniantong | 100 | 93.0k | 22d ago | CLAUDE.md |
| headroomby headroomlabs-ai | 100 | 74.6k | today | CLAUDE.md |
| CowAgentby zhayujie | 100 | 47.3k | today | CLAUDE.md |
Frequently asked questions
- How do I install arelay?
- Run
claude mcp add mmmikael -- npx -y github:mmmikael/arelay. The install tabs above show the steps for each supported agent. - Which AI agents does arelay work with?
- It is written for Claude Code and Claude Desktop, as a MCP Server file. Other agents that read the same format can often use it too.
- Is arelay safe to use?
- Our scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands. An AI review of the same text found nothing harmful. It is MIT-licensed and scores 92/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
- Is arelay still maintained?
- The repository was last updated 35 days ago, so arelay is actively maintained.
Skill content
View source on GitHubAgent Relay
Agent Relay is where your AI agents ask permission. Agents draft emails, request spend, and deliver finished work into a private, end-to-end encrypted inbox; nothing leaves, sends, or charges until you approve it. Anything that can make HTTP requests can use it — Cursor, Codex, Claude Code, cron jobs, webhooks, or your own backend — and it is open source under MIT, so you can run it yourself.

An optional Email Review Relay plugin adds a human-in-the-loop outbound email path: agents submit
encrypted drafts, you preview them in the same inbox, then approve or reject before anything
is sent. It is enabled on arelay.app; self-hosters can turn it on with
EMAIL_REVIEW_RELAY_ENABLED=true (setup).
Two ways to use it:
- arelay.app — hosted service; sign up and connect your agents (no deployment).
- Self-host — run this repo on your own infrastructure under the MIT license.
Contents
Using arelay.app
Self-hosting
Reference
Using arelay.app
The hosted service at arelay.app handles deployment, database, storage, backups, TLS, and updates. The security model is the same as self-hosting: encrypted deliveries are decrypted in your browser, not on the server. The one exception is approving an email draft: the decrypted email is sent to the server in that request so it can be delivered, and is never stored as plaintext. Email itself is not end-to-end encrypted, so the recipient's mail provider sees the same content permanently.
Get started
- Open arelay.app and create an account with a passkey.
- Accept the Terms of Service and Privacy Policy during signup (required on the hosted service).
- Complete Set up encryption on first portal visit (passkey + recovery key).
- In the portal, open Account → Agent tokens and create a named token for each agent or integration.
- Copy the token once — it is shown only at creation time.
- Your inbox updates automatically when agents send deliveries (refresh every few seconds).
Sign-in uses passkeys (WebAuthn), not passwords or social login. No Google, Apple, or Microsoft account is required. If terms or privacy are updated later, existing accounts are prompted to accept the new versions before continuing.
Connect your AI agent
Agent Relay is agent-agnostic: any client that speaks HTTP and follows the E2EE envelope format can deliver. Pick the path that fits your setup:
| Integration path | Best for | | ------------------------------------- | -------------------------------------------------------------------------------------------------------------- | | CLI & MCP server | Fastest start: one command from any shell, or native MCP tools in Claude Code, Cursor, and Claude Desktop | | Agent skill | Cursor, Codex, Claude Code, Hermes Agent, and other Agent Skills hosts | | Direct HTTP API | Custom scripts, backends, webhooks, scheduled jobs | | Platform plugins | Platform-specific hooks, e.g. Hermes cron delivery |
Whichever path you choose, set these where your agent runs — never commit tokens:
| Variable | Value for arelay.app |
| -------------- | ------------------------------------------ |
| ARELAY_URL | https://arelay.app |
| ARELAY_TOKEN | Token from Account → Agent tokens |
Every request uses Authorization: Bearer <ARELAY_TOKEN>.
CLI & MCP server
The @arelay/cli npm package wraps the API and all envelope encryption.
Deliver from any shell:
export ARELAY_TOKEN=ar_... # from Account → Agent tokens
npx -y @arelay/cli send report.md --title "Q2 revenue report"
Or register it as an MCP server so agents can deliver work natively
(deliver_to_inbox, list_inbox_sessions, submit_email_draft tools):
# Claude Code
claude mcp add arelay --env ARELAY_TOKEN=ar_... -- npx -y @arelay/cli mcp
npx -y @arelay/cli check verifies the token and encryption setup. The package also exports a
typed SDK (import { ArelayClient } from '@arelay/cli') — see its
README. Self-hosters point it at their deployment with
ARELAY_URL.
Agent skill
Install the agent-relay skill (requires
portal E2EE setup):
npx skills add mmmikael/arelay-skills --skill agent-relay -g -y
Hermes Agent:
hermes skills tap add mmmikael/arelay-skills
hermes skills install mmmikael/arelay-skills/agent-relay
Direct HTTP API
Anything that can POST JSON can deliver: fetch the public key from
GET /api/agent/e2ee/config, encrypt locally, create a session, and upload artifacts. See
the API reference
and the bundled Node reference scripts in the skill for working encryption code.
Platform plugins
Hermes cron (--deliver arelay) needs arelay-hermes-plugin.
Cron runs in the gateway, not the interactive CLI — put credentials in
~/.hermes/.env (including AGENT_RELAY_HOME_CHANNEL=https://arelay.app), install the
plugin, then restart the gateway:
hermes plugins install mmmikael/arelay-hermes-plugin --enable
# ~/.hermes/.env: AGENT_API_TOKEN, AGENT_RELAY_URL, AGENT_RELAY_HOME_CHANNEL
# (the Hermes plugin reads its own variables, not the CLI's ARELAY_* ones)
hermes gateway start
/cron add "0 9 * * *" "Your prompt. Never use [SILENT]." --deliver arelay
Encryption (required)
All agent deliveries must be end-to-end encrypted. Complete Set up encryption during
Get started; unlock in the browser when viewing the inbox. Agents fetch your
public key from GET /api/agent/e2ee/config and upload encrypted sessions and artifacts.
Plaintext agent payloads return 400 (plaintext_not_allowed); unconfigured accounts get
428 (e2ee_required).
Email Review Relay
On arelay.app, agents POST encrypted email drafts; each appears as an inbox session you Approve (send via your Cloudflare credentials) or Reject.
- Account → Email sending (Cloudflare API) — save your Cloudflare Account ID and API token (encrypted server-side; used only when you approve).
- Use the agent-relay skill — drafts use the same E2EE envelopes as file deliveries.
API details and self-host setup: Plugins.
Features
- Mobile-friendly email-style inbox
- Email Review Relay: agents draft outbound mail; you approve before send
- Artifact preview and download (text, Markdown, HTML, PDF, images)
- Sandboxed HTML/Markdown preview (external links and media stripped)
- End-to-end encrypted deliveries only
- Passkey sign-in (one passkey per account)
- Named agent API tokens with per-token revoke
- Storage limits: 25 MB per artifact, 500 MB per account
Self-hosting
Run Agent Relay on your own PostgreSQL and S3-compatible storage. Useful when you need full data residency control or a private deployment.
Development setup
npm install
cp .env.example .env
npm run db:migrate:local
npm run dev
Open http://127.0.0.1:5173 and create an account with a passkey. Without Cloudflare or SMTP configured, verification codes are printed to the server console.
Database schema changes are managed with Drizzle migrations. Edit the Drizzle schema,
generate a migration with npm run db:generate, review the generated SQL, then apply it
with npm run db:migrate:local.
Run unit tests:
npm test
To test migrations against a disposable empty database, set TEST_DATABASE_URL and run:
npm run db:smoke
Environment variables
| Variable | Description |
| ---------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| SESSION_SECRET | Secret for signing human session cookies. Generate with openssl rand -hex 32. |
| SESSION_VERSION | Bump this to invalidate existing human sessions. |
| ORIGIN | Public site URL for CSRF checks and absolute links. In production, set to your canonical URL, for example https://arelay.app. |
| WEBAUTHN_RP_NAME | Passkey relying party display name. Defaults to Agent Relay. |
| WEBAUTHN_RP_ID | Passkey relying party ID. For production on arelay.app, use arelay.app. |
| WEBAUTHN_ORIGIN | Expected passkey origin, for example https://arelay.app. |
| DATABASE_URL | PostgreSQL connection string.
Truncated for display — read the full file on GitHub.
Related Skills
claude-mem
97.5kPersistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More
Agent-Reach
93.0kGive your AI agent eyes to see the entire internet. Read & search Twitter, Reddit, YouTube, GitHub, Bilibili, XiaoHongShu — one CLI, zero API fees.
headroom
74.6kCompress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agents, 60-95% fewer tokens for JSON, same answers. Library, proxy, MCP server.
CowAgent
47.3kOpen-source personal AI assistant & Agent Harness. Plans tasks, runs tools and skills, self-evolves with memory and knowledge. Multi-agent, multi-model, multi-channel. Lightweight, extensible, one-line install.
Languages
Trust signals
From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.
