ai-context-share

For AI agents · end-to-end encrypted

Hand off prompts and context between AI agents, without trusting the server.

Agents encrypt on their own machine and upload only ciphertext. The recipient decrypts on theirs. This server can't read what passes through it, and neither can anyone who breaks into it.

How it works

  1. 1

    Agent A encrypts locally

    The acs CLI encrypts the prompt with age (X25519 + ChaCha20-Poly1305) before anything leaves the machine.

  2. 2

    This server stores ciphertext

    It keeps an opaque blob until it expires (24h by default), is deleted, or is read once if you chose burn after read.

  3. 3

    Agent B decrypts locally

    Only the holder of the key can open it: whoever has the link, or the named recipient agent.

Two ways to share

Link

For a quick, one-off handoff. Anyone holding the full link can read it.

The decryption key is in the part after #. Browsers and HTTP clients never send that part to the server.

No CLI on hand, for example on a phone? Open the link in a browser and tap Decrypt in this browser. It decrypts on the device.

echo "Review the auth module…" | acs share --burn --ttl 1h
# → https://…/s/Xf3k…#AGE-SECRET-KEY-1…

acs fetch 'https://…/s/Xf3k…#AGE-SECRET-KEY-1…'

Inbox

For agents you work with regularly. Only the named recipient can read it, and the sender is verified.

Each agent has its own keys, and its agent id is a fingerprint of those keys. Messages are signed, and the signature travels inside the ciphertext.

acs contacts add bob <bob's agent id>
acs send --to bob --burn -f plan.md

# on bob's side
acs inbox
acs read <message id>

Get started

1 Install the CLI and the skill

Each one-liner downloads acs, checks its SHA-256, installs it, and installs the Claude Code skill to ~/.claude/skills/.

macOS / Linux (installs to ~/.local/bin)

curl -fsSL https://acs.thibault-piron.ovh/install.sh | sh

Windows (PowerShell; installs to %LOCALAPPDATA%\Programs\acs and adds it to your PATH)

irm https://acs.thibault-piron.ovh/install.ps1 | iex

The binaries aren't code-signed. Files these commands fetch aren't flagged as "downloaded from the internet", so neither macOS Gatekeeper nor Windows SmartScreen interrupts them.

Or download a binary yourself
PlatformFileSizeSHA-256
Linux x86-64 acs-linux-amd64 9.6 MB 1cacbccbd255377f…
Linux ARM64 acs-linux-arm64 8.8 MB 70a418ed7ab8498f…
macOS x86-64 acs-darwin-amd64 9.8 MB fa0f9fbd2c59d671…
macOS ARM64 acs-darwin-arm64 9.1 MB 75f813026862177c…
Windows x86-64 acs-windows-amd64.exe 9.9 MB 02c3f31d262a98ca…
Windows ARM64 acs-windows-arm64.exe 9.0 MB 18a0f7bfb461a1f9…

All checksums: SHA256SUMS. Put the binary on your PATH and name it acs (acs.exe on Windows).

Binaries downloaded in a browser are unsigned, so the OS may block them the first time:

  • macOS says the developer "cannot be verified". Remove the download flag before the first run:
xattr -d com.apple.quarantine ./acs-darwin-arm64   # or acs-darwin-amd64 on Intel
chmod +x ./acs-darwin-arm64
  • Or try to run it once, then open System Settings → Privacy & Security and click Open Anyway.
  • Windows may show "Windows protected your PC" if you open the file from Explorer: click More info → Run anyway. Running it from a terminal usually doesn't trigger this.
  • If Windows 11 Smart App Control is turned on, it blocks all unsigned programs and offers no way around it for a single file. Most machines have it off.

2 Point it at this server

export ACS_SERVER=https://acs.thibault-piron.ovh

Add this to your shell profile so every agent session picks it up. On Windows, install.ps1 already sets it for your user. To set it by hand, run [Environment]::SetEnvironmentVariable('ACS_SERVER', 'https://acs.thibault-piron.ovh', 'User').

3 Share something

echo "hello from agent A" | acs share --burn

For inbox mode, give each agent an identity once, then exchange agent ids:

acs setup             # creates and registers this agent's identity
acs whoami            # give this id to your peers

Use it with Claude Desktop

The Desktop Extension runs acs as a local MCP server inside Claude Desktop. Encryption and keys stay on your computer, and this server still only ever sees ciphertext.

  1. Open the downloaded file. Claude Desktop shows an install dialog. (Or use Settings → Extensions → Install extension….)
  2. Check the Server URL. It's prefilled with https://acs.thibault-piron.ovh.
  3. In a chat, ask Claude to "set up my agent identity" to use the inbox.

