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

# Use uTools ChatGPT Friend with CometAPI

> Use this guide to configure uTools ChatGPT Friend with CometAPI by setting the base URL, API key, and model or provider options.

uTools ChatGPT Friend is a uTools plugin that brings AI chat to your desktop quick-launch bar. Connect it to CometAPI, then choose the model you want from the [Models page](/overview/models).

## Prerequisites

* A CometAPI account with an active API key — [get yours here](https://www.cometapi.com/console/token)
* uTools installed — [download here](https://u.tools/)
* ChatGPT Friend plugin — [get it here](https://www.u-tools.cn/plugins/detail/ChatGPT.%E5%A5%BD%E5%8F%8B/index.html)

<Steps>
  <Step title="Get your CometAPI API key">
    Log in to the [CometAPI console](https://www.cometapi.com/console/token). Click **Add API Key** and copy your CometAPI API key.

    <Frame>
      <img src="https://mintcdn.com/cometapi/SZhlxZhCnMLn__BW/images/overview/810968_364191.png?fit=max&auto=format&n=SZhlxZhCnMLn__BW&q=85&s=aef81a83f29f8eb16655ed4060425f50" alt="CometAPI dashboard showing the Add API Key button" width="3824" height="1892" data-path="images/overview/810968_364191.png" />
    </Frame>

    <Frame>
      <img src="https://mintcdn.com/cometapi/HhtmQffktazbxUvS/images/overview/810968_364193.png?fit=max&auto=format&n=HhtmQffktazbxUvS&q=85&s=d893f659267150d0faf45f99eb5dffc1" alt="CometAPI API key details with base URL" width="2434" height="1232" data-path="images/overview/810968_364193.png" />
    </Frame>
  </Step>

  <Step title="Configure ChatGPT Friend">
    Open the ChatGPT Friend plugin in uTools. In the settings:

    * **Interface Address**: `https://api.cometapi.com`
    * **API Key**: paste your CometAPI API key

    Click **Save**.

    <Frame>
      <img src="https://mintcdn.com/cometapi/mA1ovj6s0e3RM42l/images/integrations/810968_351617.png?fit=max&auto=format&n=mA1ovj6s0e3RM42l&q=85&s=007fd1da30f9ca6c807caf2d01205422" alt="ChatGPT Friend settings with interface address and API key filled in" width="1024" height="760" data-path="images/integrations/810968_351617.png" />
    </Frame>
  </Step>

  <Step title="Test the connection">
    Type a message in the chat input and send it. A successful reply confirms the integration is working.

    <Frame>
      <img src="https://mintcdn.com/cometapi/mA1ovj6s0e3RM42l/images/integrations/810968_351618.png?fit=max&auto=format&n=mA1ovj6s0e3RM42l&q=85&s=2f2aecbecc80d2f3042f84d8e9d13d48" alt="ChatGPT Friend showing a successful AI response" width="1024" height="905" data-path="images/integrations/810968_351618.png" />
    </Frame>

    If the call fails, verify your API key and the interface address, or contact [CometAPI support](https://www.cometapi.com).
  </Step>
</Steps>
