Simplelogin Cli
by @mcclawd
Create and manage SimpleLogin email aliases from the command line. Protect your real email with secure, private aliases.
clawhub install simplelogin-cliπ About This Skill
name: simplelogin-cli description: Create and manage SimpleLogin email aliases from the command line. Protect your real email with secure, private aliases. license: MIT metadata: clawdbot: emoji: "π§" openclaw: emoji: "π§" os: ["linux", "darwin", "win32"] requires: bins: ["curl", "jq"] install: [] secrets: - path: "~/.openclaw/secrets/simplelogin.json" description: "SimpleLogin API key (fallback if SIMPLELOGIN_API_KEY env var not set)" fields: ["password", "api_key"] clawhub: category: "privacy" tags: ["email", "alias", "privacy", "simplelogin"]
SimpleLogin CLI
Create and manage privacy-focused email aliases with SimpleLogin. Protect your real email address when signing up for services, newsletters, or online shopping.
Features
Prerequisites
1. SimpleLogin account - Sign up at https://simplelogin.io 2. API key - Generate in SimpleLogin dashboard β API Keys 3. Store API key securely - Use environment variable or password manager
Installation
# Install via ClawHub (when published)
clawhub install simplelogin-cliOr clone manually
git clone https://github.com/mcclawd/simplelogin-cli.git
Configuration
Option 1: Environment Variable (Quick)
export SIMPLELOGIN_API_KEY="your-api-key-here"
Option 2: Bitwarden/Password Manager (Recommended)
Store your API key in your password manager:
SimpleLogin API Keyapi_key = your API keyThe skill will automatically retrieve this if Warden or similar credential management is available.
Usage
Create a Custom Alias
# Create alias with your chosen prefix
simplelogin create shopping
β shopping@yourdomain.com
With note
simplelogin create amazon --note "Amazon purchases"
β amazon@yourdomain.com
For specific website
simplelogin create --for github.com
β github-xyz@simplelogin.com
Create Reverse Alias (Send-From)
Reverse aliases let you send emails FROM your alias identity. Create a contact for each recipient:
# Create contact for a recipient
simplelogin contact-create shopping@example.com amazon-support@amazon.com
β Reverse alias: abc123@simplelogin.co
β Send emails to this address β forwards through shopping@example.com
With JSON output (for automation)
export SIMPLELOGIN_JSON=true
simplelogin contact-create shopping@example.com vendor@company.com
β Returns full JSON with reverse_alias and reverse_alias_address
How it works:
1. contact-create calls SimpleLogin API: POST /api/aliases/{id}/contacts
2. API returns reverse_alias field with obfuscated address
3. Send email to reverse alias β forwards through your alias β appears from alias
Use case: Enable refund requests, support inquiries, or any email sending from hidden identity.
Create a Random Alias
# Generate random alias
simplelogin random
β random_word123@simplelogin.com
With note
simplelogin random --note "Newsletter signup"
List Aliases
# Show recent aliases
simplelogin listShow all
simplelogin list --allFilter by domain
simplelogin list --domain simplelogin.com
List Contacts for an Alias
# Show all contacts (recipients) for an alias
simplelogin contact-list shopping@example.com
β amazon-support@amazon.com β abc123@simplelogin.co
β support@store.com β xyz789@simplelogin.co
Manage Aliases
# Disable alias
simplelogin disable shopping@yourdomain.comEnable alias
simplelogin enable shopping@yourdomain.comDelete alias
simplelogin delete shopping@yourdomain.com
Create Contacts & Get Reverse Aliases
When you receive a forwarded email and want to reply to the sender, you need to create a contact for your alias. This gives you a reverse alias email address that forwards through your alias.
# Create contact for an alias (get reverse alias)
simplelogin contact-create
β Reverse alias: xxxxx@simplelogin.co
β Send emails to this address β forwards through your alias
List all contacts for an alias
simplelogin contact-list
β support@example.com β xxxxx@simplelogin.co
Use case: You signed up for a service using shopping@yourdomain.com. They sent an email to your real mailbox. To reply, create a contact:
simplelogin contact-create shopping@yourdomain.com support@example.com
β Reverse alias: bncxsoitvfvzjlxtohfzzq@simplelogin.co
Now send your reply to the reverse alias
echo "My reply" | mail -s "Re: Your subject" bncxsoitvfvzjlxtohfzzq@simplelogin.co
The email will appear to come from shopping@yourdomain.com, keeping your real mailbox private.
API Reference
simplelogin create [prefix]
Create a custom alias.
Options:
prefix - The alias prefix (before @)--note, -n - Add a note/description--for, -f - Suggest alias based on hostname (e.g., amazon.com)--mailbox, -m - Specify mailbox ID (default: first available)Examples:
simplelogin create shopping
simplelogin create amazon --note "Prime member"
simplelogin create --for netflix.com --note "Streaming"
simplelogin random
Create a random alias.
Options:
--note, -n - Add a note/description--word, -w - Use word-based random (default: uuid-style)--mailbox, -m - Specify mailbox IDExamples:
simplelogin random
simplelogin random --note "Forum signup"
simplelogin random --word
simplelogin contact-create
Create a contact (recipient) for an alias, enabling you to send emails FROM the alias identity.
Arguments:
alias - The alias email addresscontact - The recipient email addressReturns: reverse_alias - Send emails to this address to send from your alias
Options:
SIMPLELOGIN_JSON=true for full JSON responseExamples:
simplelogin contact-create amazon@alias.com refunds@merchant.com
simplelogin create --for nordvpn.com support@nordvpn.com # Auto-suggests alias
simplelogin contact-list
List all contacts (recipients) configured for an alias.
Arguments:
alias - The alias email addressReturns: List of contact emails and their reverse aliases
simplelogin list
List your aliases.
Options:
--all, -a - Show all aliases (not just recent)--domain, -d - Filter by domain--enabled - Show only enabled--disabled - Show only disabledsimplelogin disable|enable|delete
Manage existing aliases.
Examples:
simplelogin disable shopping@yourdomain.com
simplelogin enable shopping@yourdomain.com
simplelogin delete temp@simplelogin.com
simplelogin contact-create
Create a contact for an alias and get the reverse alias address.
Arguments:
alias - Your alias email (e.g., shopping@yourdomain.com)contact - The contact's email address (e.g., support@vendor.com)Examples:
simplelogin contact-create shopping@yourdomain.com support@vendor.com
β Contact already exists for support@vendor.com
β Reverse alias: bncxsoitvfvzjlxtohfzzq@simplelogin.co
β Send emails to this address β forwards through shopping@yourdomain.com
What is a reverse alias? A reverse alias is a special email address that, when you send to it, forwards through your SimpleLogin alias and appears to come from your alias (hiding your real mailbox). This is how you reply to emails that were forwarded to you.
simplelogin contact-list
List all contacts for an alias with their reverse aliases.
Arguments:
alias - Your alias emailExamples:
simplelogin contact-list shopping@yourdomain.com
β support@vendor.com β bncxsoitvfvzjlxtohfzzq@simplelogin.co
β info@newsletter.com β atltfoczaqdtplypkciksufkpsnjpiqzvrnqrfptjjyxgomx@simplelogin.co
Agent/JSON Mode
For programmatic use (agents, scripts), set SIMPLELOGIN_JSON=true:
export SIMPLELOGIN_JSON=true
simplelogin create shopping --note "Test"
β {"email":"shopping@yourdomain.com","id":12345,"status":"created"}
Security Notes
Troubleshooting
"API key not found"
Make sure you've set theSIMPLELOGIN_API_KEY environment variable or stored the key in your password manager."No suffixes available"
Check your SimpleLogin account status. Free accounts have limited suffixes.Emails going to spam
This is normal for test emails. Gmail may flag programmatic emails. Check your spam folder.Contributing
Contributions welcome! Please follow the existing code style and add tests for new features.
License
MIT License - See LICENSE file
π‘ Examples
Create a Custom Alias
# Create alias with your chosen prefix
simplelogin create shopping
β shopping@yourdomain.com
With note
simplelogin create amazon --note "Amazon purchases"
β amazon@yourdomain.com
For specific website
simplelogin create --for github.com
β github-xyz@simplelogin.com
Create Reverse Alias (Send-From)
Reverse aliases let you send emails FROM your alias identity. Create a contact for each recipient:
# Create contact for a recipient
simplelogin contact-create shopping@example.com amazon-support@amazon.com
β Reverse alias: abc123@simplelogin.co
β Send emails to this address β forwards through shopping@example.com
With JSON output (for automation)
export SIMPLELOGIN_JSON=true
simplelogin contact-create shopping@example.com vendor@company.com
β Returns full JSON with reverse_alias and reverse_alias_address
How it works:
1. contact-create calls SimpleLogin API: POST /api/aliases/{id}/contacts
2. API returns reverse_alias field with obfuscated address
3. Send email to reverse alias β forwards through your alias β appears from alias
Use case: Enable refund requests, support inquiries, or any email sending from hidden identity.
Create a Random Alias
# Generate random alias
simplelogin random
β random_word123@simplelogin.com
With note
simplelogin random --note "Newsletter signup"
List Aliases
# Show recent aliases
simplelogin listShow all
simplelogin list --allFilter by domain
simplelogin list --domain simplelogin.com
List Contacts for an Alias
# Show all contacts (recipients) for an alias
simplelogin contact-list shopping@example.com
β amazon-support@amazon.com β abc123@simplelogin.co
β support@store.com β xyz789@simplelogin.co
Manage Aliases
# Disable alias
simplelogin disable shopping@yourdomain.comEnable alias
simplelogin enable shopping@yourdomain.comDelete alias
simplelogin delete shopping@yourdomain.com
Create Contacts & Get Reverse Aliases
When you receive a forwarded email and want to reply to the sender, you need to create a contact for your alias. This gives you a reverse alias email address that forwards through your alias.
# Create contact for an alias (get reverse alias)
simplelogin contact-create
β Reverse alias: xxxxx@simplelogin.co
β Send emails to this address β forwards through your alias
List all contacts for an alias
simplelogin contact-list
β support@example.com β xxxxx@simplelogin.co
Use case: You signed up for a service using shopping@yourdomain.com. They sent an email to your real mailbox. To reply, create a contact:
simplelogin contact-create shopping@yourdomain.com support@example.com
β Reverse alias: bncxsoitvfvzjlxtohfzzq@simplelogin.co
Now send your reply to the reverse alias
echo "My reply" | mail -s "Re: Your subject" bncxsoitvfvzjlxtohfzzq@simplelogin.co
The email will appear to come from shopping@yourdomain.com, keeping your real mailbox private.
βοΈ Configuration
Option 1: Environment Variable (Quick)
export SIMPLELOGIN_API_KEY="your-api-key-here"
Option 2: Bitwarden/Password Manager (Recommended)
Store your API key in your password manager:
SimpleLogin API Keyapi_key = your API keyThe skill will automatically retrieve this if Warden or similar credential management is available.
π Tips & Best Practices
"API key not found"
Make sure you've set theSIMPLELOGIN_API_KEY environment variable or stored the key in your password manager.