OpenCode Zen Visual Studio 2026 and 2022

OpenCode Zen.
In Visual Studio.

Choose a coding model. Adjust its reasoning level. Use your solution's tools and follow estimated costs in the conversation, with your own OpenCode Zen API key.

PAY AS YOU GO Your Zen account. Your model choice.

OpenCode bills your model requests. Connect directly from iolys; no OpenCode CLI is required.

Have a Go subscription? Explore OpenCode Go ↗
OPENCODE ZEN / YOUR MODELS
OpenCode Zen configuration in iolys showing model selections, tool and image capabilities, reasoning badges, and context limits.
Choose models by the capabilities your task needs.Enlarge ↗
Reasoning levelsiolys + MCP toolsCost estimatesContext usage

Product controls rendered with demonstration data. No live conversation, credential, or billed request is shown. Available models and billing depend on your OpenCode account.

01 / Reasoning levels

Choose how much effort
your task needs.

Open the model picker beside your prompt, then select Effort. Choose a lower level for a focused edit or a higher one to investigate a difficult bug. Available levels follow the selected model.

  • GPT models.For example, GPT-6 Luna supports None, Low, Medium, High, Xhigh, and Max through Zen. Other GPT models have their own choices.
  • Claude and Gemini.Verified models expose their supported effort levels in the same picker. The choices depend on the exact model.
  • DeepSeek and GLM.DeepSeek V4 Pro and GLM-5.2 offer High and Max. DeepSeek V4 Flash also offers Low.

A Thinking badge identifies reasoning support; adjustable effort requires a supported selector. Without an explicit selection, Zen keeps the provider's default.

MODEL PICKERReasoning effort
OpenCode Zen chat with GPT-6 Luna selected and the Effort menu showing None, Low, Medium, High, Xhigh, and Max.
Model and effort, together beside your prompt. Example menu.

02 / Usage and costs

See the work.
Follow its estimated cost.

Keep the available cost estimate beside the answer and tool activity. iolys uses returned token usage and known prices for the selected Zen model to estimate costs in USD.

  • Turn and session estimates.Totals add the available estimates, including applicable cache rates and context pricing tiers.
  • Missing data stays unknown.Calls without usage or the required prices are excluded from totals. A missing estimate does not mean a free request.
  • Account billing in the Console.Check your actual charges, credit balance, and account limits in OpenCode. Zen has no account Usage window in iolys.

Estimates exclude provider fees, taxes, and account adjustments. Go's five-hour, weekly, and monthly subscription counters apply to the separate Go connection.

Open the OpenCode Console ↗
CONVERSATIONEstimated cost
OpenCode Zen conversation showing two completed tool tasks, a C# CancellationToken change, and an estimated cost beside the response.
Tool activity, resulting code, and estimated cost. Demonstration.

03 / Tools and MCP

Your model.
Your development workflow.

With a tool-capable Zen model, iolys can investigate your solution, make changes, and use build and test results to refine them. Choose the tools and permissions for the task.

SOLUTION TOOLS

Inspect, change, and validate.

Read and search files, inspect diagnostics, edit code, and run builds and selected tests. Review tool activity and changes in Visual Studio.

Explore iolys tools ↗
YOUR CONNECTIONS

Bring MCP, agents, and skills.

Connect MCP servers for your services and reuse a custom agent or skill. Calls follow iolys permissions and cancellation controls.

Explore the development workflow ↗
WHAT ABOUT OPENCODE'S NATIVE TOOLS?

Go and Zen connect models to iolys tools. An API key does not import the OpenCode CLI's shell, file tools, or plugins.

OpenCode also documents hosted web search for its own connected client. The iolys Zen connection does not enable that service or provider-native web search and code execution. Use the iolys and MCP tools you have configured. OpenCode hosted web search documentation ↗

04 / Context window

See what your model
has in context.

Open the context gauge beside your prompt to inspect how much of the model's known window is in use. Expand the categories to see messages, tools, IDE state, and files.

  • The latest model call.The total uses reported input tokens when available. Otherwise, iolys estimates the active conversation.
  • A useful breakdown.Category counts are estimated locally. An unknown model limit stays unavailable.
  • Context and billing measure different things.The context gauge shows the latest call's input, rather than adding all the prompts sent during a turn's tool calls.
