RO

rvacyber/openclaw-protonmail-skill

Developer tools
18 stars Quality 72 Trend 30MIT

OpenClaw skill for ProtonMail integration via Proton Mail Bridge (IMAP/SMTP). This is beta software with limited testing — we're actively seeking feedback to improve reliability and identify edge...

Overview

This skill is no longer developed or supported by RVA Cyber. It is kept here for reference only; please don't rely on it for new deployments. Connect your OpenClaw agent to ProtonMail via Proton Mail Bridge for secure email management. ⚠️ : This skill is in active development with limited production testing. Core functionality (read, send, search) is working, but edge cases and real-world usage patterns are still being validated. We're actively seeking feedback from early adopters to identify issues and improve reliability before a stable 1.0 release. Please report bugs and share your experience! ✅ : We reviewed community scanner feedback and shipped hardening updates: - Removed insecure TLS bypass config (rejectUnauthorized: false) - Enforced localhost-only Bridge hosts (127.0.0.1, localhost, ::1) - Hardened IMAP query parsing with strict input validation/sanitization See CHANGELOG.md and PR #2 for full details.

README

⚠️ No longer maintained. This skill is no longer developed or supported by RVA Cyber. It is kept here for reference only; please don’t rely on it for new deployments.

ProtonMail Skill for OpenClaw

Connect your OpenClaw agent to ProtonMail via Proton Mail Bridge for secure email management.

⚠️ Beta Software: This skill is in active development with limited production testing. Core functionality (read, send, search) is working, but edge cases and real-world usage patterns are still being validated. We’re actively seeking feedback from early adopters to identify issues and improve reliability before a stable 1.0 release. Please report bugs and share your experience!

✅ Security Feedback Response (2026-02-26): We reviewed community scanner feedback and shipped hardening updates:

  • Removed insecure TLS bypass config (rejectUnauthorized: false)
  • Enforced localhost-only Bridge hosts (127.0.0.1, localhost, ::1)
  • Hardened IMAP query parsing with strict input validation/sanitization

See CHANGELOG.md and PR #2 for full details.


Table of Contents


Overview

This skill enables OpenClaw to read, send, and manage emails through your ProtonMail account using the official Proton Mail Bridge. Bridge provides local IMAP/SMTP access to your encrypted ProtonMail account while maintaining end-to-end encryption.

Features

  • ✉️ Read emails (inbox, sent, folders)
  • 📤 Send emails (plain text and HTML)
  • 💬 Reply to emails
  • 🔍 Search emails (from, subject, body, date filters)
  • 📎 Read attachments (sending attachments: coming soon)
  • 🔒 Secure: Uses official Proton Bridge, credentials stored locally

Requirements

  • Proton Mail Bridge — Download from Proton
  • ProtonMail account (Free or paid)
  • OpenClaw v2024.1.0+
  • Node.js 18+ (for development)

Installation

1. Install Proton Mail Bridge

macOS (Homebrew)

brew install --cask proton-mail-bridge

Linux / Windows

Download from https://proton.me/mail/bridge

2. Configure Proton Mail Bridge

  1. Launch Proton Mail Bridge

    open -a "Proton Mail Bridge"  # macOS
    # or launch from Applications
    
  2. Sign in with your ProtonMail account

    • Enter your ProtonMail email and password
    • Complete any 2FA if enabled
  3. Skip email client setup

    • Bridge will show “Select your email client” (Apple Mail, Outlook, Thunderbird, Other)
    • Click “Setup later” — we’re connecting OpenClaw directly, not a desktop email client
  4. Get your Bridge credentials

    • Open Bridge settings/preferences
    • Select your account (e.g., [email protected])
    • Go to “Mailbox configuration” or “IMAP/SMTP settings”
    • Click “Show password” to reveal the Bridge-generated password
    • Important: This is NOT your ProtonMail password — it’s a separate password Bridge generates
  5. Note your connection settings:

    • IMAP: 127.0.0.1:1143
    • SMTP: 127.0.0.1:1025
    • Username: [email protected]
    • Password: Bridge-generated password (from step 4)

