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

> ## Agent Instructions
> Treat these docs and the Whop MCP server as the source of truth for Whop API behavior. Don't infer endpoint behavior from marketing pages.
> MCP server: connect https://mcp.whop.com/mcp (streamable HTTP, browser sign-in, no API key in the client config) to search these docs and read or change live Whop data. Setup: https://docs.whop.com/developer/guides/ai_and_mcp.md
> Whop CLI: install with `curl -fsSL https://whop.com/install.sh | sh` to scaffold, run, and deploy Whop apps and websites. It acts on production, not the sandbox. Overview: https://docs.whop.com/cli/overview.md Agent mode: https://docs.whop.com/cli/agent-mode.md
> Hosting: Whop serves a site or app from the build `whop apps deploy` uploads, with rollbacks, secrets, and server logs. Guide: https://docs.whop.com/developer/websites/hosting.md
> Plugins: in Claude Code, run `/plugin marketplace add whopio/plugins`, then `/plugin install whop@whop`. Guide: https://docs.whop.com/developer/guides/plugins/claude-code.md Every agent tool: https://docs.whop.com/developer/ai/overview.md
> Environments: build and test in the sandbox (API `https://sandbox-api.whop.com/api/v1`, keys at https://sandbox.whop.com/dashboard/developer, SDK environment `Sandbox`; no real money). Production (API `https://api.whop.com/api/v1`, keys at https://whop.com/dashboard/developer, SDK environment `Production`, the SDK default) moves real money, so use it only at launch. The two share no accounts, keys, products, or webhooks, and their keys look identical: never mix them. Sandbox guide: https://docs.whop.com/developer/guides/sandbox.md Comparison: https://docs.whop.com/developer/quickstart.md
> API: send `Authorization: Bearer <API_KEY>` from your server only, and pin a dated version with the `Api-Version-Date` header. OpenAPI spec: https://api.whop.com/api/v1/openapi.json
> Which API: build on the Current API, whose pages live under https://docs.whop.com/api-reference/ (start at https://docs.whop.com/api-reference/overview.md). Pages under /api-reference/legacy/ are the Legacy API. Use one only when https://docs.whop.com/api-reference/stability.md lists the resource as Legacy-only.

# Bouwen met de CLI en Claude

> Gebruik de Whop CLI samen met Claude om vanuit je terminal een Whop-app op te zetten, te bouwen en te publiceren.

Met de Whop CLI en Claude maak je van "ik wil een Whop-app bouwen" een werkende integratie zonder je terminal te verlaten. De CLI zet de basis op, deployt en kan zichzelf registreren als tool voor je agent, terwijl Claude de documentatie van Whop via MCP leest en de code schrijft. Jij blijft betrokken.

> [!NOTE]
>
> Je hebt een Whop-account nodig. Installeer de CLI met `curl -fsSL https://whop.com/install.sh | sh`. De commando's op deze pagina zijn gecontroleerd met CLI v0.16.1.

> [!WARNING]
>
> De CLI werkt op productie. Er is geen sandboxmodus, en de wizards ervan kunnen echte apps aanmaken en echt geld verplaatsen.

## Kies je bedrijf

```bash theme={null}
whop quickstart
```

Kiest of maakt het Whop-bedrijf waarop de CLI werkt, en meldt je aan. Om alleen aan te melden, opent `whop login --method oauth` een browser.

## Geef je agent de tools van Whop

Verbind de twee Whop MCP-servers, zodat Claude tijdens het bouwen de documentatie kan lezen en de API kan aanroepen. De installatieblokken voor beide staan op [AI en MCP](https://docs.whop.com/nl/developer/guides/ai_and_mcp.md).

Synchroniseer daarna de skill-bestanden van Whop, zodat de agent de conventies van Whop kent zonder dat je ze elke keer hoeft uit te leggen:

```bash theme={null}
whop skills add
```

Nu kan Claude vragen beantwoorden zoals hoe je betalingen accepteert op Whop op basis van de actuele documentatie, en via de API acties uitvoeren op je account.

## Zet een app op

```bash theme={null}
whop apps init --name "My App" --app_type b2c_app
```

Registreert de app, zet de nieuwste template op, configureert die voor hosting op Whop en installeert dependencies. Vraag Claude daarna: *"Voeg met behulp van de Whop-documentatie een Whop Elements-checkout toe en een webhook die toegang verleent na betaling."* Claude haalt de actuele API op via de [Whop MCP-server](https://docs.whop.com/nl/developer/guides/ai_and_mcp.md) en schrijft de code daartegen.

## Ontwikkel en publiceer

```bash theme={null}
whop apps dev       # build and run locally
whop apps deploy    # build, typecheck, upload, and promote to production
```

Gebruik `whop apps deploy --preview` om te uploaden zonder te promoten, en promoot later. Zo rol je ook terug.

> [!TIP]
>
> Houd Claude de hele sessie verbonden met de Whop MCP-server. Zo blijft de code werken met de actuele API.

## Volgende stappen

> [card] [AI en MCP](https://docs.whop.com/nl/developer/guides/ai_and_mcp.md)
>
> De volledige MCP-setup.

> [card] [Whop CLI](https://docs.whop.com/nl/cli/overview.md)
>
> Alle beschikbare commando's.


## Related topics

- [Whop CLI](https://docs.whop.com/nl/cli/overview.md)
- [Whop CLI Agent Mode](https://docs.whop.com/nl/cli/agent-mode.md)
- [AI-tools om op Whop te bouwen](https://docs.whop.com/nl/developer/ai/overview.md)
