Command

nylas ai config

Configure AI provider.

Written by Qasim Muhammad Staff SRE

What does nylas ai config do?

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

nylas ai config

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

Examples

The nylas ai config command sets up which AI provider the CLI uses for smart compose, inbox analysis, and natural language scheduling.

Interactive setup

nylas ai config

Check current AI provider

nylas ai config --json

Example output

AI Configuration (~/.config/nylas/config.yaml)

  default_provider: ollama
  ollama.host:      http://localhost:11434
  ollama.model:     llama3.1:8b
  claude.model:     claude-3-5-sonnet-20241022
  fallback:         claude

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

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