> ## Documentation Index
> Fetch the complete documentation index at: https://potpieai-feat-cli-setup.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Generate an API Key

In this tutorial, you'll learn how to generate an API key in Potpie to authenticate access and interact with any repository, agent, or conversation .

To understand how API access works, see the [API Access page](/agents/api-access).

## Generating an API Key

<Steps>
  <Step title="Sign in to the dashboard">
    Open <a href="https://app.potpie.ai" className="mode-link" target="_blank" rel="noopener noreferrer">Potpie</a> and sign in.

    <img src="https://mintcdn.com/potpieai-feat-cli-setup/RjcDtgma2Y5eRJIQ/images/new-chat-interface1.png?fit=max&auto=format&n=RjcDtgma2Y5eRJIQ&q=85&s=287e71fb61ffda5fa51eaa7d356facf3" alt="Potpie Dashboard" width="1438" height="815" data-path="images/new-chat-interface1.png" />
  </Step>

  <Step title="Open Settings">
    Click the account menu in the bottom-left corner and select **Settings**.

    <img src="https://mintcdn.com/potpieai-feat-cli-setup/RjcDtgma2Y5eRJIQ/images/api-key-username-menu.png?fit=max&auto=format&n=RjcDtgma2Y5eRJIQ&q=85&s=58c431e8c8e349cee0030205cdb1669b" alt="Username menu" width="1438" height="787" data-path="images/api-key-username-menu.png" />
  </Step>

  <Step title="Generate an API key">
    In the **API Key** section, click **+ Generate API Key**.

    <img src="https://mintcdn.com/potpieai-feat-cli-setup/RjcDtgma2Y5eRJIQ/images/api-key-management-page.png?fit=max&auto=format&n=RjcDtgma2Y5eRJIQ&q=85&s=619f5cb4ebd797f9f2abd41ec9173965" alt="API Key Management" width="1438" height="787" data-path="images/api-key-management-page.png" />
  </Step>

  <Step title="Copy the key">
    Copy and store the key securely.

    <img src="https://mintcdn.com/potpieai-feat-cli-setup/RjcDtgma2Y5eRJIQ/images/api-key-generated.png?fit=max&auto=format&n=RjcDtgma2Y5eRJIQ&q=85&s=44cb0268de9b8df5b0fa0f70d76f2aef" alt="Generated API Key" width="1438" height="787" data-path="images/api-key-generated.png" />
  </Step>
</Steps>
