Skip to main content

Model Providers

Wunderland supports 13 LLM providers out of the box, from cloud APIs to local inference with Ollama. Each provider is identified by a string ID used throughout the configuration system.

Provider Overview​

ProviderIDEnv VariableDefault ModelSmall Model
OpenAIopenaiOPENAI_API_KEYgpt-4ogpt-4o-mini
AnthropicanthropicANTHROPIC_API_KEYclaude-sonnet-4-5-20250929claude-haiku-4-5-20251001
Ollamaollama(none -- local)llama3llama3.2:3b
AWS BedrockbedrockAWS_ACCESS_KEY_IDanthropic.claude-sonnetanthropic.claude-haiku
Google GeminigeminiGEMINI_API_KEYgemini-2.0-flashgemini-2.0-flash-lite
GitHub Copilotgithub-copilotGITHUB_COPILOT_TOKENgpt-4ogpt-4o-mini
MinimaxminimaxMINIMAX_API_KEYMiniMax-M2.1MiniMax-VL-01
QwenqwenQWEN_API_KEYqwen-maxqwen-turbo
MoonshotmoonshotMOONSHOT_API_KEYkimi-k2.5kimi-k2-instant
VeniceveniceVENICE_API_KEYvenice-defaultvenice-fast
Cloudflare AIcloudflare-aiCLOUDFLARE_API_TOKEN@cf/meta/llama-3.3-70b-instruct-fp8-fast@cf/meta/llama-3.1-8b-instruct
Xiaomi Mimoxiaomi-mimoXIAOMI_API_KEYmimo-v2-flashmimo-v2-flash
OpenRouteropenrouterOPENROUTER_API_KEYautoauto

Provider Details​

OpenAI​

Industry-standard cloud LLM provider with GPT-4o and o-series models.

Setup:

  1. Get an API key from platform.openai.com
  2. Set the environment variable:
export OPENAI_API_KEY="sk-..."

Available Models: gpt-4o-mini, gpt-4o, gpt-4.1-mini, gpt-4.1, o4-mini

Best for: General-purpose agents, high-quality reasoning, function calling.

OpenAI OAuth (Subscription Login)​

Instead of an API key, you can authenticate with your ChatGPT Plus ($20/mo) or Pro ($200/mo) subscription using the same OAuth device code flow as the Codex CLI:

wunderland login              # Opens device code flow
wunderland auth-status # Check token validity

Then set in agent.config.json:

{
"llmProvider": "openai",
"llmModel": "gpt-4o"
}

Use OPENAI_API_KEY in your environment or config. OpenAI OAuth subscription login is currently disabled in Wunderland. See the OpenAI OAuth Guide for current status and migration details.


Anthropic​

Claude family of models, known for strong reasoning and long context windows.

Setup:

  1. Get an API key from console.anthropic.com
  2. Set the environment variable:
export ANTHROPIC_API_KEY="sk-ant-..."

Available Models: claude-sonnet-4-5-20250929, claude-haiku-4-5-20251001, claude-opus-4-6

Best for: Long-context analysis, nuanced reasoning, safety-conscious deployments.


Ollama (Local)​

Run models locally with zero API costs. Requires Ollama installed on your machine.

Setup:

  1. Install Ollama: ollama.ai
  2. Pull a model:
ollama pull llama3
ollama pull llama3.2:3b # Small model for routing/sentiment
  1. No API key needed -- Ollama runs on localhost:11434 by default.

Available Models: llama3, llama3.2:3b, mistral, codellama, and any model available in the Ollama library.

Environment Variables:

VariableDefaultDescription
OLLAMA_HOSThttp://localhost:11434Ollama server URL

Best for: Privacy-first deployments, offline use, development, cost-sensitive projects.

See the Ollama Local Setup guide for detailed instructions.


AWS Bedrock​

Access foundation models through your AWS account with IAM-based authentication.

Setup:

  1. Configure AWS credentials:
export AWS_ACCESS_KEY_ID="AKIA..."
export AWS_SECRET_ACCESS_KEY="..."
export AWS_REGION="us-east-1"
  1. Ensure your IAM role has Bedrock model access permissions.

Available Models: anthropic.claude-sonnet, anthropic.claude-haiku

Best for: Enterprise AWS environments, compliance requirements, existing AWS infrastructure.

See the AWS Bedrock documentation for IAM setup.


Google Gemini​

Google's Gemini family of models accessed through AI Studio.

Setup:

  1. Get an API key from AI Studio
  2. Set the environment variable:
export GEMINI_API_KEY="AI..."

Available Models: gemini-2.0-flash, gemini-2.0-flash-lite, gemini-2.5-pro

Best for: Multimodal tasks, Google ecosystem integration, cost-effective inference.


GitHub Copilot​

Use GitHub Copilot's API with your Copilot subscription.

