Model Configuration Reference
Use this page to look up every Midscene model setting. For supported model names, model families, and copyable setup examples, see Supported models and setup. For model roles and combination guidance, see Model strategy. For connection issues, logs, tracing, and call recording, see Model debugging and observability.
Required settings
You need to set a default model for Midscene; see Model strategy for details.
Advanced settings (optional)
If you configure a dedicated Insight or Planning model, model-related MIDSCENE_MODEL_* settings in this section only take effect for the Insight or Planning intent when you configure the corresponding MIDSCENE_INSIGHT_MODEL_* or MIDSCENE_PLANNING_MODEL_* setting.
Note: Control replanning behavior with the agent option
replanningCycleLimit(defaults to 20, or 40 forvlm-ui-tars), not with environment variables.
Configure a dedicated Insight model
Set the following if the Insight intent needs a different model:
Configure a dedicated Planning model
Set the following if the Planning intent needs a different model:
Model-native thinking
Midscene disables model-native thinking by default for better execution speed and stability. If a model cannot disable native thinking, Midscene reduces it as much as possible by controlling the thinking granularity or budget.
The following environment variables provide a unified Midscene abstraction over provider-specific parameters. The parameters sent to the model depend on MIDSCENE_MODEL_FAMILY.
MIDSCENE_MODEL_REASONING_ENABLED explicitly controls whether model-native thinking is enabled:
false: Force-disable model-native thinking. This is the Midscene default.true: Force-enable model-native thinking.default: Follow the model's default behavior. Midscene does not send a parameter that enables or disables thinking, and it ignores explicitMIDSCENE_MODEL_REASONING_BUDGETandMIDSCENE_MODEL_REASONING_EFFORTsettings.
The following model families currently support MIDSCENE_MODEL_REASONING_ENABLED:
- Qwen: Maps to
enable_thinking. - Doubao: Maps to
thinking.type. - Zhipu GLM: Maps to
thinking.type. - GPT-5: Maps to
reasoning_effort. Midscene usesmediumwhen enabled andnonewhen disabled. - Gemini: Maps to
thinking_config.thinking_level. Midscene usesmediumwhen enabled andminimalwhen disabled. - Kimi K2 series: Maps to
thinking.type. - Xiaomi MiMo: Maps to
thinking.type.
MIDSCENE_MODEL_REASONING_BUDGET controls the thinking budget. Qwen currently supports this setting through thinking_budget.
MIDSCENE_MODEL_REASONING_EFFORT controls thinking effort. The following model families currently support it:
- Doubao: Maps to
reasoning_effort. - Gemini: Maps to
thinking_config.thinking_level. - GPT-5: Maps to
reasoning_effort. - Kimi K3 series: Maps to
reasoning_effort.
Provider support and accepted values vary. See each provider's official documentation for supported model versions and values. If the current model does not support an explicit setting, Midscene ignores it instead of guessing a provider-specific private parameter.
Still-compatible configs (not recommended)
The following environment variables are deprecated but still compatible. We recommend migrating to the new configuration approach.
Legacy model family configuration
General configuration
Debugging and observability settings
The following settings enable model diagnostics, tracing, and local call recording. See Model debugging and observability for installation steps, usage examples, troubleshooting, and security guidance.
Debug logs
For supported DEBUG selectors and log behavior, see Runtime configuration: Debug logs.

