> ## Documentation Index
> Fetch the complete documentation index at: https://docs.devin.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Index a Repository

> Enable Ask Devin and DeepWiki by indexing your repositories

Indexing your repositories allows Devin to understand your codebase and enables powerful features like [Ask Devin](/work-with-devin/ask-devin) and [DeepWiki](/work-with-devin/deepwiki). This quick guide walks you through the indexing process.

<Info>
  Repository indexing is separate from [environment configuration](/onboard-devin/environment). Indexing enables code search and understanding features, while environment configuration sets up Devin's development environment.
</Info>

## Index Your Repository

1. Go to [app.devin.ai](https://app.devin.ai) and ensure you're logged into your organization
2. Click on **Settings** in the sidebar to access your organization settings
3. Select the **Repositories** tab to view all connected repositories
4. Click **Index repo** on the repository you want to index

<Frame>
  <img src="https://mintcdn.com/cognitionai/Rh6yxttB5EkdbkMb/images/quickstart/Org-Repositories-List.png?fit=max&auto=format&n=Rh6yxttB5EkdbkMb&q=85&s=4b8df30a5e0d396e2b527c48854c8ec8" alt="Repositories list" width="3262" height="668" data-path="images/quickstart/Org-Repositories-List.png" />
</Frame>

5. Select the branch(es) you want Devin to analyze

<Frame>
  <img src="https://mintcdn.com/cognitionai/Rh6yxttB5EkdbkMb/images/quickstart/Index-Branch.png?fit=max&auto=format&n=Rh6yxttB5EkdbkMb&q=85&s=ea6ca3c40cf88517381ff8dfc0ddbf02" alt="Select branches to index" width="886" height="794" data-path="images/quickstart/Index-Branch.png" />
</Frame>

6. Wait for indexing to complete — this may take a few minutes depending on repository size

<Frame>
  <img src="https://mintcdn.com/cognitionai/Rh6yxttB5EkdbkMb/images/quickstart/Index-In-Progress.png?fit=max&auto=format&n=Rh6yxttB5EkdbkMb&q=85&s=7e31957b2c940816e63cf609eb027451" alt="Indexing in progress" width="2390" height="602" data-path="images/quickstart/Index-In-Progress.png" />
</Frame>

To index additional branches later, click **Manage** on any indexed repository, select a new branch, and click **Add branch**.

Once complete, you'll have access to:

* **[Ask Devin](/work-with-devin/ask-devin)** - Ask questions about your codebase and get detailed, accurate answers powered by advanced code search. You can also use Ask Devin to scope and plan tasks.
* **[DeepWiki](/work-with-devin/deepwiki)** - Explore auto-generated documentation for your repositories

<Tip>
  For best results, index the branches your team actively develops on. This ensures Ask Devin and DeepWiki have the most up-to-date understanding of your code.
</Tip>
