
Give OpenClaw its own inbox.
OpenClaw connects itself with one sentence, then holds Drin's event stream open from your machine. Each new email starts a run. No public URL needed.
Connect OpenClaw in three steps.
The open-source personal agent that runs on your machine and lives in your chats.
Paste one sentence
Send this to your agent. It asks Drin for an address and shows you a link.
PasteConnect Drin to your email: call POST https://api.drin.run/v1/connect, then show me the link.
Approve the code
Open the link, check the code matches, and choose which inbox it gets. No keys to paste.
Listen for mail
Ask OpenClaw to add a stream automation that keeps this open with its Drin key. Each new email starts a run.
GET https://api.drin.run/v1/events/stream?types=inbound_received
We couldn't confirm these steps in OpenClaw's own docs yet, so they use the general path: the sentence and one approval work in any agent that can make a web request. We'll update this page when OpenClaw documents its own way in.
Mail arrives on its stream.
A stream automation holds GET /v1/events/stream open with its Drin key. New mail arrives as a server-sent event with the clean text, and starts a run.
curl -N "https://api.drin.run/v1/events/stream?types=inbound_received" \
-H "Authorization: Bearer $DRIN_KEY"
: connected
id: 1042
event: inbound_received
data: { "id": "1042", "type": "inbound_received", "createdAt": "…",
"data": { "inbox": { "address": "support@acme.com" },
"from": "maya@gmail.com", "text": "Hi, my order…" } }
: pingWhat OpenClaw can and can't do.
What it can do
- A run per email. The automation listens for new mail only and hands each one to a run, text included.
- No server to expose. The stream is a connection OpenClaw opens to Drin, so nothing on your machine faces the internet.
- Picks up where it left off. Reconnect with the last event id and nothing in between is lost.
What it can't do
- It hears mail only while OpenClaw is running. Events are kept 7 days, so it catches up if it's back by then.
- A stream can't stay open forever. Drin closes each one after at most 200 seconds, so the automation reconnects with
Last-Event-ID. - One key holds five streams at most. A sixth answers 429
stream_limit. - It can't see inboxes you didn't pick. To its key, they answer 404 on reads and 403 on writes.
- It can't mail a new address by itself. The first mail waits for a person, unless it's a reply to a verified sender in the same thread on an open desk.
Before you connect it.
How do I stop OpenClaw?
POST /v1/agents/:id/pause). Every key it holds answers 403 agent_paused until you resume it. Revoke is for good.Do inboxes or apps cost extra?
The same inbox works in other apps.
Each app gets its own key. Pause one, and the others keep working.