---
title: "Use the Nebu plugin with ChatGPT, Codex, and Claude"
description: "Install the NebuSec CLI plugin in terminal or desktop agents, sign in, and run security workflows safely."
url: https://nebusec.ai/help/code-security/nebu-plugin/
---

# Use the Nebu plugin with ChatGPT, Codex, and Claude

Install the NebuSec CLI plugin in terminal or desktop agents, sign in, and run security workflows safely.

Updated September 29, 2026

The **NebuSec CLI** plugin lets supported local coding surfaces in ChatGPT, Codex, and Claude use NebuSec Platform without leaving the agent. The plugin can inspect projects, repositories, scans, code and cloud findings, estimate scan cost, run bounded scans, generate patches, and create remediation pull requests.

The plugin includes the Nebu CLI. You do not need to install `@nebusec/nebu` separately when you use the plugin.

## Requirements

* A NebuSec Platform account.
* Codex or Claude Code running locally on macOS or Linux.
* An x64 or arm64 computer.
* Authorization to submit the repository or source code you ask NebuSec to scan.

Windows and browser-only ChatGPT sessions are not supported by this version of the plugin.

## Where the plugin works

| Surface                          | Installation                                                             | Nebu CLI execution                                                                                                   |
| -------------------------------- | ------------------------------------------------------------------------ | -------------------------------------------------------------------------------------------------------------------- |
| **ChatGPT desktop app**          | Install from the Plugins Directory after adding the NebuSec marketplace. | Supported in a local Codex or Work task on macOS or Linux. Ordinary browser-only ChatGPT sessions are not supported. |
| **Codex CLI**                    | Install from the NebuSec marketplace with `codex plugin`.                | Supported on macOS or Linux.                                                                                         |
| **Claude app or Claude Desktop** | Paid Claude plans can add plugins from **Customize → Plugins**.          | The current Nebu plugin is supported through Claude Code. The ordinary Chat tab cannot run its bundled local CLI.    |
| **Claude Code**                  | Install from the NebuSec marketplace with `claude plugin`.               | Supported on macOS or Linux.                                                                                         |

## Install in the ChatGPT desktop app

The NebuSec CLI plugin is not yet present in the public plugin directory. Add the NebuSec marketplace once from a terminal:

```sh
codex plugin marketplace add NebuSec/nebu-plugin --ref main
```

Then install it in the desktop app:

1. Restart the ChatGPT desktop app so it reloads marketplace sources.
2. Find **Customize** in the side bar.
3. Open the **Plugins** directory.
4. Select the **Personal** marketplace.
5. Open **nebu-cli** and select **Install plugin**.

