AI providers overview
Toby uses a large language model for chat, summarization, organization, and background schedules. You configure one or more AI providers in Toby.app → Settings → AI, then pick a provider and model per persona.
Toby supports five AI providers:
| Provider | Best for |
|---|---|
A single OpenAI API key and familiar model ids (gpt-5-mini, gpt-4.1, …) | |
One API key that routes to OpenAI, Anthropic, Google, Amazon, and more via provider/model slugs | |
| Open-source TEE-backed models (DeepSeek, Qwen, GLM, Kimi) via Chutes' OpenAI-compatible endpoint | |
| Hundreds of models from many vendors through a single OpenRouter API key | |
| Run open-source models locally on your machine (no API key needed) |
You only need one provider configured to start chatting. New installs should start with Vercel AI Gateway (guided setup on the Dashboard checklist). Use OpenAI direct for a single-vendor key, Chutes or OpenRouter for open-source catalogs, or Ollama for fully local inference.
Quick setup
Recommended: Dashboard onboarding → Configure AI provider → Connect opens a chooser for guided setup:
- Vercel AI Gateway (recommended) — multi-model chat, free credits, web search & transcription catalogs
- OpenRouter — hundreds of models through one key
Or open Toby.app → Settings:
- Open AI and enter credentials for at least one provider (Vercel AI Gateway, OpenAI, Chutes, OpenRouter, or an Ollama base URL).
- Open Personas, choose AI Provider and Model (the guided Vercel flow configures the built-in Toby persona for you).
Credentials are stored in ~/.toby/credentials.json on your Mac (encrypted at rest; see Configuration overview).
Choosing a provider
| If you want… | Consider |
|---|---|
| Fastest full Toby setup (chat + web search + multi-vendor models) | Vercel AI Gateway (recommended) |
| The simplest path with OpenAI models only | OpenAI (direct) |
| Open-source TEE-backed models with privacy guarantees | Chutes |
| The widest selection of models from many vendors | OpenRouter |
| Fully local, private inference with no API costs | Ollama |
| The same model on either path | Gateway slug openai/gpt-5-mini ≈ direct id gpt-5-mini |
Model ids differ by provider:
- OpenAI (direct) — bare ids, e.g.
gpt-5-mini - Vercel AI Gateway —
provider/modelslugs, e.g.anthropic/claude-sonnet-4.6 - Chutes — slash-delimited ids, e.g.
deepseek-ai/DeepSeek-V3.2-TEE - OpenRouter — slash-delimited ids, e.g.
openai/gpt-5.6-luna - Ollama — local model names, e.g.
llama3.2
After you add credentials, persona and Settings model menus load an up-to-date list from that provider. Chutes and OpenRouter expose a public model catalog, so their model lists are fetched live even before you configure an API key. Until a provider is configured or its catalog is reachable, Toby shows a short curated default list.
Context window display
In chat, Toby may show context usage as ctx N% when it knows the selected model family’s context window. The estimate supports common OpenAI and gateway-routed model families, including Anthropic, Gemini, Nova, Llama, Mistral, DeepSeek, Grok, GLM, and Kimi models.
Context compaction
When a long chat approaches the model’s context limit, Toby can automatically compact the model’s history so the next turn still fits. It prefers cheap reclaim first: clamp runaway blobs, drop superseded re-reads of the same resource, then blank older tool dumps while keeping recent results. Your messages stay intact; the assistant can re-fetch tools if needed. The visible chat transcript is not rewritten. Compaction may briefly reduce prompt-cache reuse for that session after a rewrite.
Auxiliary models
Pretreatment, planning, and other lightweight LLM steps use a smaller auxiliary model tied to the active persona’s provider:
- OpenAI direct:
gpt-4.1-nanoby default - Vercel AI Gateway:
openai/gpt-4.1-nanoby default - Chutes:
deepseek-ai/DeepSeek-V3.2-TEEby default - OpenRouter:
openai/gpt-5.6-lunaby default - Ollama:
llama3.2by default
Override with TOBY_PRETREAT_MODEL (bare id for OpenAI, or a full provider-specific model id). Set TOBY_PRETREAT_DELTA=0 to disable follow-up delta pretreatment.
Default integration providers
Separate from AI: in Toby.app → Settings → Default Providers, you pick which connected integration Toby prefers per category (email, calendar, tasks, and so on). That is unrelated to which LLM vendor you use. See Default providers.
Related topics
- Set up your AI — first-time configure walkthrough
- OpenAI (direct) — single OpenAI API key
- Vercel AI Gateway — one key, many vendors
- Chutes — open-source TEE-backed models
- OpenRouter — hundreds of models from many vendors
- Personas — per-persona provider and model
- Your first chat