Source: https://cli.nylas.com/docs/commands/ai-config

# nylas ai config

The nylas ai config command sets up which AI provider the CLI uses for smart compose, inbox analysis, and natural language scheduling. Choose between local models (Ollama, LM Studio) for privacy or cloud providers (OpenAI, Anthropic) for capability.

## Usage

```bash
nylas ai config
```

## Flags

| Flag | Description |
| --- | --- |
| --json | Output as JSON |
| --no-color | Disable color output |
| --verbose(-v) | Enable verbose output |
| --config | Custom config file path |
| --help(-h) | Show help for the command |
| --limit | Limit results (most list commands) |
| --yes(-y) | Skip confirmations |

## Examples

### Interactive setup

```bash
nylas ai config
```

### Check current AI provider

```bash
nylas ai config --json
```

## Troubleshooting

### AI features return errors after config

Verify your AI provider API key is valid. For local models, ensure Ollama or LM Studio is running.

### Smart compose is slow

Local models are slower than cloud providers. Switch to OpenAI or Anthropic for faster responses: `nylas ai config`.

## Recommended guides

[Stop Your AI Agent From Going RogueSet inbound and outbound guardrails on AI agent email. Block phishing senders, archive replies, and contain prompt-injection escalation at the connector layer.](https://cli.nylas.com/guides/stop-ai-agent-going-rogue)

[Install Nylas Skills for AI Coding AgentsInstall nylas-cli and nylas-api skills in Claude Code, Cursor, Codex CLI, Windsurf, and 30+ AI coding agents with one command.](https://cli.nylas.com/guides/nylas-agent-skills)

[Create an AI Agent Email IdentitySet up a managed email identity for an AI agent. Send and receive from a real inbox in 2 minutes — no OAuth, no third-party mailbox.](https://cli.nylas.com/guides/create-ai-agent-email-identity)

[Build an AI Email Triage AgentBuild an AI agent that reads your inbox, classifies emails by urgency, drafts replies, and archives noise. Python + Nylas CLI + any LLM.](https://cli.nylas.com/guides/build-ai-email-triage-agent)

[Nylas vs Recall.ai for AI Agent EmailCompare Nylas CLI and Recall.ai for AI agent email access. One handles email and calendar, the other handles meeting recordings. Pick the right tool.](https://cli.nylas.com/guides/nylas-vs-recall-ai-agent-email)

[Email APIs for AI Agents ComparedCompare Gmail API, Microsoft Graph, SendGrid, Mailgun, Nylas, and direct IMAP for giving AI agents email access. Feature table included.](https://cli.nylas.com/guides/email-apis-for-ai-agents-compared)

[Give Your AI Coding Agent an Email AddressConnect 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.](https://cli.nylas.com/guides/give-ai-agent-email-address)

[Add Nylas as a Manus MCP Server (manus-mcp-cli)Add Nylas to manus-mcp-cli as an MCP server. Step-by-step config so Manus agents can send email and manage calendars in the sandbox.](https://cli.nylas.com/guides/manus-mcp-cli-setup)

[Send Email from Linux/Manus Sandbox Without SMTPSend 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.](https://cli.nylas.com/guides/send-email-manus-sandbox)

[Draft Personalized Emails with Manus AIUse Manus AI to draft personalized emails at scale with Nylas CLI. Feed a contact list, review AI-generated drafts, then send in one command.](https://cli.nylas.com/guides/manus-email-drafter)

[Sync Email to CRM with Manus AIUse Manus AI and Nylas CLI to extract contacts from your inbox, enrich them, and sync to Salesforce, HubSpot, or Pipedrive. No code, no manual data entry.](https://cli.nylas.com/guides/manus-ai-crm-email)

[Email Analytics with Manus AIAnalyze email patterns with Manus AI and Nylas CLI — volume by sender, response times, busiest hours, unread trends, and weekly reports.](https://cli.nylas.com/guides/manus-email-analytics)

[Manus AI Email Research AgentUse Manus AI to deep-search your inbox, summarize email threads, extract decisions, and compile research — all powered by Nylas CLI email commands.](https://cli.nylas.com/guides/manus-email-research)

[Manus AI Meeting SchedulerSchedule meetings with natural language using Manus AI and Nylas CLI. Check availability, find mutual times, and create calendar events.](https://cli.nylas.com/guides/manus-ai-meeting-scheduler)

[Automate Email with Manus AI: Beginner GuideFive-minute quickstart for Manus + Nylas CLI. Install the Skill, authenticate one mailbox, send a test email, list recent mail, and run your first search.](https://cli.nylas.com/guides/manus-ai-email-tutorial)

[Manus AI vs Claude Code for Email AutomationSide-by-side comparison of Manus AI Skills and Claude Code MCP for email and calendar automation. Same Nylas CLI commands, different agent runtimes.](https://cli.nylas.com/guides/manus-vs-claude-code-email)

[Build an Email Support Agent with Manus AIBuild a Manus support agent that polls a support inbox, matches knowledge base articles, drafts replies, and routes risky tickets for human approval.](https://cli.nylas.com/guides/manus-email-support-agent)

[Reach Inbox Zero with Manus AIReach inbox zero with Manus AI. Triage unread email, categorize by urgency, draft replies, and archive — all via natural language and Nylas CLI.](https://cli.nylas.com/guides/manus-inbox-zero)

[Mail Manus: Automate Email from CLICompare Mail Manus forwarding with direct inbox access. Learn when to add the Nylas CLI Skill for search, sending, follow-ups, and calendar workflows.](https://cli.nylas.com/guides/mail-manus-email-automation)

[Design Email Systems for AI Agents: Structured Formats and Machine-Readable TemplatesHow to design email workflows that AI agents can parse reliably. Structured JSON output, machine-readable templates, agent-friendly headers, and MCP server integration.](https://cli.nylas.com/guides/agent-first-email-design)

[Gmail API Limits for AI AgentsGmail API has 250 quota units/sec/user, exponential backoff requirements, OAuth consent screens, and token refresh complexity. How to handle each one.](https://cli.nylas.com/guides/why-gmail-api-breaks-ai-agents)

[Email as Memory for AI AgentsUse email as persistent memory for AI agents — semantic, episodic, and procedural. Search, retrieve, and reason over conversation history with Nylas CLI.](https://cli.nylas.com/guides/email-as-memory-for-ai-agents)

[Why AI Agents Need Email Addresses: Identity, Verification, and Agent-to-Agent CommunicationAI agents use email as their primary identity on the internet. Signups, OTP verification, agent-to-agent messaging, and identity trust chains.](https://cli.nylas.com/guides/email-as-identity-for-ai-agents)

[Why AI Agents Need EmailAI agents need email for authentication, two-way communication, and audit trails. See how Nylas CLI gives agents full inbox access in a single command.](https://cli.nylas.com/guides/why-ai-agents-need-email)

[Audit AI Agent Activity (Claude, Copilot, MCP)Audit logs for AI agent actions across Claude Code, GitHub Copilot, and MCP. Filter by source, export for compliance, surface commands run by agents.](https://cli.nylas.com/guides/audit-ai-agent-activity)

[Create a Manus Skill: Email & Calendar WorkflowCreate a Manus Skill that installs Nylas CLI in the sandbox and teaches your agent email and calendar workflows via SKILL.md and setup scripts.](https://cli.nylas.com/guides/manus-ai-skills)

[Connect OpenClaw to Nylas for Email and CalendarUse OpenClaw's exec tool to run Nylas CLI for inbox access, email sending, calendar scheduling, and contact search. Covers TOOLS.md, exec approvals, and PATH setup.](https://cli.nylas.com/guides/nylas-openclaw-personal-assistant)

[Manage Calendar Events from TerminalCreate, list, update, and delete calendar events from your terminal with Nylas CLI. DST-aware scheduling, timezone conversion, and AI-powered meeting finder.](https://cli.nylas.com/guides/manage-calendar-from-terminal)

[Give AI Agents Email Access via MCPSet up Nylas CLI as an MCP server so Claude, Cursor, Windsurf, and VS Code can read, send, and schedule email and calendar events in one command.](https://cli.nylas.com/guides/ai-agent-email-mcp)

Run `nylas ai config --help` for full help output.
