# How to Enable Gemma 4 Thinking Mode in LM Studio and OpenCode

DevFeed: [How to Enable Gemma 4 Thinking Mode in LM Studio and OpenCode](<https://devfeed.tech/articles/how-to-enable-gemma-4-thinking-mode-in-lm-studio-and-opencode-27160.md>)

Original publisher: [Read original article](<https://antonioleiva.com/enable-gemma-thinking-mode-lm-studio-opencode>)

Published: 2026-04-08T15:10:00Z

Content type: tutorial

Language: en

Sources: [Antonio Leiva](<https://devfeed.tech/sources/antonio-leiva.md>)

Topics: [gemma4](<https://devfeed.tech/topics/gemma4.md>), [Chat Bot](<https://devfeed.tech/topics/chatbot.md>)

Tags: [ai](<https://devfeed.tech/tags/ai.md>), [gemma-4](<https://devfeed.tech/tags/gemma-4.md>), [lm-studio](<https://devfeed.tech/tags/lm-studio.md>), [local-llms](<https://devfeed.tech/tags/local-llms.md>), [opencode](<https://devfeed.tech/tags/opencode.md>), [reasoning](<https://devfeed.tech/tags/reasoning.md>)

## AI overview

A tutorial on configuring Gemma 4 26B's thinking mode for local use with LM Studio and OpenCode. It explains that successful setup depends on reasoning parsing, the prompt template, model support, and message formatting across the involved tools.

## Source excerpt

Everything Android, Kotlin and other random topics