> ## 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.

# Whop CLI Ajan Modu

> Whop becerilerini ajanınıza senkronize edin ve CLI'ın makine tarafından okunabilir çıktı bayraklarını kullanın.

Yapay zeka ajanları Whop CLI'ın tamamını kullanabilir. Ayrı bir `agent` komutu yoktur. Ajan modu, CLI'ın kendisindeki bir dizi bayrak ve entegrasyondur.

> [!WARNING]
>
> CLI'ın sandbox, test veya deneme (dry-run) modu yoktur. Onu kullanan bir ajan üretim ortamında çalışır.

## Bir ajana Whop'un araçlarını verme

[Whop MCP sunucusunu](https://docs.whop.com/tr/developer/guides/ai_and_mcp.md) `https://mcp.whop.com/mcp` adresinden bağlayın. Tarayıcı üzerinden oturum açar, istemci yapılandırmasında API anahtarı gerektirmez ve önemli sonuçları olan işlemleri çalıştırmadan önce onay ister.

API'nin yapmadığı işler için CLI'ı onunla birlikte kullanın: proje iskeleti oluşturma, geliştirme sunucusu çalıştırma ve dağıtım.

`whop mcp add` bunun yerine CLI'ın kendisini yerel bir MCP sunucusu olarak kaydeder. Araçları, oturum açma dışında CLI'ın komutlarıdır: `auth`, `login` ve `logout` sunulmaz, bu nedenle ajan başlamadan önce `whop login` çalıştırın veya `WHOP_API_KEY` ayarlayın.

## Beceriler

`whop skills add`, Whop'un beceri dosyalarını ajanınıza senkronize eder: bir `whop` becerisi ve ajana Whop'un ödeme, uygulama ve reklam akışlarını öğreten playbook referansları. `whop skills list` neyin yüklü olduğunu gösterir.

## Makine tarafından okunabilir çıktı

Her komuttaki genel bayraklar; böylece bir ajan CLI'ı doğrudan çağırabilir ve dönen sonucu ayrıştırabilir:

| Bayrak | Amaç |
| - | - |
| `--llms`, `--llms-full` | Tüm CLI'ın LLM tarafından okunabilir bir manifestosunu yazdırır |
| `--schema` | Bir komut için JSON Schema |
| `--format <toon\|json\|yaml\|md\|jsonl>` | Çıktı biçimi |
| `--filter-output <keys>` | Çıktıyı anahtar yollarına göre filtreler |
| `--token-count` / `--token-limit <n>` / `--token-offset <n>` | Çıktı için token bütçesi belirler |

## Bir ajanın oturumunu açma

Gözetimsiz kullanım için `--api-key` iletin veya `WHOP_API_KEY` ayarlayın. OAuth için CLI'ın kendi ajan yönergelerini izleyin. `whop login --method oauth --format jsonl` komutunu çıktıyı bir dosyaya yönlendirerek arka planda çalıştırın. Yayınlanan `authorizationUrl` adresini kısaltmadan kullanıcının tarayıcısında açın, ardından son `done` olayını bekleyin.

## Sonraki adımlar

> [card] [CLI ve Claude ile geliştirin](https://docs.whop.com/tr/developer/guides/cli-with-claude.md)
>
> Döngüde ajan olan iş akışının tamamı.

> [card] [Yapay zeka ve MCP](https://docs.whop.com/tr/developer/guides/ai_and_mcp.md)
>
> Whop MCP sunucusunu bağlayın.


## Related topics

- [Whop CLI](https://docs.whop.com/tr/cli/overview.md)
- [Whop CLI Komutları](https://docs.whop.com/tr/cli/commands.md)
- [Whop üzerinde geliştirme için yapay zekâ araçları](https://docs.whop.com/tr/developer/ai/overview.md)
