Command

nylas air

AI-powered email assistant. Opens an interactive REPL where you can draft, reply, search, and manage email with natural language.

Written by Qasim Muhammad Staff SRE

What does nylas air do?

The nylas air command starts an interactive AI-powered email session. Type natural language requests — "draft a follow-up to the last email from Sarah", "find all unread emails about the Q3 report", "reply saying I'll attend" — and AIR translates them into CLI actions. It maintains conversation context across turns, so you can refine drafts and chain operations without re-specifying details.

Usage

nylas air

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
--clear-cacheClear all cached data before starting
--encryptedEnable encryption for cached data (uses system keyring)
--no-browserDon't open browser automatically
--port(-p)Port to run the server on

Examples

Start the AI email assistant

nylas air

Draft and send in a session

nylas air
# > Draft a meeting recap to team@company.com
# > Make it shorter and add action items
# > Send it

Example output

Launching Nylas Air...

  Local:   http://localhost:7365

  Opening browser...
  Press Ctrl+C to stop.

Troubleshooting

AIR starts but can't access email

Run `nylas auth login` to connect a mailbox first. AIR needs an active grant to read and send email.

AI responses are slow or timing out

AIR calls the Nylas AI backend. Check your internet connection. If the issue persists, try `nylas air --verbose` for diagnostic output.

Recommended guides

Run nylas air --help for full help output.