CppPilot

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.

Free extension One AI connection required

How it worksThe first session
  1. InstallAdd the Visual Studio extension
  2. ConnectChoose one AI account
  3. AnalyzeRead the explanation
  4. 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

  1. In Visual Studio, open Extensions > Manage Extensions and search for CppPilot. You can also open its Visual Studio Marketplace page.
  2. Install the package for your Visual Studio version. Follow Visual Studio's prompts to close or restart the IDE.
  3. 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.

Your existing account

Codex

Use the Codex CLI installed on your computer with your own sign-in.

Includes access to CppPilot's AI chat and interactive debugger tools.

Codex setup →

Your existing account

Claude

Use the Claude Code CLI installed on your computer with your own sign-in.

Includes access to CppPilot's AI chat and interactive debugger tools.

Claude setup →

Neither account?

CppPilot Cloud

Sign in with an email address. We provide AI access through the service, without a separate Codex or Claude account.

Free and Pro plans have usage allowances. AI chat and interactive debugging are not included.

Cloud setup →

With your own Codex account

  1. 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.
  2. Open Extensions > CppPilot > AI CLI Settings..., select Codex, and check the detected executable. Use Change to select your existing codex.exe if it was not found.
  3. If Codex is not signed in, choose Sign In. CppPilot starts the official codex login browser 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

  1. If needed, install Claude Code for Windows using the official Anthropic instructions.
  2. Run claude once in a terminal and complete its sign-in flow with your own account.
  3. Open Extensions > CppPilot > AI CLI Settings... and select Claude. If it was not detected, use Change to select claude.exe or claude.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

  1. Open AI CLI Settings > CppPilot Cloud. When no AI CLI is installed, CppPilot Home also offers Use CppPilot Cloud.
  2. 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.
  3. 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;}
ExampleC++ identifiers are case-sensitive. This example gives the workflow a small, visible correction to check.
  1. 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.
  2. Read the explanation. Use Open location to inspect the relevant source line.
  3. Choose Fix for one diagnostic. Review any requested edits or commands in the approval notification.
  4. 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.
CppPilot build diagnostics in Visual Studio, with an explanation, Fix, and Open location actions
The diagnostic workflow in Visual Studio. Your error messages depend on the active project and build configuration.

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.

How it worksA requested change
  1. RequestThe AI explains the action
  2. DecideAllow once, set a scope, or deny
  3. 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.