# Create an AI Code scan

The create flow is three steps: choose **AI Code scan**, pick the repositories, then confirm the credit cost and start.

## Prerequisites

- You need the **Manage Pentests and AI Scans** [permission](https://help.aikidogov.us/getting-started/automated-user-management/setting-roles-and-permissions.md) to create a scan. You can still open AI Scans and existing assessments without it.
- At least one repository is connected. [Self-scanned repositories](https://help.aikidogov.us/code-scanning/local-code-scanning.md) are excluded from the picker. There is a limit on how many repositories you can pick. [Contact support](https://help.aikidogov.us/miscellaneous-info/contact-support.md) if you need more.
- Your wallet has enough credits for the quoted cost. You can top up from inside the create flow. See [Wallet & Credits](https://help.aikidogov.us/miscellaneous-info/wallet-and-credits.md).

## Set up the scan

Go to **AI Scans**, then open **New AI Scan**.

### Step 1: Select AI Code scan

On **Select AI scan type**, select **AI Code scan**, then click **Continue**.

**Cancel** returns to the AI Scans home.

### Step 2: Select repositories

1. Open **Repositories** and select the connected repositories for this scan. **Continue** stays disabled until at least one repository is selected.
2. To keep a monorepo focused, click **Exclude Paths** next to a selected repository and add directories that are not part of this scan.
3. Under **Scope**, leave **Scan all selected repositories** selected, or choose **Scan specific parts only** and describe what to review. For example: "Scan the new billing flow and the services it calls."

![Exclude Paths button next to a selected repository](https://help.aikidogov.us/_assets/e5aa7e0cb14a/exclude-repository-paths.png)

> **Note:** Leave documentation and READMEs in the repository. Agents can read that markdown as context. Exclude unrelated applications or services.

**Additional Information** is optional and applies to this scan only. Click **Add Additional Information**, then **Upload File** or **Add Notes**, when context is missing from the source, such as runtime configuration, known architecture quirks, or firewall and proxy settings. Put guidance that should apply to every scan in a markdown file in the repository. See [Guide Agents with Repository Files](https://help.aikidogov.us/ai-and-dev-tools/guide-an-audit-with-repository-files.md).

**Cancel** returns to **Select AI scan type**.

### Step 3: Confirm pricing and start

Wait until the **Pricing** step shows the credit total. Your balance is in the footer. Click **Add Credits** if the wallet is short.

The card title depends on scope:

- **Full AI Scan** when you scan all selected repositories.
- **Scoped AI Scan** when you chose **Scan specific parts only**. The step also shows the scope you wrote.

When **Configure** appears, use it to set the depth of the scan:

- **High risk only** prioritizes the areas most likely to expose serious vulnerabilities. Some areas get less coverage, or none.
- **Recommended coverage** investigates the security-sensitive parts of your selected scan scope.
- **Deeper coverage** builds on recommended coverage with additional investigation of lower-priority areas and less common code paths or cloud resources.

The credit total updates before you start.

Click **Start Audit** to launch. Credits are charged when you click **Start Audit**.

Aikido opens the assessment detail page. See [Track Progress and Findings](https://help.aikidogov.us/ai-scans/ai-code-audit-overview/track-progress-and-findings.md).

## FAQ

### Why is there a repository limit?

The picker limits how many repositories you can include so the scan stays focused. If you need more in one scan, [contact support](https://help.aikidogov.us/miscellaneous-info/contact-support.md).

### The credit estimate looks wrong, or a repository is missing

[Contact support](https://help.aikidogov.us/miscellaneous-info/contact-support.md). Self-scanned repositories are excluded from the picker.

## Related

- [AI Code scan](https://help.aikidogov.us/ai-scans/ai-code-audit-overview.md): Pentest-grade reasoning on your source code, no environment required.

- [Track Progress and Findings](https://help.aikidogov.us/ai-scans/ai-code-audit-overview/track-progress-and-findings.md): Follow an AI Scan while it runs and read the findings it produces.