3. Install the Skill

# Clone the repo
git clone https://github.com/rvacyber/openclaw-protonmail-skill.git
cd openclaw-protonmail-skill

# Install dependencies
npm install

# Link to OpenClaw skills directory
npm run install-skill

4. Configure OpenClaw

Add to your OpenClaw config (~/.openclaw/openclaw.json):

{
  "skills": {
    "entries": {
      "protonmail": {
        "enabled": true,
        "env": {
          "PROTONMAIL_ACCOUNT": "[email protected]",
          "PROTONMAIL_BRIDGE_PASSWORD": "bridge-generated-password"
        }
      }
    }
  }
}

Important Notes:

  • Use skills.entries.protonmail (not skills.protonmail)
  • Credentials are stored locally in your OpenClaw config
  • Never commit your config with real credentials to version control
  • The Bridge password is separate from your ProtonMail password

Usage

Once installed, OpenClaw can use ProtonMail commands:

You: Check my ProtonMail inbox
Agent: [uses protonmail skill to fetch recent emails]

You: Send an email to [email protected] about the meeting
Agent: [drafts and sends email via ProtonMail]

Commands

The skill provides these tool functions to OpenClaw:

  • protonmail-list-inbox — List recent inbox messages
  • protonmail-search — Search emails by query
  • protonmail-read — Read a specific email by ID
  • protonmail-send — Send a new email
  • protonmail-reply — Reply to an email thread

Upgrade Notice (Security Patch)

If you installed version 0.1.0, upgrade to 0.1.1 when released.

Development

Setup

git clone https://github.com/rvacyber/openclaw-protonmail-skill.git
cd openclaw-protonmail-skill
npm install
npm run dev

Testing

npm test

Project Structure

openclaw-protonmail-skill/
├── SKILL.md          # OpenClaw skill manifest
├── README.md         # This file
├── package.json      # Node.js dependencies
├── src/
│   ├── index.ts      # Main skill entry point
│   ├── imap.ts       # IMAP client for reading emails
│   ├── smtp.ts       # SMTP client for sending emails
│   └── tools.ts      # Tool definitions for OpenClaw
├── test/
│   └── integration.test.ts
└── examples/
    └── config-example.json

Security Feedback Response

We take security findings seriously and act on them quickly.

On 2026-02-26, we reviewed scanner feedback that flagged two potential risks and implemented fixes:

  1. TLS Configuration Hardening

    • Removed insecure TLS override settings.
    • Clarified and enforced localhost-only Bridge networking.
  2. IMAP Search Input Hardening

    • Added input validation (length limits, control-character blocking).
    • Added value allowlisting for parsed search filters.
    • Limited parsing to supported filter operators only.

If you spot additional concerns, open a GitHub issue with reproduction steps and we’ll triage promptly.

Security

  • Proton Bridge runs locally — No third-party services involved
  • End-to-end encryption maintained — Bridge decrypts locally, encrypted in transit to Proton servers
  • Credentials never leave your machine — Stored in OpenClaw config, never logged or transmitted
  • Localhost-only connections — IMAP/SMTP traffic stays on your machine (unencrypted localhost is acceptable)
  • Open source — Audit the code yourself

Security Notes

  • Bridge uses ports 1143 (IMAP) and 1025 (SMTP) on 127.0.0.1 (localhost only)
  • Current implementation uses plain connections (no TLS) because traffic never leaves your machine
  • Bridge password is separate from ProtonMail password (defense in depth)
  • Never commit openclaw.json with real credentials to version control

Contributing

Contributions welcome! Please:

  1. Fork the repo
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

License

MIT License - see LICENSE file for details.

Credits

Created by Jim Staley (@rvacyber) — contact: [email protected].

Inspired by the gog skill for Google Workspace.

Support


Made with 🔐 for the OpenClaw community

View the full README on GitHub

Recommended Tools

Try a different keyword or remove a filter.

Install

npx skillfish add rvacyber/openclaw-protonmail-skill
New to MCP? Start with the mcpskill.org guide →