> Documentation index: https://metorial.com/llms.txt. Every page is available as Markdown by adding .md to its URL.

# Set up Whop in Metorial for Claude, ChatGPT and Cursor
URL: https://metorial.com/docs/integrations/whop
Last updated: 2026-11-24

Share Whop with your team in Claude, ChatGPT and Cursor through Metorial: OAuth or API key sign-in, 17 tools (11 read-only).

---

To give your team Whop in Claude, ChatGPT, Cursor and other AI clients, an admin shares the Whop integration in a Metorial portal, and each person signs in to Whop with their own account. Agents can manage Whop products, pricing plans, memberships, members, payments, refunds, promo codes, checkout configurations, invoices, and user profiles. The integration has 17 tools, 11 read-only, 2 write and 4 destructive, plus 4 triggers.

**What you will learn**

- How an admin shares Whop in a portal and how each person connects
- The 3 OAuth scopes Whop can request, and what each one allows
- How to keep the 11 read-only tools and reject the other 6

**Before you start**

- A [portal](https://metorial.com/docs/platform/workforce/portals) with at least one access group
- An account with Whop for each person who connects
- For the CLI steps: the [Metorial CLI](https://metorial.com/docs/platform/cli), signed in to your portal

## Sign-in methods

| Method | Type | What a person provides |
| --- | --- | --- |
| **OAuth** (default) | OAuth | Signs in to Whop |
| **API Key** | API token | `token` |

The portal and `metorial setup` use **OAuth** unless someone picks another method.

### OAuth

People sign in to Whop and approve the scopes you allow. The integration can request:

| Scope | Name | What it allows |
| --- | --- | --- |
| `openid` | OpenID | Base identity scope for authentication |
| `profile` | Profile | Access to user profile information (name, username, picture) |
| `email` | Email | Access to user email and verification status |

### API Key

To connect, a person enters:

- `token`: Your Whop API key (Company API key or App API key)

### Setup settings

Whichever method you pick, setup also asks for:

- `companyId` (optional): Your Whop company ID (e.g. biz_xxxxx). Required for most API operations.

## Use your own Whop OAuth app

With your own OAuth app, people see your company's name on the Whop consent screen, and the client ID and secret belong to you.

1. **Start the credentials in Metorial**

   In the dashboard, select **Settings**, then **Organization Settings**. Under **Integrations and MCP**, select **Provider Auth**, then **Create Auth Credentials**. Choose Whop and copy the **Redirect URI**.

2. **Register the app with Whop**

   Create an OAuth app or client in Whop and add the redirect URI from Metorial as its redirect or callback URL.

3. **Finish in Metorial**

   Copy the app's client ID and client secret. Back in Metorial, enter a **Name**, the **Client ID** and the **Client Secret**, review **Scopes**, and select **Create**. Then pick these credentials for the Whop integration.

## Admin: share Whop in a portal

### In the dashboard

1. **Open Shared Resources**

   Open **Workforce**, choose the portal, and select **Shared Resources** under **Access**.

2. **Share a new integration**

   Select **Share a Resource**, then **New Integration**, and choose Whop. Under **Auth Method**, keep **OAuth** or pick another. For how members connect, choose **Each person connects**, so everyone signs in to Whop as themselves.

3. **Limit the tools**

   Under **Tool Filters**, set the write and destructive groups to **Reject** if agents should only read from Whop.

4. **Choose who gets it**

   Add the access groups that should see Whop. When a person asks for access from the portal, the request appears under **Access Requests**.

### With the CLI

The CLI cannot create the per-user Whop integration. Once it exists, check which groups have it:

```bash
metorial-admin portals access list <portal-id> --type provider_template --search whop
```

## Employee: connect Whop

### In the portal

1. **Open Whop in the catalog**

   Sign in to your portal and open Whop. The status reads **Available**.

2. **Authenticate**

   Under **Quick setup**, select **Authenticate**. A Whop sign-in tab opens. Sign in and approve the permissions listed.

3. **Confirm**

   The status changes to **Configured**. If it later reads **Needs reconnect**, select **Reconnect** and sign in again.

### With the CLI

```bash
metorial catalog search whop
metorial setup <catalog-item-id>
```

`catalog search` prints the catalog item ID. `metorial setup` uses **OAuth**. To connect with **API Key** instead, find its ID with `metorial catalog get <catalog-item-id>` and add `--auth-method <auth-method-id>`.

### Add it to your AI client

`metorial install` adds your Whop connection to a local MCP client such as Claude Code, Cursor or Codex. `metorial list` prints the integration ID and `metorial client list` the client identifiers.

```bash
metorial list whop
metorial client list
metorial install <client-identifier> <integration-id>
```

For a client that takes a server URL, such as ChatGPT, `metorial install custom <integration-id>` creates an installation token and shows the endpoint details.

## Make it read-only

Open the integration's **Tool Filters** and set the write and destructive groups to **Reject**. Agents keep the 11 read-only tools, such as `get_user` and `list_plans`, and lose the 2 write tools, such as `create_checkout` or `manage_membership`, and the 4 destructive tools, such as `manage_plan` or `manage_product`.

Employees see the result on the integration's page in the portal under **Tool access**. For the full walkthrough, see [Tool permissions](https://metorial.com/docs/platform/guides/tool-permissions).

## Check it worked

```bash
metorial list whop
metorial tools <integration-id>
metorial call <integration-id> list_plans -d '{}'
```

`metorial tools` lists the 17 tools, minus any you rejected. `list_plans` takes no input. It lists plans in your Whop company.

To see every input a tool takes, run `metorial schema <integration-id> <tool-key>`.

## Tools

### Read-only tools (11)

- `get_payment`: Retrieve detailed information about a specific payment, including user, product, membership, payment method, and refund details. Needs `paymentId`.
- `list_members`: List members of your Whop company.
- `list_products`: List products in your Whop company.
- `list_invoices`: List invoices in your Whop company.
- `list_plans`: List plans in your Whop company.
- `list_payments`: List payments in your Whop company.
- `get_user`: Retrieve a Whop user's public profile by their user ID or username. Needs `userIdOrUsername`.
- `list_memberships`: List memberships in your Whop company.
- `get_checkout`: Retrieve an existing Whop checkout configuration and its purchase URL, plan, redirect URL, and metadata without creating another checkout.
- `list_accounts`: Discover Whop business accounts visible to your credentials.
- `get_current_user`: Retrieve the signed-in Whop user’s identity using an OAuth connection.

### Write tools (2)

- `create_checkout`: Create a Whop checkout session. Needs `mode`.
- `manage_membership`: Retrieve, update metadata, cancel, uncancel, pause, or resume a Whop membership. Needs `action` and `membershipId`.

### Destructive tools (4)

- `manage_promo_code`: Create, retrieve, list, or delete Whop promo codes. Needs `action`.
- `manage_product`: Create, update, retrieve, or delete a Whop product. Needs `action`.
- `refund_payment`: Issue a full or partial refund for a Whop payment. Needs `paymentId`.
- `manage_plan`: Create, update, retrieve, or delete a Whop plan. Needs `action`.

## Triggers

Whop has 4 triggers, which fire on events in Whop:

- `payment_events`: Triggers when a payment succeeds or fails.
- `membership_events`: Triggers when a membership is activated, deactivated, or its cancel-at-period-end setting changes.
- `setup_intent_events`: Triggers when a customer saves their payment method via a setup intent (setup_intent.succeeded).
- `entry_events`: Triggers when someone joins a waitlist (entry.created).

## Next steps

- [Claude Code](https://metorial.com/docs/platform/clients/claude-code), [Cursor](https://metorial.com/docs/platform/clients/cursor), [Codex](https://metorial.com/docs/platform/clients/codex) and [ChatGPT](https://metorial.com/docs/platform/clients/chatgpt): connect each client to your portal and use Whop there
- [Create custom OAuth credentials](https://metorial.com/docs/platform/integrations/create-custom-oauth-credentials): the Provider Auth screens in more detail
- [Tool permissions](https://metorial.com/docs/platform/guides/tool-permissions): tool filters and what employees see
- [Whop on metorial.com](https://metorial.com/integrations/whop): the integration overview