A

AgentMail CLI

CLI declared

Details
Command
agentmail
Docs
https://docs.agentmail.to/integrations/cli
Authentication
AgentMail API key bearer discovered Get token ↗
env AGENTMAIL_API_KEY /$ agentmail --api-key <key> ...

Fastest path for agents: call POST https://api.agentmail.to/v0/agent/sign-up as shown in llms.txt or the Agent Onboarding guide; the response includes an API key, then verify it with the OTP via POST https://api.agentmail.to/v0/agent/verify. Alternatively, a human can create an account in the AgentMail Console and generate a key under Settings → API Keys as described on the MCP docs. Store it in AGENTMAIL_API_KEY for CLI/SDK use.

AgentMail API key api_key declared Get key ↗
env AGENTMAIL_API_KEY

Generate a key in the dashboard at https://console.agentmail.to, or sign up programmatically with POST https://api.agentmail.to/v0/agent/sign-up (the response includes the key, shown once). Keys look like am_us_…. Send it as Authorization: Bearer <key> on REST requests, as an x-api-key header (or ?apiKey= query) on the MCP server, or via the AGENTMAIL_API_KEY environment variable for the SDKs and CLI.