AI Providers

Taskmaster works with 15+ AI providers. You can mix and match — use Anthropic for task generation, Perplexity for research, and a local model for fallback. Bring your own keys and switch models anytime.

Three Model Roles

Taskmaster uses three independent model roles, each configurable with its own provider and model:

RolePurposeDefault
MainTask generation, expansion, updates, and analysisAnthropic Claude Sonnet
ResearchLive web search for current information and citationsPerplexity Sonar
FallbackUsed when the main model fails or is unavailableAnthropic Claude Sonnet

Configuring Models

# Interactive setup — walks through all three roles
tm models --setup

# Set models directly
tm models --set-main claude-sonnet-4-20250514
tm models --set-research sonar
tm models --set-fallback gpt-4o-mini

# View current configuration
tm models

Supported Cloud Providers

ProviderModelsBest for
AnthropicClaude Opus, Sonnet, HaikuGeneral-purpose (recommended default)
OpenAIGPT-4o, o3, o3-miniReasoning-heavy tasks
GoogleGemini Pro, Gemini FlashFast generation, large context
PerplexitySonar, Sonar Deep ResearchResearch with live web access
xAIGrok 4, Grok 3, Grok 2Large codebase context
GroqVarious modelsFast inference
OpenRouter100+ modelsAccess any model through one API
MistralMistral modelsEuropean AI provider
Azure OpenAIGPT models via AzureEnterprise deployments
Amazon BedrockClaude via AWSAWS-native deployments
Google VertexGemini via GCPGoogle Cloud deployments

Local & CLI Providers

Run Taskmaster without sending data to external APIs:

ProviderSetupCost
OllamaInstall Ollama, pull a modelFree, fully offline
LM StudioDownload models locallyFree, fully offline
Claude CodeInstall Claude Code CLIUses your Claude Code subscription
Gemini CLIGoogle accountFree tier available
OpenAI-compatibleAny compatible endpointVaries

For details on local model setup, see Local Models.

Switching Providers

You can change providers at any time without affecting your tasks:

# Switch main model to OpenAI
tm models --set-main gpt-4o

# Switch to a local model
tm models --set-main ollama/llama3

# Use Claude Code (no API key needed)
tm models --set-main claude-code/sonnet

API Key Setup

Each provider requires its own API key. See API Keys for the complete setup guide.

Keys can be configured via:

  • .env file in your project root
  • Environment variables in your shell
  • MCP server config in .mcp.json or editor settings