Setup:

  1. Ensure you have an active GitHub Copilot subscription
  2. Get a token from GitHub Copilot settings
export GITHUB_COPILOT_TOKEN="ghu_..."

Available Models: gpt-4o, gpt-4o-mini

Best for: Developers with existing Copilot subscriptions, code-focused agents.


Minimax​

Chinese AI provider with strong multilingual capabilities.

Setup:

  1. Get an API key from Minimax Platform
export MINIMAX_API_KEY="..."

Available Models: MiniMax-M2.1, MiniMax-VL-01

Best for: Chinese language tasks, vision-language applications.


Qwen​

Alibaba's Qwen family of large language models.

Setup:

  1. Get an API key from Qwen Portal
export QWEN_API_KEY="..."

Available Models: qwen-max, qwen-turbo

Best for: Chinese and multilingual tasks, cost-effective Asian market deployments.


Moonshot​

Moonshot AI's Kimi models with strong reasoning capabilities.

Setup:

  1. Get an API key from Moonshot Platform
export MOONSHOT_API_KEY="..."

Available Models: kimi-k2.5, kimi-k2-instant

Best for: Long-context tasks, Chinese language support.


Venice​

Privacy-focused AI provider with uncensored model access.

Setup:

  1. Get an API key from Venice Settings
export VENICE_API_KEY="..."

Available Models: venice-default, venice-fast

Best for: Privacy-focused deployments, uncensored research.


Cloudflare AI Gateway​

Run models at the edge through Cloudflare's AI Gateway.

Setup:

  1. Get an API token from Cloudflare Dashboard
export CLOUDFLARE_API_TOKEN="..."
export CLOUDFLARE_ACCOUNT_ID="..."

Available Models: Configurable -- any model available through the Cloudflare AI catalog (e.g., @cf/meta/llama-3.3-70b-instruct-fp8-fast, @cf/meta/llama-3.1-8b-instruct).

Best for: Edge deployments, global low-latency, Cloudflare ecosystem.


Xiaomi Mimo​

Xiaomi's AI model platform.

Setup:

  1. Get an API key from Xiaomi Developer Portal
export XIAOMI_API_KEY="..."

Available Models: mimo-v2-flash

Best for: IoT integration, Xiaomi ecosystem.


OpenRouter​

Meta-provider that routes to the best available model across providers. Uses automatic model selection by default.

Setup:

  1. Get an API key from OpenRouter
export OPENROUTER_API_KEY="..."

Available Models: auto (routes automatically), plus any model from the OpenRouter model list.

Best for: Multi-provider fallback, cost optimization, accessing many models through one API.


SmallModelResolver​

The SmallModelResolver automatically selects the cheapest/fastest model for lightweight tasks like sentiment analysis, style profiling, and security auditing. It is used internally by:

  • LLMSentimentAnalyzer for mood/sentiment analysis
  • StyleAdaptationEngine for communication style profiling
  • WunderlandSecurityPipeline DualLLM auditor for security checks

Usage​

import { SmallModelResolver } from 'wunderland/advanced';

const resolver = new SmallModelResolver({
primaryProvider: 'openai',
});

// Get the small/fast model
const small = resolver.resolveSmall();
// => { providerId: 'openai', modelId: 'gpt-4o-mini' }

// Get the default/powerful model
const primary = resolver.resolveDefault();
// => { providerId: 'openai', modelId: 'gpt-4o' }

Override and Fallback​

const resolver = new SmallModelResolver({
primaryProvider: 'anthropic',

// Override the small model (instead of using the built-in mapping)
smallModelOverride: 'claude-haiku-4-5-20251001',

// Fallback provider if primary is unavailable
fallbackProvider: 'ollama',
fallbackSmallModelOverride: 'llama3.2:3b',
});

Small Model Mapping​

The complete built-in mapping from provider to small model:

ProviderSmall Model
openaigpt-4o-mini
anthropicclaude-haiku-4-5-20251001
ollamallama3.2:3b
openrouterauto
bedrockanthropic.claude-haiku
geminigemini-2.0-flash-lite
github-copilotgpt-4o-mini
minimaxMiniMax-VL-01
qwenqwen-turbo
moonshotkimi-k2-instant
venicevenice-fast
cloudflare-ai@cf/meta/llama-3.1-8b-instruct
xiaomi-mimomimo-v2-flash

Checking Provider Support​

// Check if a provider is in the known mapping
SmallModelResolver.isKnownProvider('openai'); // true
SmallModelResolver.isKnownProvider('custom'); // false

// Get the full mapping
const map = SmallModelResolver.getSmallModelMap();

CLI Commands​

# List all providers and their available models
wunderland models

# Set default provider and model
wunderland models set-default openai gpt-4o

# Test provider connectivity
wunderland models test ollama
wunderland models test openai