# Create an AI Code Audit

The create flow is two steps: pick the repositories you want audited, then confirm the credit cost and start.

## Prerequisites

Before you start, make sure:

* **You have the Manage Pentests and AI Code Audits** [permission](/getting-started/automated-user-management/setting-roles-and-permissions.md). Without it, you can't create audits or open existing ones.
* **At least one repository is connected.** [Self-scanned repositories](/code-scanning/local-code-scanning.md) aren't eligible — they're excluded from the picker. You can pick up to **6** repositories per audit.
* **Your wallet has enough credits** to cover the quoted cost. You can top up from inside the create flow if needed. See [Wallet & Credits](/miscellaneous-info/wallet-and-credits.md) for purchase details.

## Set up the audit

To launch the wizard, click **AI Code Audit** in the main navigation, then click **Create Audit** in the page header.

{% stepper %}
{% step %}
**Connect Repositories**

1. Open the **Repositories** picker and select up to 6 connected repositories.
2. Click **Continue** to move to pricing.

**Continue** stays disabled until at least one repository is selected. Clicking **Cancel** on this step takes you to your repositories list, which is useful if you still need to connect repos before continuing.
{% endstep %}

{% step %}
**Pricing**

Aikido calculates the credit cost for your selection. When the estimate is ready, the price shows next to **Full AI Code Audit**, and your balance shows in the footer. If you're short on credits, click **Add Credits** to top up.

Click **Start Audit** to launch.
{% endstep %}
{% endstepper %}

After **Start Audit**, Aikido takes you to the assessment detail page, where you can follow progress and read findings as they land. See [Track Progress and Findings](/ai-code-audit/track-progress-and-findings.md).

## FAQ

### Why is there a 6-repo cap?

AI Code Audit focuses agent attention on a coherent set of codebases. Beyond 6 repositories, the analysis tends to lose focus and quality drops. If you genuinely need more in a single audit, contact support — the tooltip on the **Repositories** field links to the same path.

## Need help?

Open the **Intercom chat** in the bottom right corner if the credit estimate looks off or the picker doesn't show a repository you expect.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.aikido.dev/ai-code-audit/create-an-ai-code-audit.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
