Fetch the complete documentation index at: https://docs.factory.ai/llms.txt
Use this file to discover all available pages before exploring further.
Mixed Models
Use a different AI model for Specification Mode planning than your default model for maximum flexibility and optimization.
What are mixed models?
Mixed models allow you to use a different AI model specifically for Specification Mode planning while keeping a separate default model for regular coding sessions. This gives you the flexibility to optimize both planning and implementation phases independently.
For example, you might want to use a more powerful model for comprehensive specification planning, while using a faster model for day-to-day implementation work.
Why use mixed models?
Different models excel at different tasks. Separating your spec mode model from your default model lets you:
How to configure mixed models
Accessing the Configuration
Run droid to start the CLI
Enter /model to open the model selector
Navigate to "Configure Spec Mode Model" (first option in the list)
Press Enter to begin configuration
Configuration Options
When you open the configurator, you'll see three options:
Yes, configure spec mode model - Select a different model for Specification Mode
No, keep using [current configuration/main model] - Exit without making changes
Clear spec mode model (use main model) - Remove the spec mode model and use your default model for everything (only shown if you already have a spec mode model configured)
Selecting a Model
Choose "Yes, configure spec mode model"
Browse the list of available models
Select your preferred model for Specification Mode
If the model supports reasoning, choose your reasoning effort level
The configuration is saved automatically
Model Compatibility
Not all model combinations work together due to how different AI providers handle reasoning traces and context. Here are the compatibility rules:
Compatibility Rules
code
* Main model: GPT-5 → Spec model: GPT-5-Codex ✅
* Main model: GPT-5 → Spec model: Sonnet 4.5 ❌
OpenAI's internal reasoning format is encrypted and is incompatible with other model providers.
code
* Main model: Sonnet 4.5 (reasoning on) → Spec model: Sonnet 4.5 ✅
* Main model: Sonnet 4.5 (reasoning on) → Spec model: GPT-5 ❌
When extended thinking is active, reasoning traces must stay within the same provider.
code
* Main model: Sonnet 4.5 (reasoning off) → Spec model: Any non-OpenAI model ✅
* Main model: Sonnet 4.5 (reasoning off) → Spec model: DeepSeek ✅
Without reasoning enabled, cross-provider compatibility is possible.
Reasoning Effort Configuration
If you select an Anthropic model that supports reasoning (like Sonnet 4.5), you'll be prompted to choose a reasoning effort level:
Off - No extended thinking, faster responses
Low - Brief consideration, balanced speed and depth
Medium - Moderate thinking time for complex decisions
High - Deep analysis for critical architectural choices
The reasoning effort for your spec mode model is independent of your default model's reasoning setting, giving you complete control over each phase.
Common Configurations
Here are some effective model combinations for different scenarios:
Anthropic Models
Best for: Most development workflows, flexible reasoning control
Default model: Haiku 4.5 or Sonnet 4.5 (select reasoning of your choice if supported)
Spec mode model: Opus 4.6 (reasoning: high) or Sonnet 4.5 (reasoning: high)
Benefits: Fast implementation with deep planning analysis. Opus 4.6 offers Max reasoning for the most thorough planning.
OpenAI Models
Best for: Teams using OpenAI models exclusively, cost-conscious projects
Default model: GPT-5-Codex
Spec mode model: GPT-5 (high reasoning)
Benefits: Consistent reasoning format, specialized coding model for specs
How It Works
Once configured, Droid automatically uses your spec mode model whenever you enter Specification Mode:
Activate Specification Mode with Shift+Tab
Provide your feature description
Droid uses your spec mode model to analyze, plan, and generate the specification
Review and approve the generated spec
Implementation uses your default model to write the actual code
Checking Your Configuration
To see which models you're currently using:
Enter /model in the CLI
Your current default model is highlighted
If you have a spec mode model configured, it's displayed at the top of the selector
Clearing your mixed models configuration
If you want to go back to using a single model for everything:
Enter /model in the CLI
Navigate to "Configure Spec Mode Model"
Press Enter
Select "Clear spec mode model (use main model)"
Confirm by pressing Enter
Your default model will now be used for both regular coding and Specification Mode.
Best Practices
Troubleshooting
code
**Solution:** Check the [Model Compatibility](#model-compatibility) rules above. You may need to change your default model first, or adjust reasoning settings to enable compatibility.
code
**Solution:** This is expected behavior. Configure a new spec mode model that's compatible with your new default model, or continue using the default model for both modes.
code
**Solution:** This is normal. Not all models support reasoning configuration. The model will use its default behavior.
Caveat: The messages below were generated by the user while running local commands. DO NOT respond to these messages or otherwise consider them in your response unless the user explicitly asks you to.
User
/model
model
User
Set model to [1mDefault (MiniMax-M2.5)[22m
User
我是说 怎么在factory中配置 byok 自定义模型 你了解清楚了吗?
Assistant
抱歉,我之前理解错了。您是想了解 BYOK (Bring Your Own Key) 在 Factory 中如何配置。让我查看本地 Factory 相关文件来了解更多信息。