| title | Quickstart |
|---|---|
| description | Get your AI agent its own email address in two commands. |
| icon | rocket |
Get your AI agent its own email address in two commands.
- Node.js 20+
- OpenMail account (free, no credit card)
<div className="openmail-prompt-card">
<Prompt
description="Use this pre-built prompt to get started faster."
icon="wand-sparkles"
actions={["copy", "cursor"]}
>
Read https://docs.openmail.sh/quickstart then add OpenMail to our OpenClaw agent:
1. `npm install -g @openmail/cli`
2. Ask the user for their API key (from https://console.openmail.sh/settings/api), inbox name, and display name, then run `openmail setup --api-key "<key>" --mailbox-name "<name>" --display-name "<display name>" --mode notify`
</Prompt>
</div>
<Steps>
<Step title="Install">
```bash
npm install -g @openmail/cli
```
</Step>
<Step title="Setup">
```bash
openmail setup
```
Creates your inbox, writes the skill file to `~/.openclaw/skills/openmail/SKILL.md`, and saves credentials to `~/.openclaw/openmail.env`. Pass `--api-key om_...` to skip the auth prompt.
When setup completes, confirm everything is working:
```bash
openmail status
```
<Note>
**WebSocket bridge** — Setup starts the bridge automatically via systemd (Linux) or launchd (macOS). On Windows, setup prints the command to run manually.
</Note>
</Step>
<Step title="Send an email">
```bash
openmail send --to hello@example.com --subject "Hello from OpenMail" --body "I have my own inbox!"
```
Add files with `--attach` (repeatable):
```bash
openmail send --to hello@example.com --subject "Report" --body "See attached" --attach report.pdf
```
</Step>
</Steps>
openmail messages list --direction inbound
openmail threads list
openmail threads get --thread-id <thread-id>- OpenClaw - See the OpenClaw integration guide and the Skill files tab for SKILL.md and reference files.
- Handle inbound email - Route replies to your agent via WebSocket or webhooks.
- Improve deliverability - Follow warm-up schedules to stay out of spam.
- Explore the API - Full API reference for programmatic workflows.