
Company News
Free Business Plan Upgrades for Open Source Maintainers
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.
@arelay/cli
Advanced tools
CLI, SDK, and MCP server for delivering end-to-end encrypted files from AI agents to an Agent Relay inbox.
CLI, SDK, and MCP server for Agent Relay — an open-source, end-to-end encrypted inbox for AI agents. Deliver reports, files, and finished work to a human's private inbox; everything is encrypted on the agent's machine and decrypted only in the recipient's browser.
export ARELAY_TOKEN=ar_... (self-hosters also set ARELAY_URL).Verify everything is wired up:
npx -y @arelay/cli check
npx -y @arelay/cli send report.md --title "Q2 revenue report"
npx -y @arelay/cli send build/report.pdf metrics.csv --title "Nightly metrics" --summary "All checks green"
Prints JSON with session_id and portal_url. Titles, summaries, filenames, content
types, and file bytes are all encrypted client-side before upload.
Give any MCP-capable agent (Claude Code, Cursor, Claude Desktop, ...) the ability to deliver work directly:
# Claude Code
claude mcp add arelay --env ARELAY_TOKEN=ar_... -- npx -y @arelay/cli mcp
Or in JSON MCP config:
{
"mcpServers": {
"arelay": {
"command": "npx",
"args": ["-y", "@arelay/cli", "mcp"],
"env": { "ARELAY_TOKEN": "ar_..." }
}
}
}
Tools:
deliver_to_inbox — deliver files (by path or inline content) into a new or existing session.list_inbox_sessions — list session ids, timestamps, and read state (titles are E2EE and unreadable by agents).submit_email_draft — submit an outbound email for human approval (Email Review Relay plugin; nothing is sent until the human approves it in the portal).import { ArelayClient } from '@arelay/cli';
const client = new ArelayClient({ token: process.env.ARELAY_TOKEN! });
const result = await client.deliver({
title: 'Q2 revenue report',
summary: 'Revenue up 14% QoQ.',
files: [
{ filename: 'report.md', content: '# Q2 report\n...' },
{ filename: 'data.csv', content: csvBytes }
]
});
console.log(result.portalUrl);
Lower-level methods: createSession, updateSession, uploadArtifact, listSessions,
getSession, createEmailDraft, getE2eeConfig. Envelope crypto primitives
(encryptBytes, encryptString) are exported for custom integrations.
| Variable | Meaning |
|---|---|
ARELAY_TOKEN | Agent API token (ar_...) from the portal |
ARELAY_URL | Relay base URL; defaults to https://arelay.app |
Limits: 25 MB per file, 500 MB per account.
The agent encrypts every field and file with the recipient's public key (P-256 ECDH → AES-256-GCM, one ephemeral key per envelope) before anything leaves the process. The relay server stores ciphertext it cannot read. See the security model for details.
MIT licensed. Source lives in mmmikael/arelay
under packages/arelay.
FAQs
CLI, SDK, and MCP server for delivering end-to-end encrypted files from AI agents to an Agent Relay inbox.
The npm package @arelay/cli receives a total of 301 weekly downloads. As such, @arelay/cli popularity was classified as not popular.
We found that @arelay/cli demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.

Security News
The supply chain control that delays freshly published gems now covers lockfile generation and gem vendoring in Ruby projects.

Security News
During a UK cyber test, a Mythos 5 agent used sockpuppets, social engineering, and prompt injection to try to get a maintainer to merge malware.