> ## 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 OpenManus with CometAPI

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

[OpenManus](https://github.com/mannaandpoem/OpenManus) is an open-source agentic AI framework. Connect it to CometAPI by editing the `config.toml` file.

## Prerequisites

* [OpenManus](https://github.com/mannaandpoem/OpenManus) deployed and running
* A [CometAPI](https://www.cometapi.com) account with an active API key

## Setup

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

    <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 — Add API Key" 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 and base URL" width="2434" height="1232" data-path="images/overview/810968_364193.png" />
    </Frame>
  </Step>

  <Step title="Create and edit config.toml">
    In the `config/` directory, copy the example config file to `config.toml`. Set `base_url` to `https://api.cometapi.com/v1` and paste your CometAPI key as `api_key`.

    <Frame>
      <img src="https://mintcdn.com/cometapi/mA1ovj6s0e3RM42l/images/integrations/810968_351746.png?fit=max&auto=format&n=mA1ovj6s0e3RM42l&q=85&s=b54eb16e49f5d2d492107cc15dc3c601" alt="OpenManus config.toml — base_url and api_key fields" width="682" height="287" data-path="images/integrations/810968_351746.png" />
    </Frame>
  </Step>

  <Step title="Test the connection">
    Run OpenManus with a test task. A successful response confirms the setup is working.

    <Frame>
      <img src="https://mintcdn.com/cometapi/mA1ovj6s0e3RM42l/images/integrations/810968_351747.png?fit=max&auto=format&n=mA1ovj6s0e3RM42l&q=85&s=53c1f9af9ba67a486f06287ce15c0513" alt="OpenManus terminal showing a successful response from CometAPI" width="1892" height="970" data-path="images/integrations/810968_351747.png" />
    </Frame>
  </Step>
</Steps>

<script type="application/ld+json">
  {`
    {
    "@context": "https://schema.org",
    "@graph": [
      {
        "@type": "HowTo",
        "@id": "https://apidoc.cometapi.com/integrations/openmanus#howto",
        "name": "Use OpenManus with CometAPI",
        "description": "Use this guide to configure OpenManus with CometAPI by setting the base URL, API key, and model or provider options.",
        "step": [
          {
            "@type": "HowToStep",
            "@id": "https://apidoc.cometapi.com/integrations/openmanus#step-1",
            "position": 1,
            "name": "Get your CometAPI API key",
            "text": "Create or open your CometAPI account, then copy an active API key from the dashboard."
          },
          {
            "@type": "HowToStep",
            "@id": "https://apidoc.cometapi.com/integrations/openmanus#step-2",
            "position": 2,
            "name": "Create and edit config.toml",
            "text": "Complete the Create and edit config.toml step in the Use OpenManus with CometAPI guide."
          },
          {
            "@type": "HowToStep",
            "@id": "https://apidoc.cometapi.com/integrations/openmanus#step-3",
            "position": 3,
            "name": "Test the connection",
            "text": "Select a current model ID from the CometAPI Models page, then send a test request from the integration."
          }
        ]
      },
      {
        "@type": "BreadcrumbList",
        "itemListElement": [
          {
            "@type": "ListItem",
            "position": 1,
            "name": "CometAPI Docs",
            "item": "https://apidoc.cometapi.com/"
          },
          {
            "@type": "ListItem",
            "position": 2,
            "name": "Integrations",
            "item": "https://apidoc.cometapi.com/integrations"
          },
          {
            "@type": "ListItem",
            "position": 3,
            "name": "Use OpenManus with CometAPI",
            "item": "https://apidoc.cometapi.com/integrations/openmanus"
          }
        ]
      }
    ]
    }
    `}
</script>
