Mailclaw logo

Mailclaw

Community
missuo
mailclaw

Read, search, send, and manage emails from the MailClaw inbox via the local CLI. Use when the user asks to check emails, read messages, search inbox, find emails from a sender, review recent correspondence, or send/reply to emails.

Overview

Publishermissuo
Repositorymailclaw
Skill namemailclaw
Stars
57
Forks
7
Bundled files
Instructions only
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by missuo on GitHub. Read the source before you install it.

Installation

Install the Mailclaw AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/missuo/mailclaw/tree/main/skills/mailclaw
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/missuo/mailclaw.git /tmp/mailclaw
mkdir -p .claude/skills
cp -r /tmp/mailclaw/skills/mailclaw .claude/skills/mailclaw
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Mailclaw in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Mailclaw on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Mailclaw is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

MailClaw - Binary CLI

You have access to the local mailclaw binary CLI. Use it to read, search, and manage emails. Do not call the MailClaw HTTP API directly with curl unless the user explicitly asks for raw API requests.

By default, if mailclaw is missing, install it automatically and then continue the task.

Prerequisite

Before doing anything else, verify the CLI exists and meets the minimum version:

bash
mailclaw --version
  • Minimum version for send: The send command requires CLI version >= 1.0.1. If the installed version is older, upgrade it using the install flow below before proceeding.
  • If mailclaw is missing on macOS, install it with Homebrew.
  • If mailclaw is missing on Linux, download the latest release binary and install it to /usr/local/bin/mailclaw.
  • On Windows, do not guess an install flow here. Ask the user to install the CLI manually or provide the binary path.
  • Once the binary is available, use it for all inbox operations.

Automatic install flow

Run the official install script, which handles both macOS (Homebrew) and Linux (GitHub Releases) automatically:

bash
curl -fsSL https://raw.githubusercontent.com/missuo/mailclaw/main/install.sh | bash
  • On macOS, the script installs via brew tap owo-network/brew && brew install owo-network/brew/mailclaw.
  • On Linux, the script detects the architecture, downloads the latest release binary, and installs it to /usr/local/bin/mailclaw.
  • After installation, the script prompts the user to configure host and API token interactively.
  • If writing to /usr/local/bin fails, the script will request elevated privileges automatically.
  • On Windows, do not run the install script. Ask the user to install the CLI manually or provide the binary path.
  • Reuse the installed CLI on future invocations unless the user asks for a specific version or a source build.

Configuration

Use the CLI to manage config instead of reading or writing ~/.mailclaw/config.json manually.

bash
# Save credentials
mailclaw config set --host "https://mailclaw.example.com" --api-token "your-api-token-here"

# Show current config state
mailclaw config show --json

# Verify the configured host is reachable
mailclaw health --json
  • If config is missing, ask the user to provide their MailClaw Host and API Token, then save them with mailclaw config set.
  • The CLI also supports global overrides --host <HOST> and --api-token <TOKEN>, but prefer persisted config unless the user wants a one-off override.
  • On Windows, ask the user for the CLI path if mailclaw is not already available on PATH.

Available Commands

List emails (metadata only)

bash
mailclaw list [--limit N] [--offset N] [--from sender@example.com] [--to inbox@example.com] [--q keyword] [--after 2026-03-01] [--before 2026-03-11] [--json]

Returns email summaries without body content. Use this for overview and browsing.

Export emails (with full content)

bash
mailclaw export [same filters as list] [--json]

Returns full emails including text_content and html_content. Use this when the user wants body content for multiple emails.

Get single email

bash
mailclaw get <email_id> [--json]

Returns one full email, including body content and attachments metadata.

List attachments

bash
mailclaw attachments <email_id> [--json]

Lists attachment metadata (id, filename, mime_type, size) for an email.

Download attachment

bash
mailclaw download <email_id> <attachment_id> [-o <path>] [--json]

Downloads one attachment's binary content. Without -o, it saves to the attachment's original filename in the current directory.

Delete email

bash
mailclaw delete <email_id> [--json]

Permanently deletes an email. Always confirm with the user before deleting.

Health check

bash
mailclaw health [--json]

Use this to verify the configured host is correct during setup.

JSON Output

When you pass --json, the CLI prints the payload directly, not the original HTTP { success, data } envelope.

Email object (list)

json
{
  "id": "clx...",
  "from_address": "sender@example.com",
  "to_address": "bd@example.com",
  "subject": "Subject line",
  "received_at": 1710000000,
  "has_attachments": false,
  "attachment_count": 0
}

Email object (export / get)

Same as above, plus:

json
{
  "text_content": "Plain text body...",
  "html_content": "<p>HTML body...</p>"
}

Paginated response

json
{
  "emails": [ ... ],
  "total": 128,
  "limit": 20,
  "offset": 0
}

Usage Examples

bash
# List all recent emails
mailclaw list --json

# Search emails containing "partnership"
mailclaw list --q partnership --json

# Filter by recipient and sender
mailclaw list --to bd@example.com --from partner@company.com --json

# Get emails from the last 7 days
mailclaw list --after 2026-03-03 --json

# Export emails with full content
mailclaw export --limit 10 --json

# Read a specific email
mailclaw get clx123abc --json

# Delete an email
mailclaw delete clx123abc --json

Send email

bash
mailclaw send --from "Name <sender@example.com>" --to recipient@example.com --subject "Subject" --text "Body text" [--html "<p>HTML body</p>"] [--cc cc@example.com] [--bcc bcc@example.com] [--reply-to reply@example.com] [--json]

Sends an email via the configured provider (Resend by default). At least --text or --html is required. Multiple --to, --cc, --bcc, and --reply-to addresses can be specified.

JSON response:

json
{
  "id": "<provider-message-id>",
  "provider": "resend"
}

Guidelines

  1. Use the CLI, not curl — All inbox operations should go through mailclaw.
  2. Check config through the CLI — Use mailclaw config show --json and mailclaw config set ...; do not manually edit the config file unless the user explicitly asks.
  3. Verify on first use — After saving a new config, call mailclaw health --json.
  4. Start with list — Use mailclaw list first to get an overview, then drill into specific emails with mailclaw get <id>.
  5. Use filters — Always apply relevant filters (from, to, q, date range) rather than fetching everything.
  6. Prefer text_content — When displaying email content to the user, prefer text_content over html_content for readability.
  7. Pagination — For large inboxes, paginate through results using limit and offset.
  8. Confirm deletes — Always ask the user for confirmation before deleting emails.
  9. Date formatting — The received_at field is a Unix timestamp in seconds. Convert it to a human-readable format when presenting to the user.

Frequently asked questions

What does the Mailclaw AI skill do?

Read, search, send, and manage emails from the MailClaw inbox via the local CLI. Use when the user asks to check emails, read messages, search inbox, find emails from a sender, review recent correspondence, or send/reply to emails.

Why use Mailclaw on TypingMind?

Because you install it once and use it with any model. Mailclaw is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Mailclaw in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/missuo/mailclaw/tree/main/skills/mailclaw. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Mailclaw?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Mailclaw?

As many as you like. As long as a model supports skills, you can use Mailclaw with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Mailclaw AI skill free?

It is published on GitHub by missuo. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