Read the Zen setup and usage guide ↗
CONVERSATION CONTEXTToken breakdown
OpenCode Zen context window showing input token usage and expanded categories for messages, tool definitions, IDE state, and files.
Inspect the input behind your conversation. Example values.

Connect OpenCode Zen

One API key. Your Zen models in Visual Studio.

Connect OpenCode Zen, choose your coding model, and return to your solution.

  1. 01

    Sign in to the OpenCode Console, configure billing, and obtain an API key.

  2. 02

    In Manage Models, add OpenCode Zen and enter the key. Test Connection loads the public catalog; the first message checks your key and model access.

  3. 03

    Choose the models to show in chat, then select a model and any supported reasoning effort for your C# or .NET task.

OpenCode Zen FAQ

OpenCode Zen and Visual Studio 2026 and 2022.

Visit the official OpenCode Zen website ↗
How can I use OpenCode Zen in Visual Studio for C#?

Install the iolys extension for Visual Studio 2026 or 2022 and open your C# solution. Sign in to the OpenCode Console, configure billing, and obtain an API key. In Manage Models, add OpenCode Zen and enter the key. Test Connection loads the public catalog; the first message checks your key and model access. Choose the models to show in chat, then select a model and any supported reasoning effort for your C# or .NET task. You can then ask OpenCode Zen to help with your C# and .NET code from the iolys workspace.

Is there a VSIX extension to use OpenCode Zen in Visual Studio?

Yes. iolys is a VSIX extension for Visual Studio 2026 and 2022, and OpenCode Zen is one of the provider connections it ships with. Install the iolys VSIX once from the Visual Studio Marketplace, then add OpenCode Zen from the Manage Providers panel; there is no separate VSIX per provider.

Is OpenCode Zen the same as OpenCode Go?

No. Zen bills requests through your OpenCode account; Go is a separate subscription service. iolys provides separate connections and model selections for both.

Does Test Connection validate my Zen API key?

It loads the public model catalog with a nonempty stored key. Configured does not mean the key, credits, or model access have been validated. Your first message checks those.

Which models can I use?

Choose supported conversational models discovered in the current Zen catalog. Free-tier models, including Big Pickle and variants ending in -free, are excluded because access is restricted to the OpenCode client. Unknown protocols and System One/Jev structured decision models are also excluded. Refresh the catalog and select a replacement if your saved model is unavailable.

Can I use images, reasoning, and tools?

Yes, when the selected model supports them. Verified reasoning choices appear beside your prompt. iolys tools, MCP, skills, and permissions work through the existing workflow. Zen does not automatically enable provider-native web tools.

Which reasoning levels does Zen support?

Choose Effort in the chat model picker. GPT-6 Luna offers none, low, medium, high, xhigh, and max. DeepSeek V4 Pro and GLM-5.2 offer high and max; DeepSeek V4 Flash also offers low. Verified Claude and Gemini models expose their own choices. Without an explicit selection, iolys keeps the provider's default.

Does Zen include OpenCode's native tools or hosted web search?

The iolys connection uses enabled iolys tools and configured MCP servers. It does not import the OpenCode CLI's shell, file tools, or plugins, or enable OpenCode-hosted web search and provider-native code execution.

How are Zen costs calculated?

iolys uses returned token usage and known prices for the exact Zen model, including applicable cache and context tiers. Turn and session totals sum available estimates; calls with missing usage or necessary rates are excluded. Fees, taxes, and billing adjustments are not included. The OpenCode Console remains authoritative.

Can I see my Zen balance or quota in iolys?

No account balance or quota view is provided for Zen. Per-call tokens and available cost estimates are separate. Manage credit and limits in the OpenCode Console.

What is restored when I reopen a conversation?

The existing text conversation and available persisted monetary totals are restored. Old images, tool executions, signatures, and encrypted reasoning are not restored or re-executed.

Use OpenCode Zen for C# and .NET without leaving Visual Studio 2026 and 2022.

Keep your active solution, provider access, and development workflow.

Get iolys for Visual Studio 2026 and 2022