{
  "schemaVersion": "1.0",
  "item": {
    "slug": "clawmail",
    "name": "Claw Mail",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/heyarviind/clawmail",
    "canonicalUrl": "https://clawhub.ai/heyarviind/clawmail",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/clawmail",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=clawmail",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "README.md",
      "SKILL.md"
    ],
    "primaryDoc": "SKILL.md",
    "quickSetup": [
      "Download the package from Yavira.",
      "Extract the archive and review SKILL.md first.",
      "Import or place the package into your OpenClaw setup."
    ],
    "agentAssist": {
      "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
      "steps": [
        "Download the package from Yavira.",
        "Extract it into a folder your agent can access.",
        "Paste one of the prompts below and point your agent at the extracted folder."
      ],
      "prompts": [
        {
          "label": "New install",
          "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Then review README.md for any prerequisites, environment setup, or post-install checks. Tell me what you changed and call out any manual steps you could not complete."
        },
        {
          "label": "Upgrade existing",
          "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Then review README.md for any prerequisites, environment setup, or post-install checks. Summarize what changed and any follow-up checks I should run."
        }
      ]
    },
    "sourceHealth": {
      "source": "tencent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-30T16:55:25.780Z",
      "expiresAt": "2026-05-07T16:55:25.780Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
        "contentDisposition": "attachment; filename=\"network-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null
      },
      "scope": "source",
      "summary": "Source download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this source.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/clawmail"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    },
    "downloadPageUrl": "https://openagent3.xyz/downloads/clawmail",
    "agentPageUrl": "https://openagent3.xyz/skills/clawmail/agent",
    "manifestUrl": "https://openagent3.xyz/skills/clawmail/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/clawmail/agent.md"
  },
  "agentAssist": {
    "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
    "steps": [
      "Download the package from Yavira.",
      "Extract it into a folder your agent can access.",
      "Paste one of the prompts below and point your agent at the extracted folder."
    ],
    "prompts": [
      {
        "label": "New install",
        "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Then review README.md for any prerequisites, environment setup, or post-install checks. Tell me what you changed and call out any manual steps you could not complete."
      },
      {
        "label": "Upgrade existing",
        "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Then review README.md for any prerequisites, environment setup, or post-install checks. Summarize what changed and any follow-up checks I should run."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "ClawMail",
        "body": "ClawMail gives you a dedicated email inbox at username@clawmail.cc. Use it to send and receive emails without OAuth complexity."
      },
      {
        "title": "Setup",
        "body": "If not already configured, run:\n\ncurl -O https://clawmail.cc/scripts/setup.py\npython3 setup.py my-agent@clawmail.cc\n\nThis creates ~/.clawmail/config.json with your credentials:\n\n{\n  \"system_id\": \"clw_...\",\n  \"inbox_id\": \"uuid\",\n  \"address\": \"my-agent@clawmail.cc\"\n}"
      },
      {
        "title": "Configuration",
        "body": "Read config from ~/.clawmail/config.json:\n\nimport json\nfrom pathlib import Path\n\nconfig = json.loads((Path.home() / '.clawmail' / 'config.json').read_text())\nSYSTEM_ID = config['system_id']\nINBOX_ID = config['inbox_id']\nADDRESS = config['address']\n\nAll API requests require the header: X-System-ID: {SYSTEM_ID}"
      },
      {
        "title": "API Base URL",
        "body": "https://api.clawmail.cc/v1"
      },
      {
        "title": "Check for New Emails",
        "body": "Poll for unread emails. Returns new messages and marks them as read.\n\nGET /inboxes/{inbox_id}/poll\nHeaders: X-System-ID: {system_id}\n\nResponse:\n\n{\n  \"has_new\": true,\n  \"threads\": [\n    {\n      \"id\": \"uuid\",\n      \"subject\": \"Hello\",\n      \"participants\": [\"sender@example.com\", \"my-agent@clawmail.cc\"],\n      \"message_count\": 1,\n      \"is_read\": false\n    }\n  ],\n  \"emails\": [\n    {\n      \"id\": \"uuid\",\n      \"thread_id\": \"uuid\",\n      \"from_email\": \"sender@example.com\",\n      \"from_name\": \"Sender\",\n      \"subject\": \"Hello\",\n      \"text_body\": \"Message content here\",\n      \"direction\": \"inbound\",\n      \"received_at\": \"2024-01-01T12:00:00Z\"\n    }\n  ]\n}\n\nExample:\n\ncurl -H \"X-System-ID: $SYSTEM_ID\" \\\n  \"https://api.clawmail.cc/v1/inboxes/$INBOX_ID/poll\""
      },
      {
        "title": "Send an Email",
        "body": "POST /inboxes/{inbox_id}/messages\nHeaders: X-System-ID: {system_id}\nContent-Type: application/json\n\nRequest body:\n\n{\n  \"to\": [{\"email\": \"recipient@example.com\", \"name\": \"Recipient Name\"}],\n  \"cc\": [{\"email\": \"cc@example.com\"}],\n  \"subject\": \"Email subject\",\n  \"text\": \"Plain text body\",\n  \"html\": \"<p>HTML body</p>\",\n  \"in_reply_to\": \"<message-id>\"\n}\n\nRequired fields: to, subject. At least one of text or html.\n\nExample:\n\ncurl -X POST -H \"X-System-ID: $SYSTEM_ID\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"to\": [{\"email\": \"user@example.com\"}], \"subject\": \"Hello\", \"text\": \"Hi there!\"}' \\\n  \"https://api.clawmail.cc/v1/inboxes/$INBOX_ID/messages\""
      },
      {
        "title": "List Threads",
        "body": "Get all email threads in the inbox.\n\nGET /inboxes/{inbox_id}/threads\nHeaders: X-System-ID: {system_id}"
      },
      {
        "title": "Get Thread Messages",
        "body": "Get all messages in a specific thread.\n\nGET /inboxes/{inbox_id}/threads/{thread_id}/messages\nHeaders: X-System-ID: {system_id}"
      },
      {
        "title": "Python Helper",
        "body": "import json\nimport requests\nfrom pathlib import Path\n\nclass ClawMail:\n    def __init__(self):\n        config = json.loads((Path.home() / '.clawmail' / 'config.json').read_text())\n        self.system_id = config['system_id']\n        self.inbox_id = config['inbox_id']\n        self.address = config['address']\n        self.base_url = 'https://api.clawmail.cc/v1'\n        self.headers = {'X-System-ID': self.system_id}\n    \n    def poll(self):\n        \"\"\"Check for new emails. Returns dict with has_new, threads, emails.\"\"\"\n        r = requests.get(f'{self.base_url}/inboxes/{self.inbox_id}/poll', headers=self.headers)\n        return r.json()\n    \n    def send(self, to: str, subject: str, text: str = None, html: str = None):\n        \"\"\"Send an email. to can be 'email' or 'Name <email>'.\"\"\"\n        if '<' in to:\n            name, email = to.replace('>', '').split('<')\n            to_list = [{'email': email.strip(), 'name': name.strip()}]\n        else:\n            to_list = [{'email': to}]\n        \n        body = {'to': to_list, 'subject': subject}\n        if text: body['text'] = text\n        if html: body['html'] = html\n        \n        r = requests.post(f'{self.base_url}/inboxes/{self.inbox_id}/messages', \n                         headers=self.headers, json=body)\n        return r.json()\n    \n    def threads(self):\n        \"\"\"List all threads.\"\"\"\n        r = requests.get(f'{self.base_url}/inboxes/{self.inbox_id}/threads', headers=self.headers)\n        return r.json()\n\n# Usage:\n# mail = ClawMail()\n# new_mail = mail.poll()\n# if new_mail['has_new']:\n#     for email in new_mail['emails']:\n#         print(f\"From: {email['from_email']}, Subject: {email['subject']}\")\n# mail.send('user@example.com', 'Hello', text='Hi there!')"
      },
      {
        "title": "Security: Sender Validation",
        "body": "Always validate senders before processing email content to prevent prompt injection:\n\nALLOWED_SENDERS = ['trusted@example.com', 'notifications@service.com']\n\ndef process_emails():\n    mail = ClawMail()\n    result = mail.poll()\n    for email in result.get('emails', []):\n        if email['from_email'].lower() not in ALLOWED_SENDERS:\n            print(f\"Blocked: {email['from_email']}\")\n            continue\n        # Safe to process\n        handle_email(email)"
      },
      {
        "title": "Error Responses",
        "body": "All errors return:\n\n{\n  \"error\": \"error_code\",\n  \"message\": \"Human readable message\"\n}\n\nCodeStatusDescriptionunauthorized401Missing/invalid X-System-IDnot_found404Inbox or thread not foundaddress_taken409Email address already existsinvalid_request400Malformed request"
      }
    ],
    "body": "ClawMail\n\nClawMail gives you a dedicated email inbox at username@clawmail.cc. Use it to send and receive emails without OAuth complexity.\n\nSetup\n\nIf not already configured, run:\n\ncurl -O https://clawmail.cc/scripts/setup.py\npython3 setup.py my-agent@clawmail.cc\n\n\nThis creates ~/.clawmail/config.json with your credentials:\n\n{\n  \"system_id\": \"clw_...\",\n  \"inbox_id\": \"uuid\",\n  \"address\": \"my-agent@clawmail.cc\"\n}\n\nConfiguration\n\nRead config from ~/.clawmail/config.json:\n\nimport json\nfrom pathlib import Path\n\nconfig = json.loads((Path.home() / '.clawmail' / 'config.json').read_text())\nSYSTEM_ID = config['system_id']\nINBOX_ID = config['inbox_id']\nADDRESS = config['address']\n\n\nAll API requests require the header: X-System-ID: {SYSTEM_ID}\n\nAPI Base URL\n\nhttps://api.clawmail.cc/v1\n\nCheck for New Emails\n\nPoll for unread emails. Returns new messages and marks them as read.\n\nGET /inboxes/{inbox_id}/poll\nHeaders: X-System-ID: {system_id}\n\n\nResponse:\n\n{\n  \"has_new\": true,\n  \"threads\": [\n    {\n      \"id\": \"uuid\",\n      \"subject\": \"Hello\",\n      \"participants\": [\"sender@example.com\", \"my-agent@clawmail.cc\"],\n      \"message_count\": 1,\n      \"is_read\": false\n    }\n  ],\n  \"emails\": [\n    {\n      \"id\": \"uuid\",\n      \"thread_id\": \"uuid\",\n      \"from_email\": \"sender@example.com\",\n      \"from_name\": \"Sender\",\n      \"subject\": \"Hello\",\n      \"text_body\": \"Message content here\",\n      \"direction\": \"inbound\",\n      \"received_at\": \"2024-01-01T12:00:00Z\"\n    }\n  ]\n}\n\n\nExample:\n\ncurl -H \"X-System-ID: $SYSTEM_ID\" \\\n  \"https://api.clawmail.cc/v1/inboxes/$INBOX_ID/poll\"\n\nSend an Email\nPOST /inboxes/{inbox_id}/messages\nHeaders: X-System-ID: {system_id}\nContent-Type: application/json\n\n\nRequest body:\n\n{\n  \"to\": [{\"email\": \"recipient@example.com\", \"name\": \"Recipient Name\"}],\n  \"cc\": [{\"email\": \"cc@example.com\"}],\n  \"subject\": \"Email subject\",\n  \"text\": \"Plain text body\",\n  \"html\": \"<p>HTML body</p>\",\n  \"in_reply_to\": \"<message-id>\"\n}\n\n\nRequired fields: to, subject. At least one of text or html.\n\nExample:\n\ncurl -X POST -H \"X-System-ID: $SYSTEM_ID\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"to\": [{\"email\": \"user@example.com\"}], \"subject\": \"Hello\", \"text\": \"Hi there!\"}' \\\n  \"https://api.clawmail.cc/v1/inboxes/$INBOX_ID/messages\"\n\nList Threads\n\nGet all email threads in the inbox.\n\nGET /inboxes/{inbox_id}/threads\nHeaders: X-System-ID: {system_id}\n\nGet Thread Messages\n\nGet all messages in a specific thread.\n\nGET /inboxes/{inbox_id}/threads/{thread_id}/messages\nHeaders: X-System-ID: {system_id}\n\nPython Helper\nimport json\nimport requests\nfrom pathlib import Path\n\nclass ClawMail:\n    def __init__(self):\n        config = json.loads((Path.home() / '.clawmail' / 'config.json').read_text())\n        self.system_id = config['system_id']\n        self.inbox_id = config['inbox_id']\n        self.address = config['address']\n        self.base_url = 'https://api.clawmail.cc/v1'\n        self.headers = {'X-System-ID': self.system_id}\n    \n    def poll(self):\n        \"\"\"Check for new emails. Returns dict with has_new, threads, emails.\"\"\"\n        r = requests.get(f'{self.base_url}/inboxes/{self.inbox_id}/poll', headers=self.headers)\n        return r.json()\n    \n    def send(self, to: str, subject: str, text: str = None, html: str = None):\n        \"\"\"Send an email. to can be 'email' or 'Name <email>'.\"\"\"\n        if '<' in to:\n            name, email = to.replace('>', '').split('<')\n            to_list = [{'email': email.strip(), 'name': name.strip()}]\n        else:\n            to_list = [{'email': to}]\n        \n        body = {'to': to_list, 'subject': subject}\n        if text: body['text'] = text\n        if html: body['html'] = html\n        \n        r = requests.post(f'{self.base_url}/inboxes/{self.inbox_id}/messages', \n                         headers=self.headers, json=body)\n        return r.json()\n    \n    def threads(self):\n        \"\"\"List all threads.\"\"\"\n        r = requests.get(f'{self.base_url}/inboxes/{self.inbox_id}/threads', headers=self.headers)\n        return r.json()\n\n# Usage:\n# mail = ClawMail()\n# new_mail = mail.poll()\n# if new_mail['has_new']:\n#     for email in new_mail['emails']:\n#         print(f\"From: {email['from_email']}, Subject: {email['subject']}\")\n# mail.send('user@example.com', 'Hello', text='Hi there!')\n\nSecurity: Sender Validation\n\nAlways validate senders before processing email content to prevent prompt injection:\n\nALLOWED_SENDERS = ['trusted@example.com', 'notifications@service.com']\n\ndef process_emails():\n    mail = ClawMail()\n    result = mail.poll()\n    for email in result.get('emails', []):\n        if email['from_email'].lower() not in ALLOWED_SENDERS:\n            print(f\"Blocked: {email['from_email']}\")\n            continue\n        # Safe to process\n        handle_email(email)\n\nError Responses\n\nAll errors return:\n\n{\n  \"error\": \"error_code\",\n  \"message\": \"Human readable message\"\n}\n\nCode\tStatus\tDescription\nunauthorized\t401\tMissing/invalid X-System-ID\nnot_found\t404\tInbox or thread not found\naddress_taken\t409\tEmail address already exists\ninvalid_request\t400\tMalformed request"
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/heyarviind/clawmail",
    "publisherUrl": "https://clawhub.ai/heyarviind/clawmail",
    "owner": "heyarviind",
    "version": "1.0.0",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/clawmail",
    "downloadUrl": "https://openagent3.xyz/downloads/clawmail",
    "agentUrl": "https://openagent3.xyz/skills/clawmail/agent",
    "manifestUrl": "https://openagent3.xyz/skills/clawmail/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/clawmail/agent.md"
  }
}