Command

nylas chat

Launch a web-based AI chat interface for email, calendar, and contacts.

Written by Qasim Muhammad Staff SRE

What does nylas chat do?

The nylas chat command starts a local web server (default port 7367) that provides an AI-powered chat interface in your browser. Ask questions in natural language and the agent reads email, creates calendar events, searches contacts, and sends messages on your behalf. Supports Claude, Codex, and Ollama as AI backends. Includes Slack integration for cross-channel messaging.

Usage

nylas chat [--agent claude|codex|ollama] [--port PORT] [--no-browser]

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
--portPort to run the chat server on (default: 7367)
--no-browserStart server without opening browser
--agentAI agent to use: claude, codex, or ollama
--modelModel name for the ollama agent

Examples

Launch chat with default agent

nylas chat

Use Claude as the AI backend

nylas chat --agent claude

Use a local Ollama model

nylas chat --agent ollama --model llama2

Run on a custom port without opening browser

nylas chat --port 8080 --no-browser

Example output

Starting chat (agent: claude)...
✓ Server running at http://localhost:7367

you › How many unread emails do I have?
nylas › You have 4 unread messages, the most recent from bob@example.com about "Q3 planning".

Troubleshooting

Chat fails to start

Ensure you have authenticated first with `nylas init` or `nylas auth config`.

Agent not found

Install the agent locally. Claude requires `claude` CLI, Ollama requires `ollama` running.

Port already in use

Use --port to specify a different port, e.g. `nylas chat --port 8080`.

Recommended guides

Run nylas chat --help for full help output.