AI
Run your email's AI on the model you choose
cloudmail's AI runs on Workers AI in your own Cloudflare account. An administrator can pick the model for each task, or route every AI feature to an Anthropic-compatible or OpenAI-compatible gateway.
How model routing works
A model per task
Choose the model for chat, drafts, summaries, triage and search separately.
Any compatible gateway
Anthropic, OpenAI, OpenRouter, Groq, Gemini, Azure OpenAI, DeepSeek, Cloudflare AI Gateway, or a proxy such as LiteLLM or Ollama.
Tested before it is used
Test sends a small text, JSON and tool-call request, and a model that can't do what a task needs is refused.
One click back
Use built-in switches back to Workers AI, and your gateway stays saved.
Keys stay encrypted
Gateway tokens are encrypted at rest and no API ever returns them.
Usage per provider
The Usage tab shows calls and tokens for each provider and each task.
From the command line
In the docs: Bring your own AI gateway.
cloudmail ai status # where AI runs, and each task's model
cloudmail ai models list --task text
cloudmail ai route summary --reset --provider workers-aiQuestions about AI models and gateways
Which AI gateways work with cloudmail?
Any gateway that speaks the Anthropic Messages API or the OpenAI Chat Completions API over public HTTPS. That includes Anthropic, OpenAI, OpenRouter, Groq, Gemini's OpenAI-compatible endpoint, Azure OpenAI, DeepSeek and Cloudflare AI Gateway.
What happens if my gateway is down?
The AI feature that called it pauses, and mail keeps arriving. Falling back to Workers AI is off unless you turn it on.
Who can change the AI provider?
Only a signed-in administrator. An API token can list and test providers but not change them, and no MCP tool can.
One-time licence