![Installing nebu-cli](https://nebusec.ai/_astro/0.DKzP15Yv_ZeNG0w.webp)

Use a local coding task

The plugin runs a bundled local executable. Installing it in ChatGPT does not make it runnable in a browser-only chat. Open a local Codex or Work task on a supported macOS or Linux computer.

## Install in Codex

Add the NebuSec marketplace:

```sh
codex plugin marketplace add NebuSec/nebu-plugin --ref main
```

Install the plugin from that marketplace:

```sh
codex plugin add nebu-cli@nebusec
```

Confirm that the plugin is installed:

```sh
codex plugin list | grep nebu-cli || echo "nebu-cli not installed, please refer to https://nebusec.ai/help/code-security/nebu-plugin/"
```

Start a new Codex chat after installation so the plugin skill is available to the agent.

## Add the plugin in the Claude app

Claude supports plugins in the web app and Claude Desktop on paid plans. A plugin added in the GUI is saved to your Claude account and can also become available in Claude Code when you sign in with the same account.

1. Open Claude or Claude Desktop.
2. Open **Customize** in the left sidebar.
3. Select **Plugins**.
4. Select **Add**, then **Add marketplace**.
5. Choose **Add from a repository**.
6. Enter `NebuSec/nebu-plugin` or `https://github.com/NebuSec/nebu-plugin`. (If this step fails, see the next chapter to instal the plugin using Claude Code.)
7. After the marketplace syncs, open **NebuSec CLI** and select **Add**.
8. Start a new Claude Code session signed in with the same Claude account.

Claude Chat is not a Nebu execution surface

The plugin can be added to your Claude account, but the current Nebu workflow calls a bundled local executable. Use Claude Code on a supported macOS or Linux computer to run Nebu commands. The ordinary Chat tab can show the plugin’s instructions but cannot execute the local CLI.

Some organization-managed Claude marketplace syncs do not accept plugins whose marketplace entry uses an npm source. If NebuSec CLI does not appear after adding the repository, install it with Claude Code instead. A future Claude directory listing or a GUI-compatible marketplace release can remove this limitation.

## Install in Claude Code

Add the NebuSec marketplace:

```sh
claude plugin marketplace add NebuSec/nebu-plugin
```

Install the plugin:

```sh
claude plugin install nebu-cli@nebusec
```

Confirm that the plugin is installed:

```sh
claude plugin list | grep nebu-cli || echo "nebu-cli not installed, please refer to https://nebusec.ai/help/code-security/nebu-plugin/"
```

Start a new Claude Code session after installation so the plugin skill is loaded.

![Installing in Claude Code](https://nebusec.ai/_astro/1.DR9IEtQP_1KjJ1G.webp)

## Sign in to NebuSec

Installation does not sign you in. Ask Codex or Claude Code to perform a NebuSec task, for example:

```text
Show the critical and high NebuSec findings.
```

If no valid credential is available, the agent starts the headless NebuSec sign-in flow and shows you a verification URL and one-time code.

1. Open the displayed URL in your browser.
2. Enter the one-time code.
3. Complete sign-in with your NebuSec account.
4. Return to the agent. It verifies the signed-in identity and continues your original request.

The saved credential is reused in later sessions for the same operating-system user.

Never paste credentials into chat

Do not send passwords, API keys, access tokens, browser callbacks, or other credentials to Codex or Claude Code. The one-time device code is the only sign-in value intended to be relayed by the agent.

![Logging in](https://nebusec.ai/_astro/2.Cvhrqdhk_qbzYo.webp)

For unattended CI, configure `NEBUSEC_PLATFORM_API_KEY` through the CI platform’s secret store. Never put an API key in a prompt, repository, screenshot, command history, or build log.

## Use the plugin

Describe the result you want in ordinary language. The agent selects the bundled CLI command and follows the plugin’s safety rules.

### Review findings

```text
Show the Critical and High NebuSec findings for this repository.
```

```text
Open the latest confirmed finding and summarize its root cause and evidence.
```

Read-only list, detail, status, and export requests can run without an extra confirmation when they match the scope you requested.

### Check scan status

```text
Check the latest NebuSec scan for this repository and summarize what needs attention.
```

```text
Follow scan scan_123 until it finishes, then summarize the confirmed findings.
```

### Estimate a scan

```text
Estimate the cost of scanning this workspace without starting a scan.
```

An estimate does not start a paid scan. Before the agent starts one, you must provide the maximum quoted price you authorize.

```text
Run the scan if the quoted price is no more than $20, then wait for the result.
```

Paid scans require a price limit

The plugin uses your maximum as `--max-cost`. If the server quote is higher, the scan does not start. The plugin never uses unconditional price consent.

### Generate a patch or pull request

```text
Generate a patch for finding VULN-123 in scan scan_123.
```

```text
Create a pull request for the confirmed findings in scan scan_123 that already have patches.
```

Patch generation and pull request creation change backend or repository state. The agent confirms the exact scan, findings, repository, and action before proceeding.

## Safety behavior

The plugin is designed to keep consequential actions explicit:

* It estimates paid scans before launch.
* It confirms exact targets before changing finding state, controlling a scan, generating a patch, or creating a pull request.

## Update or remove the plugin

Refresh the Codex marketplace and reinstall or update the plugin when a new version is available:

```sh
codex plugin marketplace upgrade nebusec
codex plugin remove nebu-cli@nebusec
codex plugin add nebu-cli@nebusec
```

Update or remove the Claude Code installation with:

```sh
claude plugin update nebu-cli@nebusec
claude plugin uninstall nebu-cli@nebusec
```

## Troubleshooting

### The plugin is installed but is not used

Start a new Codex chat or Claude Code session. Then name NebuSec or nebu-plugin in the request and describe the repository, scan, or finding you want to inspect.

### Sign-in expires

The device flow expires after ten minutes. Ask the agent to start a new NebuSec sign-in flow, then use the new URL and code.

### macOS blocks the bundled executable

Open **System Settings → Privacy & Security**, approve the blocked NebuSec executable, and retry.

### A paid scan does not start

Review the estimate and the maximum price you supplied. If the quote exceeds your maximum, provide a new limit only after approving the higher amount.

## Related

* [Use the Nebu CLI](https://nebusec.ai/help/code-security/nebu-cli.md)
* [Start a scan](https://nebusec.ai/help/code-security/start-a-scan.md)
* [Scan options](https://nebusec.ai/help/code-security/scan-options.md)
* [NebuSec CLI plugin marketplace](https://github.com/NebuSec/nebu-plugin)
* [Official Codex plugin documentation](https://developers.openai.com/plugins/build/plugins)
* [Install and use plugins in Claude](https://support.claude.com/en/articles/13837440-use-plugins-in-claude)

## Still need help?

[Email the NebuSec team](mailto:root@nebusec.ai?subject=NebuSec%20help%20request) or [book a call](https://nebusec.ai/book-a-demo/). Please never include report links or credentials in your message.
