Command

nylas agent account create

The nylas agent account create command provisions a managed email address (e.g., support@yourapp.nylas.email) that can both send transactional mail and receive messages, with no OAuth handshake or third-party mailbox. Pass --app-password to enable IMAP/SMTP for a standard mail client. Replaces the deprecated nylas inbound create.

Written by Qasim Muhammad Staff SRE

What does nylas agent account create do?

The nylas agent account create command provisions a managed email address (e.g., support@yourapp.nylas.email) that can both send transactional mail and receive messages, with no OAuth handshake or third-party mailbox. Pass --app-password to enable IMAP/SMTP for a standard mail client. Replaces the deprecated nylas inbound create.

Usage

nylas agent account create <email>

Flags

FlagDescription
--jsonOutput as JSON
--no-colorDisable color output
--verbose(-v)Enable verbose output
--configCustom config file path
--help(-h)Show help for the command
--limitLimit results (most list commands)
--yes(-y)Skip confirmations
--app-passwordSet settings.app_password for IMAP/SMTP access
--policy-idAttach a policy on creation

Examples

Create a support identity

nylas agent account create support@yourapp.nylas.email
# Provisions support@yourapp.nylas.email with provider=nylas

Create with IMAP/SMTP credential

nylas agent account create me@yourapp.nylas.email \
  --app-password 'ValidAgentPass123ABC!'
# Mail clients can now connect over IMAP/SMTP

Troubleshooting

App password rejected

Must be 18-40 printable ASCII chars (no spaces) with at least one uppercase letter, one lowercase letter, and one digit.

Migrating from nylas inbound create <prefix>

Pass the full email address now (e.g., support@yourapp.nylas.email), not just the prefix.

Recommended guides

AgentMail vs Nylas vs Cloudflare Email

Compare AgentMail, Cloudflare Email for Agents, and Nylas Agent Accounts. Feature matrix, pricing, MCP support, and a decision guide for AI agent email in 2026.

Email Prompt Injection Defense

Defend AI email agents against prompt injection attacks. Input separation, capability sandboxing, human-in-the-loop approvals, and audit logging patterns.

Mailtrap Alternative for Real Inbox Testing

Compare Mailtrap, Mailosaur, and Nylas Agent Accounts for testing transactional email flows with real inbox delivery.

Parse Inbound Email Webhooks

Register inbound email webhooks, verify signatures, and parse message.created payloads into JSON your app can process.

Cypress Email Testing

Test password resets, magic links, and OTP emails in Cypress with a real inbox, Nylas CLI JSON output, and isolated agent accounts.

Test Email Webhooks Locally

Test Nylas email webhooks locally with tunnel setup, signed payload checks, trigger discovery, and replayable fixtures before shipping handlers.

Agent-to-Agent Email Communication

Two AI agents, two managed inboxes, one protocol. Create agent accounts with Nylas CLI and exchange structured JSON messages — no shared database needed.

Stop Your AI Agent From Going Rogue

Terminate rogue AI agent sessions at the connector layer. Outbound blocks, auto-reply kill switches, and prompt-injection containment — all before SMTP.

Install Nylas Skills for AI Coding Agents

Install nylas-cli and nylas-api skills in Claude Code, Cursor, Codex CLI, Windsurf, and 30+ AI coding agents. One command adds email and calendar tools.

Create an AI Agent Email Identity

Set up a managed email identity for an AI agent. Create a dedicated inbox, send and receive in 2 minutes — no OAuth setup or third-party mailbox needed.

Build an AI Email Triage Agent

Build an AI agent that reads your inbox, classifies emails by urgency, drafts replies, and archives noise. Python + Nylas CLI + any LLM. Full code included.

Receive Email Without an SMTP Server

Create a managed agent email account and process incoming messages via webhooks — no Postfix, no MX records. Uses nylas agent create and monitor commands.

Extract OTP Codes from Email — Skip the Inbox

Pull 2FA verification codes from email without opening your inbox. The nylas otp get command copies the latest code to your clipboard across all providers.

Give Your AI Coding Agent an Email Address

Connect Claude Code, Cursor, OpenAI Codex CLI, Windsurf, and OpenClaw to a real email account via MCP. Step-by-step setup for each tool using Nylas CLI.

Send Email from Linux/Manus Sandbox Without SMTP

Send email from a Linux or Manus sandbox over HTTPS when SMTP ports 25, 465, and 587 are blocked. No Postfix or sendmail — Nylas CLI handles delivery.

Manus AI Email Research Agent

Use Manus AI to deep-search your inbox, summarize long email threads, extract decisions and action items, and compile research reports with Nylas CLI.

Build an Email Support Agent with Manus AI

Build a Manus AI support agent that polls a shared inbox, matches tickets to knowledge base articles, drafts context-aware replies, and escalates risk.

Reach Inbox Zero with Manus AI

Reach inbox zero with Manus AI and Nylas CLI. Triage unread messages by urgency, auto-categorize threads, draft replies, and bulk-archive noise in one go.

Mail Manus: Automate Email from CLI

Compare Mail Manus forwarding with direct inbox access. Learn when to add the Nylas CLI Skill for search, sending, follow-ups, and calendar workflows.

CI/CD Email Alerts with PowerShell

Send build failure alerts, deployment reports, and test results from GitHub Actions, Azure DevOps, and Jenkins pipelines using PowerShell and Nylas CLI.

Why AI Agents Need Email Addresses: Identity, Verification, and Agent-to-Agent Communication

AI agents use email as their primary identity on the internet. Covers signups, OTP verification, agent-to-agent messaging, and building identity trust chains.

Create a Manus Skill: Email & Calendar Workflow

Create a Manus Skill that installs Nylas CLI in the sandbox and teaches your agent email, calendar, and contact workflows via SKILL.md and setup scripts.

E2E Email Testing with Playwright

Test password reset, invitation, and verification emails end-to-end. Poll with Nylas CLI, verify content in Playwright, and click links. No Gmail config needed.

AI Agent CLI for Email and Calendar

Build an AI agent CLI for email and calendar with Nylas CLI subprocess commands, JSON output, and no provider-specific API clients.

Run nylas agent account create --help for full help output.