CppPilot / Getting started
Set up CppPilot in Visual Studio
Install the extension, connect one AI provider, and try an analysis on your C++ project. Use your own Codex or Claude account. If you have neither, CppPilot Cloud provides optional AI access.
- InstallAdd the Visual Studio extension
- ConnectChoose one AI account
- AnalyzeRead the explanation
- ReviewRequest and check a fix
An explanation is read-only. Code changes begin when you request a correction and are handled through the extension's approval controls.
Check the requirements
Visual Studio + C++
Visual Studio 2022 or later with the MSVC C++ x64/x86 build tools. A separate extension package supports Visual Studio 2019.
One AI connection
Your Codex account, your Claude account, or CppPilot Cloud. An internet connection is needed for AI requests.
Git for reviews
Git is needed to review Git changes. It is not a prerequisite for explaining a build diagnostic.
If the C++ tools are missing, open Visual Studio Installer > Modify and select Desktop development with C++, with the toolset and Windows SDK your project requires.
Install the extension
- In Visual Studio, open Extensions > Manage Extensions and search for CppPilot. You can also open its Visual Studio Marketplace page.
- Install the package for your Visual Studio version. Follow Visual Studio's prompts to close or restart the IDE.
- Open your C++ solution or workspace, then choose Extensions > CppPilot > Home.
Check: the CppPilot menu and tool window should now be available. Installation alone does not connect an AI account; choose the option below that matches your setup.
Connect one AI provider
You do not need both Codex and Claude. With your own provider account, no CppPilot subscription is required; that provider's pricing and usage limits apply. CppPilot Cloud is optional.
With your own Codex account
- If needed, install the Windows Codex CLI using the official OpenAI instructions. CppPilot needs the command-line tool, even if you already use Codex in another application.
- Open Extensions > CppPilot > AI CLI Settings..., select Codex, and check the detected executable.
Use Change to select your existing
codex.exeif it was not found. - If Codex is not signed in, choose Sign In. CppPilot starts the official
codex loginbrowser flow. Complete it with your own account.
Check: settings should show the detected CLI path and version. If a fix reports a missing sandbox helper, use a complete Windows Codex bundle rather than a standalone executable.
With your own Claude account
- If needed, install Claude Code for Windows using the official Anthropic instructions.
- Run
claudeonce in a terminal and complete its sign-in flow with your own account. - Open Extensions > CppPilot > AI CLI Settings... and select Claude.
If it was not detected, use Change to select
claude.exeorclaude.cmd.
Check: settings should show the CLI path, version, and compatibility information. Claude checks authentication when a request starts; the presence of an executable alone does not prove it is signed in.
With CppPilot Cloud
- Open AI CLI Settings > CppPilot Cloud. When no AI CLI is installed, CppPilot Home also offers Use CppPilot Cloud.
- Start the sign-in and enter your email address in the browser. Open the emailed link, check that its code matches the one shown in Visual Studio, and confirm.
- Return to Visual Studio. CppPilot downloads and verifies the official Codex CLI when needed and sends its requests through Cloud.
Check: the Cloud page shows your plan and usage. See the allowances and limits. To use your own Codex or Claude account later, turn Cloud off in settings and select that provider.
Run your first analysis
Start with a build diagnostic in a C++ project. If you want to try a simple case, use a small console project with the example below. Otherwise, use an existing error from your build.
Example diagnostic: C2065
int main() { int count = 3; return Count;}Expected correction
int main() { int count = 3; return count;}- Build the project in Visual Studio. Choose Extensions > CppPilot > Check Last Build Errors, or right-click the diagnostic in the Error List and choose Fix with CppPilot.
- Read the explanation. Use Open location to inspect the relevant source line.
- Choose Fix for one diagnostic. Review any requested edits or commands in the approval notification.
- CppPilot rebuilds the relevant C++ project when Visual Studio can identify its build scope. Check whether the diagnostic is resolved or still present; build manually if no automatic verification was possible.
If the build already succeeds, use Review with CppPilot from Git Changes, or right-click your solution and choose CppPilot > Analyze Solution for a read-only starting point.
Review requested actions
Explanations, reviews, and analyses start read-only. When you request a fix, the AI can ask to change files or run commands. CppPilot shows the request inside Visual Studio with its reason, affected paths, and working directory.
- RequestThe AI explains the action
- DecideAllow once, set a scope, or deny
- CheckInspect changes and build results
Review the request in the context of your current task. You can cancel an operation and manage remembered permissions in AI CLI Settings.
With your own Codex or Claude account, the selected CLI sends the code and context needed for the action to that provider. With Cloud, requests are relayed through CppPilot Cloud to OpenAI. See how code and account data are handled.
If setup does not work
The CppPilot menu is missing
Check that the extension is installed and enabled in Extensions > Manage Extensions, that the package matches your Visual Studio version, and that any pending installation finished after closing Visual Studio. Restart the IDE after the installation completes.
Codex or Claude is not detected
Open AI CLI Settings and check the selected provider.
Use Change to select its executable directly. In a new terminal, codex --version or
claude --version helps establish whether the tool is on PATH. A provider account alone does not install its CLI.
The provider asks me to sign in
For Codex, use Sign In in settings or
codex login. For Claude, run claude in a terminal and complete authentication there.
Retry the action after signing in with the same installation that CppPilot uses.
Cloud sign-in has not finished
Open the emailed link, compare its code with Visual Studio, and confirm the sign-in. The link expires after 15 minutes. If it expired, start a new sign-in from the extension. Check your spam folder if the message did not arrive.
A fix reports a missing Codex sandbox helper
Keep the complete Windows Codex bundle together,
including codex-command-runner.exe and codex-windows-sandbox-setup.exe beside codex.exe.
Select that installation in settings. Copying only codex.exe can be insufficient for fix and review actions.
AI Chat is unavailable with Cloud
The Cloud Free and Pro plans cover build fixes, reviews, crash analysis, and project checks. For AI Chat and interactive debugging, turn Cloud off and connect your own Codex or Claude account.
A usage limit was reached
With your own account, your provider's limits apply. With Cloud, open the Cloud page to check the weekly and monthly usage shown for your plan. The plans page explains how these limits reset. You can switch to your own provider account by turning Cloud off.
There is no solution open, or this is a CMake folder
Open your C++ workspace and build it first. In a folder-based CMake workspace, use Build > Build All, then check the last build errors. Commands that analyze solution and project files need a supported solution or project context.