devto 2026-06-11 원문 보기 ↗
Someone on Reddit asked me this today, and honestly, we went through the exact same struggle. So here's the full breakdown of what's going wrong and how to fix it.
You've set up AgentMail. You've got your API key. You've added it to ~/.hermes/config.yaml. Hermes says it can see the MCP AgentMail service running. But when you ask it to check your inbox... nothing. Or worse, it gives you a 403.
This is one of the most frustrating setup experiences with Hermes Agent. Here's why it happens and how to actually fix it.
The person on Reddit described it perfectly:
"How do you get Hermes to use AgentMail? I have set it up as per the instructions but for the love of God I can't get Hermes (local LLM) to use it, even when I give it the commands and it tells me it can see the MCP Agent mail service running. I have never struggled with any AI things this hard!!"
We hit the same wall today. Here's what we found.
When you generate an API key from the AgentMail Console, it might not have the right permissions. A 403 (not 401) means your key is valid but has no permissions. The key needs at minimum:
inbox_readmessage_readmessage_sendFix: Go to console.agentmail.to → API Keys → verify permissions are granted.
Even with a valid API key, AgentMail requires the account email to be verified. Check that inbox for a verification email from AgentMail and click the link.
The API key must be in ~/.hermes/config.yaml under the agentmail: section:
agentmail:
api_key: "am_us_..."
Not in environment variables. Not in a separate file. And the key name is api_key, not am_key or token.
Go to https://agentmail.to and sign up. You can use any email provider — Gmail, Outlook, Hotmail, whatever. AgentMail will send a verification email to whatever address you use.
yourname@agentmail.to)inbox_read, message_read, and message_send permissionsEdit ~/.hermes/config.yaml:
agentmail:
api_key: "am_us_...here"
Ask Hermes: "Check my agent inbox for new emails."
If it works, you'll see your inbox listed with any unread messages. If you get a 403, go back to Step 2 — it's a permissions issue.
The raw SDK works, but a CLI helper makes life easier:
python3 ~/.hermes/scripts/agentmail_cli.py triage
This lists all inboxes with unread message counts and previews. Much easier than asking Hermes to debug the SDK every time.
If you want a CLI email solution that works with Hermes and your existing email, Himalaya is a solid alternative. It uses IMAP/SMTP directly.
Works with: Gmail, Yahoo, Fastmail, ProtonMail, and most IMAP providers.
Does NOT work well with: Outlook/Hotmail. Microsoft no longer allows app-specific passwords for IMAP access, and the OAuth2 route requires Azure AD app registration which is tedious and time-consuming.
# Install
brew install himalaya
# Configure
himalaya account configure
# Use from Hermes
himalaya envelope list
himalaya message read 42
~/.hermes/config.yaml as agentmail.api_key
The whole process should be easier. Hopefully this saves someone the headache we went through today.