{"id":5321,"date":"2026-11-19T16:26:43","date_gmt":"2026-11-19T20:26:43","guid":{"rendered":"https:\/\/www.wholetomato.com\/blog\/?p=5321"},"modified":"2026-11-19T16:36:32","modified_gmt":"2026-11-19T20:36:32","slug":"how-to-install-and-use-claude-code-or-codex-in-visual-studio-for-c","status":"publish","type":"post","link":"https:\/\/www.wholetomato.com\/blog\/how-to-install-and-use-claude-code-or-codex-in-visual-studio-for-c\/","title":{"rendered":"How to Install and Use Claude Code or Codex in Visual Studio for C++"},"content":{"rendered":"<p><i><span style=\"font-weight: 400;\">Steps tested with Visual Assist 2026.5 in Visual Studio 2026 and checked against Anthropic&#8217;s and OpenAI&#8217;s setup docs in November 2026. Not for VS Code.<\/span><\/i><\/p>\n<p><span style=\"font-weight: 400;\">Already have an existing Claude or ChatGPT account? If you use Visual Studio for C++, you don&#8217;t have to overhaul your existing setup to utilize those frontier models inside VS.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Claude Code and OpenAI Codex both offer CLI tools you can run on Windows, but getting them into Visual Studio isn&#8217;t quite as straightforward. Their official IDE integrations focus on other editors, leaving Visual Studio developers to switch between a terminal running the agent and the IDE containing their code.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">There&#8217;s a more convenient way to work. With VA Agent, introduced in Visual Assist 2026.5, you can run Claude Code or Codex directly inside Visual Studio using the account you already have. No need to buy another AI plan or keep switching windows to work with your code.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">This guide walks through setting up both agents on Windows, signing in with your existing account, and putting them to work inside Visual Studio. We&#8217;ll finish with a practical example using real C++ code.<\/span><\/p>\n<h2 data-pm-slice=\"1 1 []\">What you need<\/h2>\n<p>For both agents:<\/p>\n<ul>\n<li><strong>Visual Studio<\/strong> 2015 or later<\/li>\n<li><strong>Visual Assist<\/strong> 2026.5 or later. The 30-day trial works too.<\/li>\n<li><strong>An open solution.<\/strong> VA Agent runs inside one<\/li>\n<\/ul>\n<p>Then, depending on the agent you pick:<\/p>\n<div class=\"tableWrapper\">\n<table>\n<colgroup>\n<col \/>\n<col \/>\n<col \/><\/colgroup>\n<tbody>\n<tr>\n<th colspan=\"1\" rowspan=\"1\"><\/th>\n<th colspan=\"1\" rowspan=\"1\">Claude Code<\/th>\n<th colspan=\"1\" rowspan=\"1\">Codex<\/th>\n<\/tr>\n<tr>\n<td colspan=\"1\" rowspan=\"1\">Account<\/td>\n<td colspan=\"1\" rowspan=\"1\">A Claude Pro, Max, Ultra, Team or Enterprise plan, or an Anthropic Console account.<\/td>\n<td colspan=\"1\" rowspan=\"1\">A ChatGPT account. Our test ran on the Free plan; Plus, Pro, Business, Edu and Enterprise also include Codex<\/td>\n<\/tr>\n<tr>\n<td colspan=\"1\" rowspan=\"1\">Windows<\/td>\n<td colspan=\"1\" rowspan=\"1\">Windows 10 (version 1809) or later<\/td>\n<td colspan=\"1\" rowspan=\"1\">Windows 11 recommended; Windows 10 (version 1809) or later<\/td>\n<\/tr>\n<tr>\n<td colspan=\"1\" rowspan=\"1\">Install<\/td>\n<td colspan=\"1\" rowspan=\"1\">One PowerShell command<\/td>\n<td colspan=\"1\" rowspan=\"1\">One PowerShell command<\/td>\n<\/tr>\n<tr>\n<td colspan=\"1\" rowspan=\"1\">Sign-in in VA Agent<\/td>\n<td colspan=\"1\" rowspan=\"1\">Sign in with your Claude account link<\/td>\n<td colspan=\"1\" rowspan=\"1\">Sign in with ChatGPT link<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<h2 data-pm-slice=\"1 1 []\">Step 1. Install or update Visual Assist<\/h2>\n<p>If you&#8217;re new to Visual Assist, start the <a href=\"https:\/\/www.wholetomato.com\/downloads\">30-day free trial<\/a>. If you already use it, <a href=\"https:\/\/www.wholetomato.com\/features\/whats-new\">update to 2026.5 or later<\/a>.<\/p>\n<p>Then turn on VA Intelligence, which VA Agent needs. Go to Extensions \u2192 VAssistX \u2192 Visual Assist Options \u2192 VA Intelligence, check Enable VA Intelligence, and click Save. You can skip the Download Ollama &amp; Gemma 4 button, which is only for the optional local model covered at the end. If you forget this step, VA Agent offers to open the page the first time you send a message.<\/p>\n<div id=\"attachment_5330\" style=\"width: 872px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2024\/03\/01_va-intelligence-options.png?ssl=1\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-5330\" data-attachment-id=\"5330\" data-permalink=\"https:\/\/www.wholetomato.com\/blog\/visual-assist-2024-2-release-post\/01_va-intelligence-options\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2024\/03\/01_va-intelligence-options.png?fit=1251%2C728&amp;ssl=1\" data-orig-size=\"1251,728\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"01_va-intelligence-options\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2024\/03\/01_va-intelligence-options.png?fit=300%2C175&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2024\/03\/01_va-intelligence-options.png?fit=1024%2C596&amp;ssl=1\" class=\" wp-image-5330\" src=\"https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2024\/03\/01_va-intelligence-options.png?resize=862%2C502&#038;ssl=1\" alt=\"Visual Assist Options dialog open to the VA Intelligence page, with Enable VA Intelligence checked and a separate Download Ollama &amp; Gemma 4 button.\" width=\"862\" height=\"502\" srcset=\"https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2024\/03\/01_va-intelligence-options.png?resize=1024%2C596&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2024\/03\/01_va-intelligence-options.png?resize=300%2C175&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2024\/03\/01_va-intelligence-options.png?resize=768%2C447&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2024\/03\/01_va-intelligence-options.png?resize=360%2C209&amp;ssl=1 360w, https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2024\/03\/01_va-intelligence-options.png?w=1251&amp;ssl=1 1251w\" sizes=\"auto, (max-width: 862px) 100vw, 862px\" data-recalc-dims=\"1\" \/><\/a><p id=\"caption-attachment-5330\" class=\"wp-caption-text\">Check Enable VA Intelligence once. The local model download is optional.<\/p><\/div>\n<h2 data-pm-slice=\"1 1 []\">Step 2. Open VA Agent and pick your agent<\/h2>\n<p>Open a solution first, then go to <strong>Extensions \u2192 VAssistX \u2192 Tools \u2192 VA Agent<\/strong>.<\/p>\n<div id=\"attachment_5331\" style=\"width: 871px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2024\/03\/02_va-agent-menu-path.png?ssl=1\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-5331\" data-attachment-id=\"5331\" data-permalink=\"https:\/\/www.wholetomato.com\/blog\/visual-assist-2024-2-release-post\/02_va-agent-menu-path\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2024\/03\/02_va-agent-menu-path.png?fit=1407%2C1157&amp;ssl=1\" data-orig-size=\"1407,1157\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"02_va-agent-menu-path\" data-image-description=\"\" data-image-caption=\"&lt;p&gt;Open VA Agent from Extensions \u2192 VAssistX \u2192 Tools.&lt;\/p&gt;\n\" data-medium-file=\"https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2024\/03\/02_va-agent-menu-path.png?fit=300%2C247&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2024\/03\/02_va-agent-menu-path.png?fit=1024%2C842&amp;ssl=1\" class=\" wp-image-5331\" src=\"https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2024\/03\/02_va-agent-menu-path.png?resize=861%2C708&#038;ssl=1\" alt=\"Visual Studio's Extensions menu open to VAssistX, then Tools, with VA Agent highlighted.\" width=\"861\" height=\"708\" srcset=\"https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2024\/03\/02_va-agent-menu-path.png?resize=1024%2C842&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2024\/03\/02_va-agent-menu-path.png?resize=300%2C247&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2024\/03\/02_va-agent-menu-path.png?resize=768%2C632&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2024\/03\/02_va-agent-menu-path.png?resize=110%2C90&amp;ssl=1 110w, https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2024\/03\/02_va-agent-menu-path.png?resize=360%2C296&amp;ssl=1 360w, https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2024\/03\/02_va-agent-menu-path.png?w=1407&amp;ssl=1 1407w\" sizes=\"auto, (max-width: 861px) 100vw, 861px\" data-recalc-dims=\"1\" \/><\/a><p id=\"caption-attachment-5331\" class=\"wp-caption-text\">Open VA Agent from Extensions \u2192 VAssistX \u2192 Tools.<\/p><\/div>\n<p>The window docks with your other tool windows, so you can keep it beside your code. In the <strong>Agent<\/strong> dropdown, pick <strong>Claude Code<\/strong> or <strong>Codex<\/strong>. The third option, <strong>Gemma 4 (local)<\/strong>, is the optional local model covered at the end.<\/p>\n<div id=\"attachment_5332\" style=\"width: 727px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2024\/03\/03_va-agent-picker.png?ssl=1\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-5332\" data-attachment-id=\"5332\" data-permalink=\"https:\/\/www.wholetomato.com\/blog\/visual-assist-2024-2-release-post\/03_va-agent-picker\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2024\/03\/03_va-agent-picker.png?fit=717%2C411&amp;ssl=1\" data-orig-size=\"717,411\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"03_va-agent-picker\" data-image-description=\"\" data-image-caption=\"&lt;p&gt;Pick Claude Code or Codex in VA Agent&#8217;s Agent dropdown.&lt;\/p&gt;\n\" data-medium-file=\"https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2024\/03\/03_va-agent-picker.png?fit=300%2C172&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2024\/03\/03_va-agent-picker.png?fit=717%2C411&amp;ssl=1\" class=\"size-full wp-image-5332\" src=\"https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2024\/03\/03_va-agent-picker.png?resize=717%2C411&#038;ssl=1\" alt=\"VA Agent panel with the Agent dropdown open, showing Codex, Gemma 4 (local) and Claude Code.\" width=\"717\" height=\"411\" srcset=\"https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2024\/03\/03_va-agent-picker.png?w=717&amp;ssl=1 717w, https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2024\/03\/03_va-agent-picker.png?resize=300%2C172&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2024\/03\/03_va-agent-picker.png?resize=360%2C206&amp;ssl=1 360w\" sizes=\"auto, (max-width: 717px) 100vw, 717px\" data-recalc-dims=\"1\" \/><\/a><p id=\"caption-attachment-5332\" class=\"wp-caption-text\">Pick Claude Code or Codex in VA Agent&#8217;s Agent dropdown.<\/p><\/div>\n<p>If you send a message before the CLI is installed, VA Agent tells you it can&#8217;t find it and directs you to finish the setup first. Proceed to Steps 3 and 4.<\/p>\n<div id=\"attachment_5333\" style=\"width: 1034px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2024\/03\/04_cli-not-found-claude-code-and-codex.png?ssl=1\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-5333\" data-attachment-id=\"5333\" data-permalink=\"https:\/\/www.wholetomato.com\/blog\/visual-assist-2024-2-release-post\/04_cli-not-found-claude-code-and-codex\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2024\/03\/04_cli-not-found-claude-code-and-codex.png?fit=1261%2C380&amp;ssl=1\" data-orig-size=\"1261,380\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"04_cli-not-found-claude-code-and-codex\" data-image-description=\"\" data-image-caption=\"&lt;p&gt;Before the CLI is installed, VA Agent tells you and links to the setup.&lt;\/p&gt;\n\" data-medium-file=\"https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2024\/03\/04_cli-not-found-claude-code-and-codex.png?fit=300%2C90&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2024\/03\/04_cli-not-found-claude-code-and-codex.png?fit=1024%2C309&amp;ssl=1\" class=\"size-large wp-image-5333\" src=\"https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2024\/03\/04_cli-not-found-claude-code-and-codex.png?resize=1024%2C309&#038;ssl=1\" alt=\"Two VA Agent panels side by side, labeled Claude Code and Codex, reading &quot;The Claude Code CLI was not found on this computer&quot; and &quot;The Codex CLI was not found on this computer,&quot; each with links to set up the CLI or locate an existing install.\" width=\"1024\" height=\"309\" srcset=\"https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2024\/03\/04_cli-not-found-claude-code-and-codex.png?resize=1024%2C309&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2024\/03\/04_cli-not-found-claude-code-and-codex.png?resize=300%2C90&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2024\/03\/04_cli-not-found-claude-code-and-codex.png?resize=768%2C231&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2024\/03\/04_cli-not-found-claude-code-and-codex.png?resize=360%2C108&amp;ssl=1 360w, https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2024\/03\/04_cli-not-found-claude-code-and-codex.png?w=1261&amp;ssl=1 1261w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" data-recalc-dims=\"1\" \/><\/a><p id=\"caption-attachment-5333\" class=\"wp-caption-text\">Before the CLI is installed, VA Agent tells you and links to the setup.<\/p><\/div>\n<h2 data-pm-slice=\"1 1 []\">Step 3. Install the CLI<\/h2>\n<p>Claude Code and Codex are command-line tools (CLIs). VA Agent detects whichever one you&#8217;ve installed, or lets you choose between them if you have both. Install the CLI once from Windows PowerShell.<\/p>\n<p>Side note: the Claude and ChatGPT desktop apps don&#8217;t count here. VA Agent looks for the CLI, so you need to install it even if you already have the desktop app. You can also run the CLI independently. Open a terminal in any project folder and enter <code>claude<\/code> or <code>codex<\/code>. It uses the same installation and account as VA Agent.<\/p>\n<h3 data-pm-slice=\"1 1 []\">Claude Code<\/h3>\n<p>Run Anthropic&#8217;s installer. Running the command line instance as an administrator is not required.<\/p>\n<pre><code class=\"language-powershell\">irm https:\/\/claude.ai\/install.ps1 | iex<\/code><\/pre>\n<p>The installer doesn&#8217;t show progress while it downloads, so give it a moment. If you&#8217;d rather use Command Prompt, Anthropic&#8217;s <a href=\"https:\/\/code.claude.com\/docs\/en\/setup\">setup page<\/a> has a CMD version of the command. There&#8217;s also a WinGet package (<code>winget install Anthropic.ClaudeCode<\/code>), though that one doesn&#8217;t update itself.<\/p>\n<p>When it finishes, read the output. If there&#8217;s a <strong>Setup notes<\/strong> line saying <code>.local\\bin<\/code> is not in your PATH, you&#8217;ll need the fix in Step 4.<\/p>\n<h3 data-pm-slice=\"1 1 []\">Codex<\/h3>\n<p>Run OpenAI&#8217;s installer:<\/p>\n<pre><code class=\"language-powershell\">powershell -ExecutionPolicy ByPass -c \"irm https:\/\/chatgpt.com\/codex\/install.ps1 | iex\"<\/code><\/pre>\n<p data-pm-slice=\"1 1 []\">The installer puts Codex in <code>%LOCALAPPDATA%\\Programs\\OpenAI\\Codex\\bin<\/code> and adds that folder to your user PATH. You don&#8217;t need an administrator terminal for this either. When the installer asks &#8220;Start Codex now? [y\/N]&#8221;, press Enter to skip it. You&#8217;ll sign in from VA Agent in Step 5.<\/p>\n<div id=\"attachment_5334\" style=\"width: 1034px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2024\/03\/05_install-claude-code-and-codex.png?ssl=1\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-5334\" data-attachment-id=\"5334\" data-permalink=\"https:\/\/www.wholetomato.com\/blog\/visual-assist-2024-2-release-post\/05_install-claude-code-and-codex\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2024\/03\/05_install-claude-code-and-codex.png?fit=1248%2C1050&amp;ssl=1\" data-orig-size=\"1248,1050\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"05_install-claude-code-and-codex\" data-image-description=\"\" data-image-caption=\"&lt;p&gt;Read the installer&#8217;s output. Claude Code may tell you to add its folder to your PATH; Codex adds itself.&lt;\/p&gt;\n\" data-medium-file=\"https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2024\/03\/05_install-claude-code-and-codex.png?fit=300%2C252&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2024\/03\/05_install-claude-code-and-codex.png?fit=1024%2C862&amp;ssl=1\" class=\"size-large wp-image-5334\" src=\"https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2024\/03\/05_install-claude-code-and-codex.png?resize=1024%2C862&#038;ssl=1\" alt=\"Two PowerShell windows labeled Claude Code and Codex. The Claude Code installer's setup note says its folder is not in PATH; the Codex installer reports &quot;PATH updated for future PowerShell sessions.&quot;\" width=\"1024\" height=\"862\" srcset=\"https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2024\/03\/05_install-claude-code-and-codex.png?resize=1024%2C862&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2024\/03\/05_install-claude-code-and-codex.png?resize=300%2C252&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2024\/03\/05_install-claude-code-and-codex.png?resize=768%2C646&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2024\/03\/05_install-claude-code-and-codex.png?resize=360%2C303&amp;ssl=1 360w, https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2024\/03\/05_install-claude-code-and-codex.png?w=1248&amp;ssl=1 1248w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" data-recalc-dims=\"1\" \/><\/a><p id=\"caption-attachment-5334\" class=\"wp-caption-text\">Read the installer&#8217;s output. Claude Code may tell you to add its folder to your PATH; Codex adds itself.<\/p><\/div>\n<h2 data-pm-slice=\"1 1 []\">Step 4. Check that Windows can find the CLI<\/h2>\n<p>Open a new PowerShell window and check that the CLI is available:<\/p>\n<pre><code class=\"language-powershell\">claude --version\r\ncodex --version<\/code><\/pre>\n<p>Run the one for the agent you&#8217;re installing. When properly installed, Claude Code prints a version number such as <code>2.1.295 (Claude Code)<\/code>. Codex prints its version too, such as <code>codex-cli 0.167.2<\/code>.<\/p>\n<p>If PowerShell says the command is not recognized, the install folder isn&#8217;t on your PATH yet, which is the list of folders Windows searches when you type a command.<\/p>\n<ul>\n<li><strong>Claude Code:<\/strong> this happened on our test machine. The installer&#8217;s error prompt tells you how to fix it but doesn&#8217;t apply the fix for you, so here&#8217;s Anthropic&#8217;s documented fix, which adds <code>%USERPROFILE%\\.local\\bin<\/code> to your user PATH:<\/li>\n<\/ul>\n<pre><code class=\"language-powershell\">$currentPath = [Environment]::GetEnvironmentVariable('PATH', 'User')\r\n[Environment]::SetEnvironmentVariable('PATH', \"$currentPath;$env:USERPROFILE\\.local\\bin\", 'User')<\/code><\/pre>\n<ul>\n<li><strong>Codex:<\/strong> the installer adds its folder to your user PATH, so a new terminal is usually enough. If it still isn&#8217;t found, check that <code>%LOCALAPPDATA%\\Programs\\OpenAI\\Codex\\bin<\/code> is in your user PATH.<\/li>\n<\/ul>\n<p>Open another new terminal and check the version again.<\/p>\n<p>Then <strong>restart Visual Studio<\/strong>. Visual Studio should pick up the refreshed PATH when it starts (an instance that was already open won&#8217;t see the new CLI). You can also use the VA Agent panel, which has a <strong>Locate claude on this computer&#8230;<\/strong> or <strong>Locate codex on this computer&#8230;<\/strong> link that lets you point it at the program yourself.<\/p>\n<h2 data-pm-slice=\"1 1 []\">Step 5. Sign in<\/h2>\n<p>Back in VA Agent, send a message. The panel will ask you to sign in.<\/p>\n<h3>Claude Code<\/h3>\n<p>You&#8217;ll see <em>&#8220;Claude Code is not signed in.&#8221;<\/em> and a <strong>Sign in with your Claude account<\/strong> link.<\/p>\n<p>Click the link to open Claude&#8217;s sign-in page in your browser. After signing in, Claude displays a code. Copy it, paste it back into the VA Agent panel, and you should see <em>&#8220;Code accepted.&#8221;<\/em> followed by the account you signed in with.<\/p>\n<div id=\"attachment_5323\" style=\"width: 1034px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2024\/03\/06_claude-code-sign-in-flow.png?ssl=1\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-5323\" data-attachment-id=\"5323\" data-permalink=\"https:\/\/www.wholetomato.com\/blog\/visual-assist-2024-2-release-post\/06_claude-code-sign-in-flow\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2024\/03\/06_claude-code-sign-in-flow.png?fit=1516%2C676&amp;ssl=1\" data-orig-size=\"1516,676\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"06_claude-code-sign-in-flow\" data-image-description=\"\" data-image-caption=\"&lt;p&gt;Sign in, copy the code, and paste it back into VA Agent.&lt;\/p&gt;\n\" data-medium-file=\"https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2024\/03\/06_claude-code-sign-in-flow.png?fit=300%2C134&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2024\/03\/06_claude-code-sign-in-flow.png?fit=1024%2C457&amp;ssl=1\" class=\"size-large wp-image-5323\" src=\"https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2024\/03\/06_claude-code-sign-in-flow.png?resize=1024%2C457&#038;ssl=1\" alt=\"Three numbered steps for Claude Code: VA Agent says Claude Code is not signed in, the browser shows an authentication code to copy, and VA Agent shows &quot;Signed in as \u2026&quot; with the email address blurred.\" width=\"1024\" height=\"457\" srcset=\"https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2024\/03\/06_claude-code-sign-in-flow.png?resize=1024%2C457&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2024\/03\/06_claude-code-sign-in-flow.png?resize=300%2C134&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2024\/03\/06_claude-code-sign-in-flow.png?resize=768%2C342&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2024\/03\/06_claude-code-sign-in-flow.png?resize=360%2C161&amp;ssl=1 360w, https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2024\/03\/06_claude-code-sign-in-flow.png?w=1516&amp;ssl=1 1516w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" data-recalc-dims=\"1\" \/><\/a><p id=\"caption-attachment-5323\" class=\"wp-caption-text\">Sign in, copy the code, and paste it back into VA Agent.<\/p><\/div>\n<h3 data-pm-slice=\"1 1 []\">Codex<\/h3>\n<p>You&#8217;ll see <em>&#8220;Codex is not signed in&#8221;<\/em> and a <strong>Sign in with ChatGPT<\/strong> link.<\/p>\n<p>Click the link and sign in with your ChatGPT account in the browser. OpenAI&#8217;s sign-in hands the result back to Codex on your machine, so there&#8217;s no code to copy. When it&#8217;s done, the browser says &#8220;Signed in to Codex&#8221; and VA Agent shows &#8220;Signed in as&#8221; with your account and plan. You can also sign in from a terminal with <code>codex login<\/code>, or with <code>codex login --device-auth<\/code> if the browser hand-off is blocked on your network.<\/p>\n<div id=\"attachment_5324\" style=\"width: 1034px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2024\/03\/07_codex-sign-in.png?ssl=1\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-5324\" data-attachment-id=\"5324\" data-permalink=\"https:\/\/www.wholetomato.com\/blog\/visual-assist-2024-2-release-post\/07_codex-sign-in\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2024\/03\/07_codex-sign-in.png?fit=1210%2C331&amp;ssl=1\" data-orig-size=\"1210,331\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"07_codex-sign-in\" data-image-description=\"\" data-image-caption=\"&lt;p&gt;Codex signs in through your browser, with no code to copy.&lt;\/p&gt;\n\" data-medium-file=\"https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2024\/03\/07_codex-sign-in.png?fit=300%2C82&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2024\/03\/07_codex-sign-in.png?fit=1024%2C280&amp;ssl=1\" class=\"size-large wp-image-5324\" src=\"https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2024\/03\/07_codex-sign-in.png?resize=1024%2C280&#038;ssl=1\" alt=\"VA Agent with Codex before and after sign-in: &quot;Codex is not signed in&quot; with a Sign in with ChatGPT link, then &quot;Signed in as \u2026 (free). Send your message again,&quot; with the email address hidden.\" width=\"1024\" height=\"280\" srcset=\"https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2024\/03\/07_codex-sign-in.png?resize=1024%2C280&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2024\/03\/07_codex-sign-in.png?resize=300%2C82&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2024\/03\/07_codex-sign-in.png?resize=768%2C210&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2024\/03\/07_codex-sign-in.png?resize=360%2C98&amp;ssl=1 360w, https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2024\/03\/07_codex-sign-in.png?w=1210&amp;ssl=1 1210w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" data-recalc-dims=\"1\" \/><\/a><p id=\"caption-attachment-5324\" class=\"wp-caption-text\">Codex signs in through your browser, with no code to copy.<\/p><\/div>\n<p data-pm-slice=\"1 1 []\">Whichever agent you use, start a <strong>New<\/strong> chat once you&#8217;re signed in. The sign-in exchange stays in the first chat, and you probably don&#8217;t want your account details in a chat you might share or screenshot later.<\/p>\n<h2 data-pm-slice=\"1 1 []\">Step 6. Choose a model and a mode<\/h2>\n<p>Pick a model and an effort level in the <strong>Model<\/strong> and <strong>Effort<\/strong> dropdowns. Available options depend on the agent and your plan, so your lists may look different from ours.<\/p>\n<p>Then pick a <strong>Mode<\/strong>:<\/p>\n<ul>\n<li><strong>Ask Mode<\/strong> is for questions and planning.<\/li>\n<li><strong>Edits allowed<\/strong> lets the agent change files in your solution directly. You can undo its edits.<\/li>\n<\/ul>\n<p>Ask Mode isn&#8217;t a sandbox, so keep your code in version control either way (as you would with any agent working on your code).<\/p>\n<p>The agent choice is fixed after your first message in a chat. To switch between Claude Code and Codex, start a <strong>New<\/strong> chat.<\/p>\n<div id=\"attachment_5325\" style=\"width: 902px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2024\/03\/08_va-agent-mode.png?ssl=1\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-5325\" data-attachment-id=\"5325\" data-permalink=\"https:\/\/www.wholetomato.com\/blog\/visual-assist-2024-2-release-post\/08_va-agent-mode\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2024\/03\/08_va-agent-mode.png?fit=892%2C258&amp;ssl=1\" data-orig-size=\"892,258\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"08_va-agent-mode\" data-image-description=\"\" data-image-caption=\"&lt;p&gt;Ask Mode for questions, Edits allowed when you want the agent to change files.&lt;\/p&gt;\n\" data-medium-file=\"https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2024\/03\/08_va-agent-mode.png?fit=300%2C87&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2024\/03\/08_va-agent-mode.png?fit=892%2C258&amp;ssl=1\" class=\"size-full wp-image-5325\" src=\"https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2024\/03\/08_va-agent-mode.png?resize=892%2C258&#038;ssl=1\" alt=\"VA Agent Mode dropdown open, with Ask Mode labeled &quot;questions and planning&quot; and Edits allowed labeled &quot;agent edits your files.&quot;\" width=\"892\" height=\"258\" srcset=\"https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2024\/03\/08_va-agent-mode.png?w=892&amp;ssl=1 892w, https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2024\/03\/08_va-agent-mode.png?resize=300%2C87&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2024\/03\/08_va-agent-mode.png?resize=768%2C222&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2024\/03\/08_va-agent-mode.png?resize=360%2C104&amp;ssl=1 360w\" sizes=\"auto, (max-width: 892px) 100vw, 892px\" data-recalc-dims=\"1\" \/><\/a><p id=\"caption-attachment-5325\" class=\"wp-caption-text\">Ask Mode for questions, Edits allowed when you want the agent to change files.<\/p><\/div>\n<h2 data-pm-slice=\"1 1 []\">Try it on real code<\/h2>\n<p>We tried two tasks on a small sample solution. The screenshots show both Claude Code and Codex, but the steps are the same for either agent.<\/p>\n<p><strong>Ask about code before you change it.<\/strong> While using Ask Mode, we asked the agent to &#8220;Explain what NextPowerOfTwo in Core\/MathUtil.cpp does&#8221;.<\/p>\n<p>It opened the file itself and explained what the function does, with a table of example inputs and results. You can name a function, class or file in the same way, which makes it a quick way to get your bearings in code you didn&#8217;t write.<\/p>\n<div id=\"attachment_5326\" style=\"width: 997px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2024\/03\/09_ask-mode-claude-code.png?ssl=1\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-5326\" data-attachment-id=\"5326\" data-permalink=\"https:\/\/www.wholetomato.com\/blog\/visual-assist-2024-2-release-post\/09_ask-mode-claude-code\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2024\/03\/09_ask-mode-claude-code.png?fit=987%2C508&amp;ssl=1\" data-orig-size=\"987,508\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"09_ask-mode-claude-code\" data-image-description=\"\" data-image-caption=\"&lt;p&gt;Ask Mode: name a function and the agent reads the code and explains it.&lt;\/p&gt;\n\" data-medium-file=\"https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2024\/03\/09_ask-mode-claude-code.png?fit=300%2C154&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2024\/03\/09_ask-mode-claude-code.png?fit=987%2C508&amp;ssl=1\" class=\"size-full wp-image-5326\" src=\"https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2024\/03\/09_ask-mode-claude-code.png?resize=987%2C508&#038;ssl=1\" alt=\" VA Agent in Ask Mode with Claude Code explaining the NextPowerOfTwo function from MathUtil.cpp, including a table of example inputs and results.\" width=\"987\" height=\"508\" srcset=\"https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2024\/03\/09_ask-mode-claude-code.png?w=987&amp;ssl=1 987w, https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2024\/03\/09_ask-mode-claude-code.png?resize=300%2C154&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2024\/03\/09_ask-mode-claude-code.png?resize=768%2C395&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2024\/03\/09_ask-mode-claude-code.png?resize=360%2C185&amp;ssl=1 360w\" sizes=\"auto, (max-width: 987px) 100vw, 987px\" data-recalc-dims=\"1\" \/><\/a><p id=\"caption-attachment-5326\" class=\"wp-caption-text\">Ask Mode: name a function and the agent reads the code and explains it.<\/p><\/div>\n<div id=\"attachment_5327\" style=\"width: 852px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2024\/03\/10_ask-mode-codex.png?ssl=1\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-5327\" data-attachment-id=\"5327\" data-permalink=\"https:\/\/www.wholetomato.com\/blog\/visual-assist-2024-2-release-post\/10_ask-mode-codex\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2024\/03\/10_ask-mode-codex.png?fit=842%2C578&amp;ssl=1\" data-orig-size=\"842,578\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"10_ask-mode-codex\" data-image-description=\"\" data-image-caption=\"&lt;p&gt;The same question, answered by Codex.&lt;\/p&gt;\n\" data-medium-file=\"https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2024\/03\/10_ask-mode-codex.png?fit=300%2C206&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2024\/03\/10_ask-mode-codex.png?fit=842%2C578&amp;ssl=1\" class=\"size-full wp-image-5327\" src=\"https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2024\/03\/10_ask-mode-codex.png?resize=842%2C578&#038;ssl=1\" alt=\"VA Agent in Ask Mode with Codex explaining the NextPowerOfTwo function from MathUtil.cpp, with example inputs and results.\" width=\"842\" height=\"578\" srcset=\"https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2024\/03\/10_ask-mode-codex.png?w=842&amp;ssl=1 842w, https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2024\/03\/10_ask-mode-codex.png?resize=300%2C206&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2024\/03\/10_ask-mode-codex.png?resize=768%2C527&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2024\/03\/10_ask-mode-codex.png?resize=360%2C247&amp;ssl=1 360w\" sizes=\"auto, (max-width: 842px) 100vw, 842px\" data-recalc-dims=\"1\" \/><\/a><p id=\"caption-attachment-5327\" class=\"wp-caption-text\">The same question, answered by Codex.<\/p><\/div>\n<p data-pm-slice=\"1 1 []\"><strong>Make a targeted change and review it first.<\/strong> Select the code you want changed, press <em>Shift + Alt + Q<\/em> and choose <strong>Change Code with AI<\/strong>. A small panel opens under the selection with its own <strong>Agent<\/strong> picker. Describe the change and click <strong>Run<\/strong>. We selected <code>FindAssetByName<\/code> and asked the agent to use <code>std::find_if<\/code> and return <code>nullptr<\/code>.<\/p>\n<p>The proposal shows up in VA Agent as a diff, and nothing changes in your file until you click <strong>Apply<\/strong>.<\/p>\n<div id=\"attachment_5328\" style=\"width: 1034px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2024\/03\/11_change-code-with-ai.png?ssl=1\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-5328\" data-attachment-id=\"5328\" data-permalink=\"https:\/\/www.wholetomato.com\/blog\/visual-assist-2024-2-release-post\/11_change-code-with-ai\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2024\/03\/11_change-code-with-ai.png?fit=1406%2C759&amp;ssl=1\" data-orig-size=\"1406,759\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"11_change-code-with-ai\" data-image-description=\"\" data-image-caption=\"&lt;p&gt;Change Code with AI proposes a diff in VA Agent. Your file changes only when you click Apply.&lt;\/p&gt;\n\" data-medium-file=\"https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2024\/03\/11_change-code-with-ai.png?fit=300%2C162&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2024\/03\/11_change-code-with-ai.png?fit=1024%2C553&amp;ssl=1\" class=\"size-large wp-image-5328\" src=\"https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2024\/03\/11_change-code-with-ai.png?resize=1024%2C553&#038;ssl=1\" alt=\"Lines 14 to 23 of AssetRegistry.cpp selected in the editor, with VA Agent's proposed diff overlaid: the for loop replaced by std::find_if, returning nullptr, with the Apply link highlighted.\" width=\"1024\" height=\"553\" srcset=\"https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2024\/03\/11_change-code-with-ai.png?resize=1024%2C553&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2024\/03\/11_change-code-with-ai.png?resize=300%2C162&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2024\/03\/11_change-code-with-ai.png?resize=768%2C415&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2024\/03\/11_change-code-with-ai.png?resize=360%2C194&amp;ssl=1 360w, https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2024\/03\/11_change-code-with-ai.png?w=1406&amp;ssl=1 1406w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" data-recalc-dims=\"1\" \/><\/a><p id=\"caption-attachment-5328\" class=\"wp-caption-text\">Change Code with AI proposes a diff in VA Agent. Your file changes only when you click Apply.<\/p><\/div>\n<p data-pm-slice=\"1 1 []\">Change Code works well for smaller changes that you want to review before applying. When you&#8217;re happy to let the agent edit files itself, switch to Edits allowed, and use undo if you don&#8217;t like the result.<\/p>\n<h2>Optional: run a local model instead<\/h2>\n<p>You can also run Gemma 4 locally if you prefer not to send code to an external AI provider, or don&#8217;t have a Claude or ChatGPT account. It&#8217;s separate from the setup above and entirely optional.<\/p>\n<p>Go to <strong>Extensions \u2192 VAssistX \u2192 Visual Assist Options \u2192 VA Intelligence<\/strong> (the same page as Step 1) and click <strong>Download Ollama &amp; Gemma 4<\/strong>. When the download finishes, pick <strong>Gemma 4 (local)<\/strong> in the Agent dropdown. There&#8217;s no CLI to install and no account to sign in to. It needs a GPU with at least 12 GB of video memory, and the download is about 9 GB.<\/p>\n<p>Where your code goes depends on the agent. With Gemma 4, it stays on your machine. With Claude Code or Codex, it goes to Anthropic or OpenAI under your own account, just as it does when you run those tools in a terminal. Either way, nothing passes through Whole Tomato&#8217;s servers.<\/p>\n<h2 data-pm-slice=\"1 4 []\">Troubleshooting<\/h2>\n<table>\n<colgroup>\n<col \/>\n<col \/><\/colgroup>\n<tbody>\n<tr>\n<th colspan=\"1\" rowspan=\"1\">What you see<\/th>\n<th colspan=\"1\" rowspan=\"1\">What to do<\/th>\n<\/tr>\n<tr>\n<td colspan=\"1\" rowspan=\"1\"><code>claude<\/code> is not recognized<\/td>\n<td colspan=\"1\" rowspan=\"1\">Add <code>%USERPROFILE%\\.local\\bin<\/code> to your user PATH (Step 4), then open a new terminal<\/td>\n<\/tr>\n<tr>\n<td colspan=\"1\" rowspan=\"1\"><code>codex<\/code> is not recognized<\/td>\n<td colspan=\"1\" rowspan=\"1\">Open a new terminal. If it&#8217;s still missing, check that <code>%LOCALAPPDATA%\\Programs\\OpenAI\\Codex\\bin<\/code> is in your user PATH<\/td>\n<\/tr>\n<tr>\n<td colspan=\"1\" rowspan=\"1\"><code>irm<\/code> is not recognized<\/td>\n<td colspan=\"1\" rowspan=\"1\">You&#8217;re in Command Prompt. Run the install command in PowerShell (for Claude Code, Anthropic also has a CMD version)<\/td>\n<\/tr>\n<tr>\n<td colspan=\"1\" rowspan=\"1\">VA Agent says the CLI wasn&#8217;t found, but it runs in a terminal<\/td>\n<td colspan=\"1\" rowspan=\"1\">Restart Visual Studio, or use Locate claude on this computer&#8230; \/ Locate codex on this computer&#8230;<\/td>\n<\/tr>\n<tr>\n<td colspan=\"1\" rowspan=\"1\">Claude Code sign-in timed out<\/td>\n<td colspan=\"1\" rowspan=\"1\">Click the sign-in link again, or run <code>claude auth login<\/code><\/td>\n<\/tr>\n<tr>\n<td colspan=\"1\" rowspan=\"1\">Codex sign-in doesn&#8217;t finish<\/td>\n<td colspan=\"1\" rowspan=\"1\">Run <code>codex login<\/code>, or <code>codex login --device-auth<\/code> if the browser hand-off is blocked<\/td>\n<\/tr>\n<tr>\n<td colspan=\"1\" rowspan=\"1\">VA Agent asks you to upgrade Codex<\/td>\n<td colspan=\"1\" rowspan=\"1\">Newer Codex models need a recent CLI. Run the install command again.<\/td>\n<\/tr>\n<tr>\n<td colspan=\"1\" rowspan=\"1\">The installer won&#8217;t run on an older Windows version<\/td>\n<td colspan=\"1\" rowspan=\"1\">Both CLIs need Windows 10 (1809) or later.<\/td>\n<\/tr>\n<tr>\n<td colspan=\"1\" rowspan=\"1\">Your plan can&#8217;t use the agent<\/td>\n<td colspan=\"1\" rowspan=\"1\">Claude Code needs a paid Claude plan or a Console account. Codex needs a ChatGPT account (the Free plan worked in our test)<\/td>\n<\/tr>\n<tr>\n<td colspan=\"1\" rowspan=\"1\">You can&#8217;t change the agent in a chat<\/td>\n<td colspan=\"1\" rowspan=\"1\">Start a New chat<\/td>\n<\/tr>\n<tr>\n<td colspan=\"1\" rowspan=\"1\">VA Agent doesn&#8217;t run<\/td>\n<td colspan=\"1\" rowspan=\"1\">Open a solution first<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p data-pm-slice=\"1 1 []\">For anything else, Anthropic&#8217;s <a href=\"https:\/\/code.claude.com\/docs\/en\/troubleshoot-install\">installation troubleshooting page<\/a> (including <code>claude doctor<\/code>, which has a health check of your install) and OpenAI&#8217;s <a href=\"https:\/\/learn.chatgpt.com\/docs\/reference\/troubleshooting\">Codex troubleshooting page<\/a> should cover more cases.<\/p>\n<h2 data-pm-slice=\"1 1 []\">The agent, next to your code<\/h2>\n<p>You can now use the same Claude Code or Codex CLI you&#8217;d run in a terminal, but from a docked window inside Visual Studio. It can read the files in your solution when you ask it something, and you can add or change code similarly as well. You can also switch anytime between Claude Code and Codex with a new chat.<\/p>\n<p>VA Agent will keep changing, with new capabilities and refinements in upcoming releases. Tell us what it should do next on our <a href=\"https:\/\/discord.gg\/mxQqAj5PHQ\">Discord<\/a>.<\/p>\n<p>If you already use Visual Assist, <a href=\"https:\/\/www.wholetomato.com\/features\/whats-new\">update to 2026.5<\/a>. If you&#8217;re new, you can try all of this free for 30 days.<\/p>\n<div class=\"actions\">\r\n\t<a href=\"https:\/\/www.wholetomato.com\/downloads?utm_content=blog-claude-code-visual-studio?utm_content=blog-\" class=\"button secondary\">Try Visual Assist<\/a>\r\n<\/div>\n<h2 data-pm-slice=\"1 1 []\">FAQ<\/h2>\n<h3>Is there a Claude Code or Codex extension for Visual Studio?<\/h3>\n<p>Neither has an official one. Anthropic&#8217;s IDE integrations are for VS Code and JetBrains IDEs, and OpenAI&#8217;s Codex integrations cover VS Code-based editors, Xcode and JetBrains. In Visual Studio, you can run either CLI in a terminal, or use VA Agent in Visual Assist to run it in a docked window.<\/p>\n<h3>Should I use Claude Code or Codex in VA Agent?<\/h3>\n<p>Use the one you already have a plan for. Both run in the same VA Agent window with the same modes, and you can switch between them by starting a new chat.<\/p>\n<h3>Does Visual Assist include a Claude or ChatGPT subscription?<\/h3>\n<p>No. Claude Code and Codex use your own account and plan. The optional local Gemma 4 model doesn&#8217;t need an account.<\/p>\n<h3>Does my code go through Whole Tomato&#8217;s servers?<\/h3>\n<p>No. Claude Code and Codex send your code to their own providers under your account. The local Gemma 4 model runs on your machine. Nothing passes through Whole Tomato&#8217;s servers.<\/p>\n<h3>Which Visual Studio and Windows versions does VA Agent support?<\/h3>\n<p>VA Agent supports Visual Studio 2015 and later, and in practice it needs Windows 10. The Claude Code and Codex CLIs need Windows 10 (version 1809) or later, and the local Gemma 4 model runs on Ollama, which needs Windows 10 (22H2) or later.<\/p>\n<h3>What&#8217;s the difference between Ask Mode and Edits allowed?<\/h3>\n<p>Ask Mode is for questions and planning. Edits allowed lets the agent change files in your solution directly, and you can undo its edits. Ask Mode isn&#8217;t a sandbox, so use version control either way.<\/p>\n<hr \/>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Steps tested with Visual Assist 2026.5 in Visual Studio 2026 and checked against Anthropic&#8217;s and OpenAI&#8217;s setup docs in November 2026. Not for VS Code. Already have an existing Claude or ChatGPT account? If you&#8230;<\/p>\n","protected":false},"author":213500340,"featured_media":5329,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_coblocks_attr":"","_coblocks_dimensions":"","_coblocks_responsive_height":"","_coblocks_accordion_ie_support":"","jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_newsletter_tier_id":0,"footnotes":"","jetpack_publicize_message":"","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false}}},"categories":[672],"tags":[726360038,726360779,726360781,726360764,726360777,6678],"class_list":["post-5321","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tips-and-tricks","tag-ai","tag-claude-code","tag-codex","tag-va-agent","tag-visual-assist-2026-5","tag-visual-studio"],"jetpack_publicize_connections":[],"aioseo_notices":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2024\/03\/00_header-claude-code-codex-in-visual-studio.png?fit=1672%2C941&ssl=1","jetpack_likes_enabled":true,"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/pfpLS4-1nP","aioseo_head":"\n\t\t<!-- All in One SEO Pro 4.9.7.2 - aioseo.com -->\n\t<meta name=\"description\" content=\"Claude Code and Codex have no official Visual Studio extension. Here&#039;s how to install, sign in and run either one inside Visual Studio with VA Agent.\" \/>\n\t<meta name=\"robots\" content=\"max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n\t<meta name=\"author\" content=\"Tristan Soliven\"\/>\n\t<meta name=\"google-site-verification\" content=\"DtHrwoEjg0KG_fbuPSp5j_wNIf-g5hSh4EH6tZBoCIw\" \/>\n\t<link rel=\"canonical\" href=\"https:\/\/www.wholetomato.com\/blog\/claude-code-visual-studio\/](https:\/\/www.wholetomato.com\/blog\/claude-code-visual-studio\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO Pro (AIOSEO) 4.9.7.2\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"Visual Assist Blog - C++ and Visual Studio guides from the Visual Assist team. Working in large and legacy codebases, refactoring, AI tooling, plus notes on every release.\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"Claude Code or Codex in Visual Studio for C++\" \/>\n\t\t<meta property=\"og:description\" content=\"Claude Code and Codex have no official Visual Studio extension. Here&#039;s how to install, sign in and run either one inside Visual Studio with VA Agent.\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/www.wholetomato.com\/blog\/claude-code-visual-studio\/](https:\/\/www.wholetomato.com\/blog\/claude-code-visual-studio\/\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2026-11-19T20:26:43+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2026-11-19T20:36:32+00:00\" \/>\n\t\t<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/wholetomatosoftware\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n\t\t<meta name=\"twitter:site\" content=\"@visualassist\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Claude Code or Codex in Visual Studio for C++\" \/>\n\t\t<meta name=\"twitter:description\" content=\"Claude Code and Codex have no official Visual Studio extension. Here&#039;s how to install, sign in and run either one inside Visual Studio with VA Agent.\" \/>\n\t\t<meta name=\"twitter:creator\" content=\"@visualassist\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"BlogPosting\",\"@id\":\"https:\\\/\\\/www.wholetomato.com\\\/blog\\\/how-to-install-and-use-claude-code-or-codex-in-visual-studio-for-c\\\/#blogposting\",\"name\":\"Claude Code or Codex in Visual Studio for C++\",\"headline\":\"How to Install and Use Claude Code or Codex in Visual Studio for C++\",\"author\":{\"@id\":\"https:\\\/\\\/www.wholetomato.com\\\/blog\\\/author\\\/tristansoliven\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/www.wholetomato.com\\\/blog\\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/i0.wp.com\\\/www.wholetomato.com\\\/blog\\\/wp-content\\\/uploads\\\/2024\\\/03\\\/00_header-claude-code-codex-in-visual-studio.png?fit=1672%2C941&ssl=1\",\"width\":1672,\"height\":941},\"datePublished\":\"2026-11-19T16:26:43-04:00\",\"dateModified\":\"2026-11-19T16:36:32-04:00\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.wholetomato.com\\\/blog\\\/how-to-install-and-use-claude-code-or-codex-in-visual-studio-for-c\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.wholetomato.com\\\/blog\\\/how-to-install-and-use-claude-code-or-codex-in-visual-studio-for-c\\\/#webpage\"},\"articleSection\":\"Tips and Tricks, ai, claude code, codex, VA Agent, visual assist 2026.5, Visual Studio, English\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.wholetomato.com\\\/blog\\\/how-to-install-and-use-claude-code-or-codex-in-visual-studio-for-c\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.wholetomato.com\\\/blog#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.wholetomato.com\\\/blog\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.wholetomato.com\\\/blog\\\/category\\\/tips-and-tricks\\\/#listItem\",\"name\":\"Tips and Tricks\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.wholetomato.com\\\/blog\\\/category\\\/tips-and-tricks\\\/#listItem\",\"position\":2,\"name\":\"Tips and Tricks\",\"item\":\"https:\\\/\\\/www.wholetomato.com\\\/blog\\\/category\\\/tips-and-tricks\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.wholetomato.com\\\/blog\\\/how-to-install-and-use-claude-code-or-codex-in-visual-studio-for-c\\\/#listItem\",\"name\":\"How to Install and Use Claude Code or Codex in Visual Studio for C++\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.wholetomato.com\\\/blog#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.wholetomato.com\\\/blog\\\/how-to-install-and-use-claude-code-or-codex-in-visual-studio-for-c\\\/#listItem\",\"position\":3,\"name\":\"How to Install and Use Claude Code or Codex in Visual Studio for C++\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.wholetomato.com\\\/blog\\\/category\\\/tips-and-tricks\\\/#listItem\",\"name\":\"Tips and Tricks\"}}]},{\"@type\":\"FAQPage\",\"@id\":\"https:\\\/\\\/www.wholetomato.com\\\/blog\\\/claude-code-visual-studio\\\/#faq\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.wholetomato.com\\\/blog\\\/claude-code-visual-studio\\\/#webpage\"},\"mainEntity\":[{\"@type\":\"Question\",\"name\":\"Is there a Claude Code or Codex extension for Visual Studio?\",\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"Neither has an official one. Anthropic's IDE integrations are for VS Code and JetBrains IDEs, and OpenAI's Codex integrations cover VS Code-based editors, Xcode and JetBrains. In Visual Studio, you can run either CLI in a terminal, or use VA Agent in Visual Assist to run it in a docked window.\"}},{\"@type\":\"Question\",\"name\":\"Should I use Claude Code or Codex in VA Agent?\",\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"Use the one you already have a plan for. Both run in the same VA Agent window with the same modes, and you can switch between them by starting a new chat.\"}},{\"@type\":\"Question\",\"name\":\"Does Visual Assist include a Claude or ChatGPT subscription?\",\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"No. Claude Code and Codex use your own account and plan. The optional local Gemma 4 model doesn't need an account.\"}},{\"@type\":\"Question\",\"name\":\"Does my code go through Whole Tomato's servers?\",\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"No. Claude Code and Codex send your code to their own providers under your account. The local Gemma 4 model runs on your machine. Nothing passes through Whole Tomato's servers.\"}},{\"@type\":\"Question\",\"name\":\"Which Visual Studio and Windows versions does VA Agent support?\",\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"VA Agent supports Visual Studio 2015 and later, and in practice it needs Windows 10. The Claude Code and Codex CLIs need Windows 10 (version 1809) or later, and the local Gemma 4 model runs on Ollama, which needs Windows 10 (22H2) or later.\"}},{\"@type\":\"Question\",\"name\":\"What's the difference between Ask Mode and Edits allowed?\",\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"Ask Mode is for questions and planning. Edits allowed lets the agent change files in your solution directly, and you can undo its edits. Ask Mode isn't a sandbox, so use version control either way.\"}}]},{\"@type\":\"HowTo\",\"@id\":\"https:\\\/\\\/www.wholetomato.com\\\/blog\\\/claude-code-visual-studio\\\/#howto\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.wholetomato.com\\\/blog\\\/claude-code-visual-studio\\\/#webpage\"},\"name\":\"How to set up Claude Code or Codex in Visual Studio with VA Agent\",\"description\":\"Install the Claude Code or Codex CLI on Windows, sign in with your existing account, and run either agent inside Visual Studio through VA Agent in Visual Assist.\",\"image\":\"https:\\\/\\\/www.wholetomato.com\\\/blog\\\/wp-content\\\/uploads\\\/2024\\\/03\\\/00_header-claude-code-codex-in-visual-studio.png\",\"tool\":[{\"@type\":\"HowToTool\",\"name\":\"Visual Assist 2026.5 or later\"},{\"@type\":\"HowToTool\",\"name\":\"Visual Studio 2015 or later\"},{\"@type\":\"HowToTool\",\"name\":\"Windows PowerShell\"}],\"supply\":[{\"@type\":\"HowToSupply\",\"name\":\"A Claude plan or Anthropic Console account (Claude Code), or a ChatGPT account (Codex)\"}],\"step\":[{\"@type\":\"HowToStep\",\"position\":1,\"name\":\"Install or update Visual Assist and turn on VA Intelligence\",\"text\":\"Install Visual Assist 2026.5 or later (the 30-day trial works too). Then go to Extensions \\u2192 VAssistX \\u2192 Visual Assist Options \\u2192 VA Intelligence, check Enable VA Intelligence, and click Save.\"},{\"@type\":\"HowToStep\",\"position\":2,\"name\":\"Open VA Agent and pick your agent\",\"text\":\"Open a solution, go to Extensions \\u2192 VAssistX \\u2192 Tools \\u2192 VA Agent, and pick Claude Code or Codex in the Agent dropdown.\"},{\"@type\":\"HowToStep\",\"position\":3,\"name\":\"Install the CLI\",\"text\":\"From Windows PowerShell, run Anthropic's installer for Claude Code (irm https:\\\/\\\/claude.ai\\\/install.ps1 | iex) or OpenAI's installer for Codex (powershell -ExecutionPolicy ByPass -c \\\"irm https:\\\/\\\/chatgpt.com\\\/codex\\\/install.ps1 | iex\\\").\"},{\"@type\":\"HowToStep\",\"position\":4,\"name\":\"Check that Windows can find the CLI\",\"text\":\"Open a new PowerShell window and run claude --version or codex --version. If the command is not recognized, add the install folder to your user PATH, then restart Visual Studio.\"},{\"@type\":\"HowToStep\",\"position\":5,\"name\":\"Sign in\",\"text\":\"Send a message in VA Agent and click Sign in with your Claude account or Sign in with ChatGPT. For Claude Code, paste the code from the browser back into VA Agent. Codex has no code to copy.\"},{\"@type\":\"HowToStep\",\"position\":6,\"name\":\"Choose a model and a mode\",\"text\":\"Pick a model and an effort level, then choose Ask Mode for questions and planning, or Edits allowed to let the agent change files in your solution directly.\"}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.wholetomato.com\\\/blog\\\/#organization\",\"name\":\"Tomato Soup\",\"description\":\"C++ and Visual Studio guides from the Visual Assist team. Working in large and legacy codebases, refactoring, AI tooling, plus notes on every release.\",\"url\":\"https:\\\/\\\/www.wholetomato.com\\\/blog\\\/\",\"email\":\"info@wholetomato.com\",\"numberOfEmployees\":{\"@type\":\"QuantitativeValue\",\"minValue\":0,\"maxValue\":100},\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/i0.wp.com\\\/www.wholetomato.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/05\\\/WT_symbol.png?fit=112%2C112&ssl=1\",\"@id\":\"https:\\\/\\\/www.wholetomato.com\\\/blog\\\/how-to-install-and-use-claude-code-or-codex-in-visual-studio-for-c\\\/#organizationLogo\",\"width\":112,\"height\":112,\"caption\":\"visual assist main tomato symbol icon\"},\"image\":{\"@id\":\"https:\\\/\\\/www.wholetomato.com\\\/blog\\\/how-to-install-and-use-claude-code-or-codex-in-visual-studio-for-c\\\/#organizationLogo\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/wholetomatosoftware\",\"https:\\\/\\\/twitter.com\\\/visualassist\",\"https:\\\/\\\/www.youtube.com\\\/c\\\/Wholetomatosoftware\",\"https:\\\/\\\/www.linkedin.com\\\/company\\\/whole-tomato-software\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.wholetomato.com\\\/blog\\\/author\\\/tristansoliven\\\/#author\",\"url\":\"https:\\\/\\\/www.wholetomato.com\\\/blog\\\/author\\\/tristansoliven\\\/\",\"name\":\"Tristan Soliven\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.wholetomato.com\\\/blog\\\/how-to-install-and-use-claude-code-or-codex-in-visual-studio-for-c\\\/#webpage\",\"url\":\"https:\\\/\\\/www.wholetomato.com\\\/blog\\\/how-to-install-and-use-claude-code-or-codex-in-visual-studio-for-c\\\/\",\"name\":\"Claude Code or Codex in Visual Studio for C++\",\"description\":\"Claude Code and Codex have no official Visual Studio extension. Here's how to install, sign in and run either one inside Visual Studio with VA Agent.\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.wholetomato.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.wholetomato.com\\\/blog\\\/how-to-install-and-use-claude-code-or-codex-in-visual-studio-for-c\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/www.wholetomato.com\\\/blog\\\/author\\\/tristansoliven\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/www.wholetomato.com\\\/blog\\\/author\\\/tristansoliven\\\/#author\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/i0.wp.com\\\/www.wholetomato.com\\\/blog\\\/wp-content\\\/uploads\\\/2024\\\/03\\\/00_header-claude-code-codex-in-visual-studio.png?fit=1672%2C941&ssl=1\",\"@id\":\"https:\\\/\\\/www.wholetomato.com\\\/blog\\\/how-to-install-and-use-claude-code-or-codex-in-visual-studio-for-c\\\/#mainImage\",\"width\":1672,\"height\":941},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.wholetomato.com\\\/blog\\\/how-to-install-and-use-claude-code-or-codex-in-visual-studio-for-c\\\/#mainImage\"},\"datePublished\":\"2026-11-19T16:26:43-04:00\",\"dateModified\":\"2026-11-19T16:36:32-04:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.wholetomato.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.wholetomato.com\\\/blog\\\/\",\"name\":\"Tomato Soup\",\"description\":\"C++ and Visual Studio guides from the Visual Assist team. Working in large and legacy codebases, refactoring, AI tooling, plus notes on every release.\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.wholetomato.com\\\/blog\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO Pro -->\r\n\t\t<title>Claude Code or Codex in Visual Studio for C++<\/title>\n\n","aioseo_head_json":{"title":"Claude Code or Codex in Visual Studio for C++","description":"Claude Code and Codex have no official Visual Studio extension. Here's how to install, sign in and run either one inside Visual Studio with VA Agent.","canonical_url":"https:\/\/www.wholetomato.com\/blog\/claude-code-visual-studio\/](https:\/\/www.wholetomato.com\/blog\/claude-code-visual-studio\/","robots":"max-snippet:-1, max-image-preview:large, max-video-preview:-1","keywords":"","webmasterTools":{"google-site-verification":"DtHrwoEjg0KG_fbuPSp5j_wNIf-g5hSh4EH6tZBoCIw","miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"BlogPosting","@id":"https:\/\/www.wholetomato.com\/blog\/how-to-install-and-use-claude-code-or-codex-in-visual-studio-for-c\/#blogposting","name":"Claude Code or Codex in Visual Studio for C++","headline":"How to Install and Use Claude Code or Codex in Visual Studio for C++","author":{"@id":"https:\/\/www.wholetomato.com\/blog\/author\/tristansoliven\/#author"},"publisher":{"@id":"https:\/\/www.wholetomato.com\/blog\/#organization"},"image":{"@type":"ImageObject","url":"https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2024\/03\/00_header-claude-code-codex-in-visual-studio.png?fit=1672%2C941&ssl=1","width":1672,"height":941},"datePublished":"2026-11-19T16:26:43-04:00","dateModified":"2026-11-19T16:36:32-04:00","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/www.wholetomato.com\/blog\/how-to-install-and-use-claude-code-or-codex-in-visual-studio-for-c\/#webpage"},"isPartOf":{"@id":"https:\/\/www.wholetomato.com\/blog\/how-to-install-and-use-claude-code-or-codex-in-visual-studio-for-c\/#webpage"},"articleSection":"Tips and Tricks, ai, claude code, codex, VA Agent, visual assist 2026.5, Visual Studio, English"},{"@type":"BreadcrumbList","@id":"https:\/\/www.wholetomato.com\/blog\/how-to-install-and-use-claude-code-or-codex-in-visual-studio-for-c\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/www.wholetomato.com\/blog#listItem","position":1,"name":"Home","item":"https:\/\/www.wholetomato.com\/blog","nextItem":{"@type":"ListItem","@id":"https:\/\/www.wholetomato.com\/blog\/category\/tips-and-tricks\/#listItem","name":"Tips and Tricks"}},{"@type":"ListItem","@id":"https:\/\/www.wholetomato.com\/blog\/category\/tips-and-tricks\/#listItem","position":2,"name":"Tips and Tricks","item":"https:\/\/www.wholetomato.com\/blog\/category\/tips-and-tricks\/","nextItem":{"@type":"ListItem","@id":"https:\/\/www.wholetomato.com\/blog\/how-to-install-and-use-claude-code-or-codex-in-visual-studio-for-c\/#listItem","name":"How to Install and Use Claude Code or Codex in Visual Studio for C++"},"previousItem":{"@type":"ListItem","@id":"https:\/\/www.wholetomato.com\/blog#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/www.wholetomato.com\/blog\/how-to-install-and-use-claude-code-or-codex-in-visual-studio-for-c\/#listItem","position":3,"name":"How to Install and Use Claude Code or Codex in Visual Studio for C++","previousItem":{"@type":"ListItem","@id":"https:\/\/www.wholetomato.com\/blog\/category\/tips-and-tricks\/#listItem","name":"Tips and Tricks"}}]},{"@type":"FAQPage","@id":"https:\/\/www.wholetomato.com\/blog\/claude-code-visual-studio\/#faq","isPartOf":{"@id":"https:\/\/www.wholetomato.com\/blog\/claude-code-visual-studio\/#webpage"},"mainEntity":[{"@type":"Question","name":"Is there a Claude Code or Codex extension for Visual Studio?","acceptedAnswer":{"@type":"Answer","text":"Neither has an official one. Anthropic's IDE integrations are for VS Code and JetBrains IDEs, and OpenAI's Codex integrations cover VS Code-based editors, Xcode and JetBrains. In Visual Studio, you can run either CLI in a terminal, or use VA Agent in Visual Assist to run it in a docked window."}},{"@type":"Question","name":"Should I use Claude Code or Codex in VA Agent?","acceptedAnswer":{"@type":"Answer","text":"Use the one you already have a plan for. Both run in the same VA Agent window with the same modes, and you can switch between them by starting a new chat."}},{"@type":"Question","name":"Does Visual Assist include a Claude or ChatGPT subscription?","acceptedAnswer":{"@type":"Answer","text":"No. Claude Code and Codex use your own account and plan. The optional local Gemma 4 model doesn't need an account."}},{"@type":"Question","name":"Does my code go through Whole Tomato's servers?","acceptedAnswer":{"@type":"Answer","text":"No. Claude Code and Codex send your code to their own providers under your account. The local Gemma 4 model runs on your machine. Nothing passes through Whole Tomato's servers."}},{"@type":"Question","name":"Which Visual Studio and Windows versions does VA Agent support?","acceptedAnswer":{"@type":"Answer","text":"VA Agent supports Visual Studio 2015 and later, and in practice it needs Windows 10. The Claude Code and Codex CLIs need Windows 10 (version 1809) or later, and the local Gemma 4 model runs on Ollama, which needs Windows 10 (22H2) or later."}},{"@type":"Question","name":"What's the difference between Ask Mode and Edits allowed?","acceptedAnswer":{"@type":"Answer","text":"Ask Mode is for questions and planning. Edits allowed lets the agent change files in your solution directly, and you can undo its edits. Ask Mode isn't a sandbox, so use version control either way."}}]},{"@type":"HowTo","@id":"https:\/\/www.wholetomato.com\/blog\/claude-code-visual-studio\/#howto","isPartOf":{"@id":"https:\/\/www.wholetomato.com\/blog\/claude-code-visual-studio\/#webpage"},"name":"How to set up Claude Code or Codex in Visual Studio with VA Agent","description":"Install the Claude Code or Codex CLI on Windows, sign in with your existing account, and run either agent inside Visual Studio through VA Agent in Visual Assist.","image":"https:\/\/www.wholetomato.com\/blog\/wp-content\/uploads\/2024\/03\/00_header-claude-code-codex-in-visual-studio.png","tool":[{"@type":"HowToTool","name":"Visual Assist 2026.5 or later"},{"@type":"HowToTool","name":"Visual Studio 2015 or later"},{"@type":"HowToTool","name":"Windows PowerShell"}],"supply":[{"@type":"HowToSupply","name":"A Claude plan or Anthropic Console account (Claude Code), or a ChatGPT account (Codex)"}],"step":[{"@type":"HowToStep","position":1,"name":"Install or update Visual Assist and turn on VA Intelligence","text":"Install Visual Assist 2026.5 or later (the 30-day trial works too). Then go to Extensions \u2192 VAssistX \u2192 Visual Assist Options \u2192 VA Intelligence, check Enable VA Intelligence, and click Save."},{"@type":"HowToStep","position":2,"name":"Open VA Agent and pick your agent","text":"Open a solution, go to Extensions \u2192 VAssistX \u2192 Tools \u2192 VA Agent, and pick Claude Code or Codex in the Agent dropdown."},{"@type":"HowToStep","position":3,"name":"Install the CLI","text":"From Windows PowerShell, run Anthropic's installer for Claude Code (irm https:\/\/claude.ai\/install.ps1 | iex) or OpenAI's installer for Codex (powershell -ExecutionPolicy ByPass -c \"irm https:\/\/chatgpt.com\/codex\/install.ps1 | iex\")."},{"@type":"HowToStep","position":4,"name":"Check that Windows can find the CLI","text":"Open a new PowerShell window and run claude --version or codex --version. If the command is not recognized, add the install folder to your user PATH, then restart Visual Studio."},{"@type":"HowToStep","position":5,"name":"Sign in","text":"Send a message in VA Agent and click Sign in with your Claude account or Sign in with ChatGPT. For Claude Code, paste the code from the browser back into VA Agent. Codex has no code to copy."},{"@type":"HowToStep","position":6,"name":"Choose a model and a mode","text":"Pick a model and an effort level, then choose Ask Mode for questions and planning, or Edits allowed to let the agent change files in your solution directly."}]},{"@type":"Organization","@id":"https:\/\/www.wholetomato.com\/blog\/#organization","name":"Tomato Soup","description":"C++ and Visual Studio guides from the Visual Assist team. Working in large and legacy codebases, refactoring, AI tooling, plus notes on every release.","url":"https:\/\/www.wholetomato.com\/blog\/","email":"info@wholetomato.com","numberOfEmployees":{"@type":"QuantitativeValue","minValue":0,"maxValue":100},"logo":{"@type":"ImageObject","url":"https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2026\/05\/WT_symbol.png?fit=112%2C112&ssl=1","@id":"https:\/\/www.wholetomato.com\/blog\/how-to-install-and-use-claude-code-or-codex-in-visual-studio-for-c\/#organizationLogo","width":112,"height":112,"caption":"visual assist main tomato symbol icon"},"image":{"@id":"https:\/\/www.wholetomato.com\/blog\/how-to-install-and-use-claude-code-or-codex-in-visual-studio-for-c\/#organizationLogo"},"sameAs":["https:\/\/www.facebook.com\/wholetomatosoftware","https:\/\/twitter.com\/visualassist","https:\/\/www.youtube.com\/c\/Wholetomatosoftware","https:\/\/www.linkedin.com\/company\/whole-tomato-software"]},{"@type":"Person","@id":"https:\/\/www.wholetomato.com\/blog\/author\/tristansoliven\/#author","url":"https:\/\/www.wholetomato.com\/blog\/author\/tristansoliven\/","name":"Tristan Soliven"},{"@type":"WebPage","@id":"https:\/\/www.wholetomato.com\/blog\/how-to-install-and-use-claude-code-or-codex-in-visual-studio-for-c\/#webpage","url":"https:\/\/www.wholetomato.com\/blog\/how-to-install-and-use-claude-code-or-codex-in-visual-studio-for-c\/","name":"Claude Code or Codex in Visual Studio for C++","description":"Claude Code and Codex have no official Visual Studio extension. Here's how to install, sign in and run either one inside Visual Studio with VA Agent.","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/www.wholetomato.com\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/www.wholetomato.com\/blog\/how-to-install-and-use-claude-code-or-codex-in-visual-studio-for-c\/#breadcrumblist"},"author":{"@id":"https:\/\/www.wholetomato.com\/blog\/author\/tristansoliven\/#author"},"creator":{"@id":"https:\/\/www.wholetomato.com\/blog\/author\/tristansoliven\/#author"},"image":{"@type":"ImageObject","url":"https:\/\/i0.wp.com\/www.wholetomato.com\/blog\/wp-content\/uploads\/2024\/03\/00_header-claude-code-codex-in-visual-studio.png?fit=1672%2C941&ssl=1","@id":"https:\/\/www.wholetomato.com\/blog\/how-to-install-and-use-claude-code-or-codex-in-visual-studio-for-c\/#mainImage","width":1672,"height":941},"primaryImageOfPage":{"@id":"https:\/\/www.wholetomato.com\/blog\/how-to-install-and-use-claude-code-or-codex-in-visual-studio-for-c\/#mainImage"},"datePublished":"2026-11-19T16:26:43-04:00","dateModified":"2026-11-19T16:36:32-04:00"},{"@type":"WebSite","@id":"https:\/\/www.wholetomato.com\/blog\/#website","url":"https:\/\/www.wholetomato.com\/blog\/","name":"Tomato Soup","description":"C++ and Visual Studio guides from the Visual Assist team. Working in large and legacy codebases, refactoring, AI tooling, plus notes on every release.","inLanguage":"en-US","publisher":{"@id":"https:\/\/www.wholetomato.com\/blog\/#organization"}}]},"og:locale":"en_US","og:site_name":"Visual Assist Blog - C++ and Visual Studio guides from the Visual Assist team. Working in large and legacy codebases, refactoring, AI tooling, plus notes on every release.","og:type":"article","og:title":"Claude Code or Codex in Visual Studio for C++","og:description":"Claude Code and Codex have no official Visual Studio extension. Here's how to install, sign in and run either one inside Visual Studio with VA Agent.","og:url":"https:\/\/www.wholetomato.com\/blog\/claude-code-visual-studio\/](https:\/\/www.wholetomato.com\/blog\/claude-code-visual-studio\/","article:published_time":"2026-11-19T20:26:43+00:00","article:modified_time":"2026-11-19T20:36:32+00:00","article:publisher":"https:\/\/www.facebook.com\/wholetomatosoftware","twitter:card":"summary_large_image","twitter:site":"@visualassist","twitter:title":"Claude Code or Codex in Visual Studio for C++","twitter:description":"Claude Code and Codex have no official Visual Studio extension. Here's how to install, sign in and run either one inside Visual Studio with VA Agent.","twitter:creator":"@visualassist"},"aioseo_meta_data":{"post_id":"5321","title":"Claude Code or Codex in Visual Studio for C++","description":"Claude Code and Codex have no official Visual Studio extension. Here's how to install, sign in and run either one inside Visual Studio with VA Agent.","keywords":null,"keyphrases":{"focus":{"keyphrase":"Claude Codex Visual Studio","score":46,"analysis":{"keyphraseInTitle":{"score":3,"maxScore":9,"error":1},"keyphraseInDescription":{"score":3,"maxScore":9,"error":1},"keyphraseLength":{"score":9,"maxScore":9,"error":0,"length":4},"keyphraseInURL":{"score":1,"maxScore":5,"error":1},"keyphraseInIntroduction":{"score":3,"maxScore":9,"error":1},"keyphraseInSubHeadings":{"score":3,"maxScore":9,"error":1},"keyphraseInImageAlt":{"score":9,"maxScore":9,"error":0},"keywordDensity":{"score":0,"type":"low","maxScore":9,"error":1}}},"additional":[]},"primary_term":null,"canonical_url":"https:\/\/www.wholetomato.com\/blog\/claude-code-visual-studio\/](https:\/\/www.wholetomato.com\/blog\/claude-code-visual-studio\/","og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":"","og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[{"id":"#aioseo-custom-mwnzu6dse3lm","custom":true,"graphName":"VA Agent setup blog \u2014 HowTo + FAQPage","schema":"{ \"@graph\": [ { \"@type\": \"HowTo\", \"@id\": \"https:\/\/www.wholetomato.com\/blog\/claude-code-visual-studio\/#howto\", \"isPartOf\": { \"@id\": \"https:\/\/www.wholetomato.com\/blog\/claude-code-visual-studio\/#webpage\" }, \"name\": \"How to set up Claude Code or Codex in Visual Studio with VA Agent\", \"description\": \"Install the Claude Code or Codex CLI on Windows, sign in with your existing account, and run either agent inside Visual Studio through VA Agent in Visual Assist.\", \"image\": \"https:\/\/www.wholetomato.com\/blog\/wp-content\/uploads\/2024\/03\/00_header-claude-code-codex-in-visual-studio.png\", \"tool\": [ { \"@type\": \"HowToTool\", \"name\": \"Visual Assist 2026.5 or later\" }, { \"@type\": \"HowToTool\", \"name\": \"Visual Studio 2015 or later\" }, { \"@type\": \"HowToTool\", \"name\": \"Windows PowerShell\" } ], \"supply\": [ { \"@type\": \"HowToSupply\", \"name\": \"A Claude plan or Anthropic Console account (Claude Code), or a ChatGPT account (Codex)\" } ], \"step\": [ { \"@type\": \"HowToStep\", \"position\": 1, \"name\": \"Install or update Visual Assist and turn on VA Intelligence\", \"text\": \"Install Visual Assist 2026.5 or later (the 30-day trial works too). Then go to Extensions \u2192 VAssistX \u2192 Visual Assist Options \u2192 VA Intelligence, check Enable VA Intelligence, and click Save.\" }, { \"@type\": \"HowToStep\", \"position\": 2, \"name\": \"Open VA Agent and pick your agent\", \"text\": \"Open a solution, go to Extensions \u2192 VAssistX \u2192 Tools \u2192 VA Agent, and pick Claude Code or Codex in the Agent dropdown.\" }, { \"@type\": \"HowToStep\", \"position\": 3, \"name\": \"Install the CLI\", \"text\": \"From Windows PowerShell, run Anthropic's installer for Claude Code (irm https:\/\/claude.ai\/install.ps1 | iex) or OpenAI's installer for Codex (powershell -ExecutionPolicy ByPass -c \\\"irm https:\/\/chatgpt.com\/codex\/install.ps1 | iex\\\").\" }, { \"@type\": \"HowToStep\", \"position\": 4, \"name\": \"Check that Windows can find the CLI\", \"text\": \"Open a new PowerShell window and run claude --version or codex --version. If the command is not recognized, add the install folder to your user PATH, then restart Visual Studio.\" }, { \"@type\": \"HowToStep\", \"position\": 5, \"name\": \"Sign in\", \"text\": \"Send a message in VA Agent and click Sign in with your Claude account or Sign in with ChatGPT. For Claude Code, paste the code from the browser back into VA Agent. Codex has no code to copy.\" }, { \"@type\": \"HowToStep\", \"position\": 6, \"name\": \"Choose a model and a mode\", \"text\": \"Pick a model and an effort level, then choose Ask Mode for questions and planning, or Edits allowed to let the agent change files in your solution directly.\" } ] }, { \"@type\": \"FAQPage\", \"@id\": \"https:\/\/www.wholetomato.com\/blog\/claude-code-visual-studio\/#faq\", \"isPartOf\": { \"@id\": \"https:\/\/www.wholetomato.com\/blog\/claude-code-visual-studio\/#webpage\" }, \"mainEntity\": [ { \"@type\": \"Question\", \"name\": \"Is there a Claude Code or Codex extension for Visual Studio?\", \"acceptedAnswer\": { \"@type\": \"Answer\", \"text\": \"Neither has an official one. Anthropic's IDE integrations are for VS Code and JetBrains IDEs, and OpenAI's Codex integrations cover VS Code-based editors, Xcode and JetBrains. In Visual Studio, you can run either CLI in a terminal, or use VA Agent in Visual Assist to run it in a docked window.\" } }, { \"@type\": \"Question\", \"name\": \"Should I use Claude Code or Codex in VA Agent?\", \"acceptedAnswer\": { \"@type\": \"Answer\", \"text\": \"Use the one you already have a plan for. Both run in the same VA Agent window with the same modes, and you can switch between them by starting a new chat.\" } }, { \"@type\": \"Question\", \"name\": \"Does Visual Assist include a Claude or ChatGPT subscription?\", \"acceptedAnswer\": { \"@type\": \"Answer\", \"text\": \"No. Claude Code and Codex use your own account and plan. The optional local Gemma 4 model doesn't need an account.\" } }, { \"@type\": \"Question\", \"name\": \"Does my code go through Whole Tomato's servers?\", \"acceptedAnswer\": { \"@type\": \"Answer\", \"text\": \"No. Claude Code and Codex send your code to their own providers under your account. The local Gemma 4 model runs on your machine. Nothing passes through Whole Tomato's servers.\" } }, { \"@type\": \"Question\", \"name\": \"Which Visual Studio and Windows versions does VA Agent support?\", \"acceptedAnswer\": { \"@type\": \"Answer\", \"text\": \"VA Agent supports Visual Studio 2015 and later, and in practice it needs Windows 10. The Claude Code and Codex CLIs need Windows 10 (version 1809) or later, and the local Gemma 4 model runs on Ollama, which needs Windows 10 (22H2) or later.\" } }, { \"@type\": \"Question\", \"name\": \"What's the difference between Ask Mode and Edits allowed?\", \"acceptedAnswer\": { \"@type\": \"Answer\", \"text\": \"Ask Mode is for questions and planning. Edits allowed lets the agent change files in your solution directly, and you can undo its edits. Ask Mode isn't a sandbox, so use version control either way.\" } } ] } ] }"}],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"BlogPosting","isEnabled":true},"graphs":[]},"schema_type":"default","schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":"-1","robots_max_videopreview":"-1","robots_max_imagepreview":"large","priority":null,"frequency":"default","local_seo":null,"seo_analyzer_scan_date":null,"breadcrumb_settings":null,"limit_modified_date":false,"open_ai":null,"ai":{"faqs":[],"keyPoints":[],"schemas":[],"titles":[],"descriptions":[],"socialPosts":{"email":[],"linkedin":[],"twitter":[],"facebook":[],"instagram":[]}},"created":"2026-11-15 03:54:08","updated":"2026-11-19 22:40:13","reviewed_by":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t<a href=\"https:\/\/www.wholetomato.com\/blog\" title=\"Home\">Home<\/a>\n<\/span><span class=\"aioseo-breadcrumb-separator\">\u00bb<\/span><span class=\"aioseo-breadcrumb\">\n\t<a href=\"https:\/\/www.wholetomato.com\/blog\/category\/tips-and-tricks\/\" title=\"Tips and Tricks\">Tips and Tricks<\/a>\n<\/span><span class=\"aioseo-breadcrumb-separator\">\u00bb<\/span><span class=\"aioseo-breadcrumb\">\n\tHow to Install and Use Claude Code or Codex in Visual Studio for C++\n<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/www.wholetomato.com\/blog"},{"label":"Tips and Tricks","link":"https:\/\/www.wholetomato.com\/blog\/category\/tips-and-tricks\/"},{"label":"How to Install and Use Claude Code or Codex in Visual Studio for C++","link":"https:\/\/www.wholetomato.com\/blog\/how-to-install-and-use-claude-code-or-codex-in-visual-studio-for-c\/"}],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.wholetomato.com\/blog\/wp-json\/wp\/v2\/posts\/5321","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wholetomato.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wholetomato.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wholetomato.com\/blog\/wp-json\/wp\/v2\/users\/213500340"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wholetomato.com\/blog\/wp-json\/wp\/v2\/comments?post=5321"}],"version-history":[{"count":6,"href":"https:\/\/www.wholetomato.com\/blog\/wp-json\/wp\/v2\/posts\/5321\/revisions"}],"predecessor-version":[{"id":5343,"href":"https:\/\/www.wholetomato.com\/blog\/wp-json\/wp\/v2\/posts\/5321\/revisions\/5343"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wholetomato.com\/blog\/wp-json\/wp\/v2\/media\/5329"}],"wp:attachment":[{"href":"https:\/\/www.wholetomato.com\/blog\/wp-json\/wp\/v2\/media?parent=5321"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wholetomato.com\/blog\/wp-json\/wp\/v2\/categories?post=5321"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wholetomato.com\/blog\/wp-json\/wp\/v2\/tags?post=5321"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}