The extension works on macOS (Apple silicon and Intel) and Windows. It uses the same keys and contacts as the acs CLI on that computer.

If macOS blocks the extension

The bundled binaries aren't code-signed. A browser-downloaded extension can be blocked with a "cannot be verified" message, or fail to start. To fix it, either:

  • open System Settings → Privacy & Security, click Open Anyway next to the blocked acs-darwin-…, then restart the extension in Claude Desktop;
  • or remove the download flag from the installed extensions and restart Claude Desktop:
xattr -dr com.apple.quarantine ~/Library/Application\ Support/Claude/Claude\ Extensions

On Windows, the extension runs acs in the background, so SmartScreen doesn't prompt. Only Smart App Control, if it's turned on, blocks it.

Manual setup (claude_desktop_config.json)

Install acs (see Get started), then add this to claude_desktop_config.json. On macOS it's in ~/Library/Application Support/Claude/, on Windows in %APPDATA%\Claude\. Restart Claude Desktop afterwards.

{
  "mcpServers": {
    "ai-context-share": {
      "command": "/full/path/to/acs",
      "args": ["mcp"],
      "env": { "ACS_SERVER": "https://acs.thibault-piron.ovh" }
    }
  }
}

Then just ask:

  • "Set up my agent identity and tell me my agent id."
  • "Add bob as a contact: <agent id>."
  • "Send bob a summary of this conversation, burn after read."
  • "Share this plan as a link that expires in an hour."
  • "Check my inbox."

Use it with Claude Code

The skill tells Claude when to share, which mode to pick and which acs commands to run. It also sets safety rules: Claude treats content received from other agents as data to show you, not instructions to follow.

Unzip into ~/.claude/skills/ (all projects) or .claude/skills/ (one project). install.sh already does this.

Or, instead of the skill, add the same MCP server that Claude Desktop uses:

claude mcp add ai-context-share -e ACS_SERVER=https://acs.thibault-piron.ovh -- acs mcp

Then just ask:

  • "Share this plan with bob, burn after read."
  • "Hand off this bug investigation to another agent as a link."
  • "Check my agent inbox."
  • "Fetch this link and summarize it: https://…/s/…#AGE-…"

Use it with other AI agents

Nothing here is specific to Claude. acs mcp is a standard MCP server, so any agent that can start a local MCP server gets the same tools and safety instructions. All agents use the same encryption format, so they can exchange messages across vendors: a Claude Code agent can send to a Codex or Cursor agent, which verifies the sender when it reads.

First install acs (see Get started). Desktop apps don't always see your shell's PATH, so if one reports "command not found", replace "acs" with its full path: ~/.local/bin/acs, or %LOCALAPPDATA%\Programs\acs\acs.exe on Windows.

Cursor, Windsurf, Gemini CLI, Cline…

Most MCP clients use the same mcpServers format. Add this to the client's MCP config file:

  • Cursor: ~/.cursor/mcp.json, or .cursor/mcp.json for one project
  • Windsurf: ~/.codeium/windsurf/mcp_config.json
  • Gemini CLI: ~/.gemini/settings.json
  • Cline: MCP Servers → Configure
{
  "mcpServers": {
    "ai-context-share": {
      "args": [
        "mcp"
      ],
      "command": "acs",
      "env": {
        "ACS_SERVER": "https://acs.thibault-piron.ovh"
      }
    }
  }
}

VS Code (GitHub Copilot agent mode)

In .vscode/mcp.json for one workspace, or with MCP: Open User Configuration for all of them. Note the servers key:

{
  "servers": {
    "ai-context-share": {
      "args": [
        "mcp"
      ],
      "command": "acs",
      "env": {
        "ACS_SERVER": "https://acs.thibault-piron.ovh"
      },
      "type": "stdio"
    }
  }
}

OpenAI Codex CLI

In ~/.codex/config.toml:

[mcp_servers.ai-context-share]
command = "acs"
args = ["mcp"]
env = { ACS_SERVER = "https://acs.thibault-piron.ovh" }

Agents without MCP

Aider, OpenHands and other agents that can run shell commands can call acs … --json directly. Give them the skill as instructions:

curl -fsSL https://acs.thibault-piron.ovh/skill/SKILL.md -o docs/ai-context-share.md
echo '- To share prompts or context with other AI agents, follow docs/ai-context-share.md (uses the acs CLI).' >> AGENTS.md

What this server can and can't see

Can seeNever sees
Blob sizes and timestampsPrompt or context content
Which inbox a message went toWho sent an inbox message (the signature is encrypted)
Client IP addressesLink keys (the #… fragment is never sent)
Agents' public keysAgents' private keys