/install create-email-address
Crustacean Email Gateway Skill
Use this skill when the user asks to manage email for an OpenClaw instance through Crustacean Email Gateway.
Defaults
- API base:
https://api.crustacean.email/api/v1 - Identity file:
/root/.openclaw/identity/device.json - Local token file:
~/.crustacean-email/token.json
These can be overridden with script flags or env vars:
CRUSTACEAN_API_BASEOPENCLAW_IDENTITY_PATHCRUSTACEAN_TOKEN_PATH
Quick workflow
- Register first (challenge-response + PoW + signature):
python3 scripts/register_mailbox.py
- Lost token recovery (already-registered instance, challenge-response + PoW + signature):
python3 scripts/recover_token.py
- Mailbox lookup:
python3 scripts/get_mailbox.py
- Inbox list:
python3 scripts/get_inbox.py
- Inbox message detail:
python3 scripts/get_inbox.py --message-id 550e8400-e29b-41d4-a716-446655440000
- Outbox list:
python3 scripts/get_outbox.py
- Outbox message detail:
python3 scripts/get_outbox.py --message-id 550e8400-e29b-41d4-a716-446655440000
- Status update:
python3 scripts/update_message_status.py 550e8400-e29b-41d4-a716-446655440000 read
- Forwarding settings:
- Show forwarding:
python3 scripts/configure_forwarding.py --json - Enable or update forwarding destination:
python3 scripts/configure_forwarding.py --enable --forward-to-email [email protected] - Disable forwarding:
python3 scripts/configure_forwarding.py --disable
- Show forwarding:
- Send:
python3 scripts/send_message.py --to '["[email protected]"]' --subject 'Hello' --body-text 'Hi there'- HTML body example:
python3 scripts/send_message.py --to '["[email protected]"]' --subject 'Hello' --body-html '\x3Cp>Hi there\x3C/p>' - Optional sender display name:
--from-name 'Claw Agent Email'
Agent behavior rules
- Always attempt token-backed calls using the saved token file.
- If the token file is missing for an already-registered instance, use
recover_token.py. - If the token file is missing and the instance has never been registered, use
register_mailbox.py. - On API failure, report HTTP status +
error.code+error.message. - If the API returns
rate_limited, report theretry_after_secondsvalue clearly. - Treat outbound message
idas the public id used byGET /outbox/{id}. - For queued outbound messages, explain that delivery can happen later when limits allow.
- Use
configure_forwarding.pywhen the user asks to show, enable, change, remove, or disable mailbox forwarding. - Forwarding uses mailbox-token auth, supports only one destination, and has no verification flow.
- Forwarding to the same mailbox address or any
crustacean.emailaddress/subdomain is not allowed. - Forwarded inbound mail is queued through normal outbound send and counts against normal outbound limits.
- Summarize successful responses in concise human-readable bullet points.
- Never request or mention IMAP or SMTP credentials.
Registration implementation contract
The registration script must:
- Read OpenClaw identity JSON.
- POST
/challengewithinstance_id. - Solve PoW using server difficulty with hash input:
instance_id|challenge_nonce|pow
- Sign exact message string:
instance_id:challenge_nonce
- POST
/registerwith:instance_idpublic_key_pemchallenge_nonceproof.signatureproof.pow
- Save bearer token + metadata locally for reuse.
Recovery implementation contract
The recovery script must:
- Read OpenClaw identity JSON.
- POST
/challengewithinstance_id. - Solve PoW using server difficulty with hash input:
instance_id|challenge_nonce|pow
- Sign exact message string:
instance_id:challenge_nonce
- POST
/recoverwith:instance_idchallenge_nonceproof.signatureproof.pow
- Save refreshed bearer token + metadata locally for reuse.
Current limits
- Challenge:
- 10 requests per 10 minutes per IP
- 100 requests per day per IP
- Register:
- 1 registration per day per IP
- 1 registration per day per OpenClaw instance
- Send:
- 1 message per minute per mailbox
- No more than 10 recipients (to + cc + bcc) per message
- 10 messages per day per mailbox for new mailboxes (registered less than 24 hours ago)
- 25 messages per day per mailbox once mailbox age is 24 hours or more
- 200 messages total per day from all mailboxes in the
crustacean.emaildomain POST /sendmay return an outbound message withstatus=queuedimmediately; outbox status can later becomesent, or remain queued when send caps are hit.- Note: these limits are subject to change as the product evolves.
Limitations (current)
- One mailbox per OpenClaw instance.
crustacean.emaildomain only.- Token refresh exists when caller still has a valid bearer token.
- No attachments.
References
- API contract and payload shapes:
references/api.md - Usage patterns and natural language mapping:
references/examples.md
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install create-email-address - After installation, invoke the skill by name or use
/create-email-address - Provide required inputs per the skill's parameter spec and get structured output
What is Create And Use New Agent Email Address?
use this skill when you need to register an openclaw identity with crustacean email gateway, recover a lost bearer token for an already-registered instance,... It is an AI Agent Skill for Claude Code / OpenClaw, with 84 downloads so far.
How do I install Create And Use New Agent Email Address?
Run "/install create-email-address" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Create And Use New Agent Email Address free?
Yes, Create And Use New Agent Email Address is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does Create And Use New Agent Email Address support?
Create And Use New Agent Email Address is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Create And Use New Agent Email Address?
It is built and maintained by Omar (@nycomar); the current version is v1.0.0.