invoice-collector
Collect invoices/receipts from Gmail and send a summary email with attachments. Automatically downloads PDF attachments or takes screenshots of emails without PDFs. Use when user wants to gather invoices, receipts, or billing emails and forward them to another address. Requires gogcli (gog) to be configured with Gmail access.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/mintannn/invoice-collectorInvoice Collector
Collect invoices from Gmail and send them as a summary email with all attachments.
Security Considerations
Puppeteer --no-sandbox Flag
This skill uses --no-sandbox when launching Puppeteer/Chromium. This is required in many environments:
- WSL (Windows Subsystem for Linux): Chrome sandbox requires kernel features not available in WSL1/WSL2
- Docker containers: Unless running with
--privilegedor specific seccomp profiles - CI/CD environments: Most runners don't support Chrome's sandbox
Risk: Disabling the sandbox means if a malicious HTML email were rendered, it could potentially execute code outside the browser context.
Mitigation: This skill only renders emails from your own Gmail inbox. The risk is limited to emails you've already received. If you're concerned, review emails before processing or run in an isolated environment.
Installation via curl | tar
The gogcli installation example uses curl -sL ... | tar xz, which is a common pattern but carries supply chain risks if the source were compromised.
Safer alternative (verify checksum):
# Download and verify
curl -sLO https://github.com/steipete/gogcli/releases/latest/download/gogcli_linux_amd64.tar.gz
curl -sLO https://github.com/steipete/gogcli/releases/latest/download/checksums.txt
sha256sum -c checksums.txt --ignore-missing
tar xzf gogcli_linux_amd64.tar.gz
mv gog ~/.local/bin/
macOS users: Use brew install steipete/tap/gogcli which handles verification automatically.
Prerequisites & Setup
1. Install gogcli
# Linux (download binary)
curl -sL https://github.com/steipete/gogcli/releases/latest/download/gogcli_linux_amd64.tar.gz | tar xz
mv gog ~/.local/bin/
# macOS
brew install steipete/tap/gogcli
2. Setup Google OAuth
- Go to Google Cloud Console
- Create project → Enable Gmail API
- Create OAuth credentials (Desktop app)
- Download JSON
gog auth credentials ~/path/to/client_secret.json
gog auth add [email protected]
3. Install Puppeteer (for email screenshots)
cd /tmp && npm install puppeteer
4. Install Japanese fonts (optional, for JP emails)
sudo apt install fonts-noto-cjk
Usage
Generic Invoice Search
Search for any invoice/receipt without specifying specific senders:
export GOG_ACCOUNT="[email protected]"
export GOG_KEYRING_PASSWORD="your-password"
# Search all invoices in date range
gog gmail search '(invoice OR receipt OR 請求書 OR 領収書 OR billing OR payment) after:2026/01/01 before:2026/02/01'
# Search with specific criteria
gog gmail search 'subject:(invoice OR receipt) has:attachment after:2026/01/01'
Workflow
- Search - Find invoice emails
- Download - Get PDFs or screenshot emails
- Summarize - Create summary with amounts
- Send - Email to destination with attachments
Step 1: Search Invoices
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-mintannn-invoice-collector": {
"enabled": true,
"auto_update": true
}
}
}