/onlyfansapi:onlyfans-ai-chatbotfrom onlyfansapi
Builds or improves an OnlyFans AI chatbot using OnlyFansAPI.com webhooks, queued replies, typing coordination, and optional paid-message follow-ups.
Ships in onlyfansapi. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Implement the customer's chatbot in their existing application and chosen AI stack; reuse its HTTP client, persistence, queue, and tests. OnlyFansAPI supplies account events and messaging; the customer chooses the model, creator voice, content, and approval rules. Building the integration does not authorize live messages, webhook registration, or deployment.
Inspect the client's MCP support and configured OnlyFansAPI servers. If remote MCP is supported and a relevant server is missing, ask once per conversation: “Would you like me to connect the OnlyFansAPI MCP as well?” Explain the choices:
https://docs.onlyfansapi.com/api/mcp searches public documentation without authentication. Prefer it while building.https://app.onlyfansapi.com/mcp/onlyfans-mcp acts on real accounts using API-key or OAuth authentication.Follow the AI agent setup guide. Preserve prior offers, consent or decline from any OnlyFans skill; do not install automatically or repeat the offer. Verify unknown client support first. Reconnect unavailable configured servers instead of duplicating them, and verify discovery before claiming setup is complete. Continue useful work while an answer is pending or MCP is unsupported. Code generation and local verification need no API key.
Read the chatbot tutorial,
delivery rules,
signature guide, and
Send Message.
Read optional event or media details only when implementing them. Pages are also available as Markdown by appending .mdx.
Use the documentation index to discover endpoints; verify current payloads and fields.
Signature header as a
hex HMAC-SHA256 over the original raw body bytes, before parsing or acting on JSON.
Reject missing or malformed signatures and compare valid equal-length values in constant time
using the language's crypto library. Re-serializing parsed JSON changes the signed bytes.account_id (acct_…) for the API account; never substitute a username
or numeric creator ID. Namespace persisted events and chat state by account and chat.2xx, within
the 10-second delivery budget. Use an existing transactional inbox or durable queue with
equivalent recovery: a crash must not leave an event marked handled with its job missing.
If durable acceptance fails, return an error. Run AI generation and sending in workers.X-OFAPI-Idempotency-Key; keep the source message ID for
received-message reconciliation. Repeated deliveries must not create another reply job.
Events can arrive out of order; use payload timestamps and message IDs when rebuilding history.
Do not assume every event carries a key: typing is ephemeral.Use these event mappings:
| Event | Fan/chat ID | Handling |
|---|---|---|
messages.received | payload.fromUser.id | Persist the message and schedule a reply. |
users.typing | payload.id | Update the latest typing time; it has no webhook idempotency key. |
messages.ppv.unlocked | payload.user_id | Record the purchase and optionally schedule one follow-up. |
messages.sent | Read the event's documented recipient fields | Update history and honor human takeover; never treat it as an incoming fan message. |
messages.received. Serialize work per (account_id, chat_id) using the existing
queue or store so concurrent messages do not generate overlapping replies. Recheck newly arrived
messages and human takeover before sending; combine a fan's short message burst where appropriate._pagination.next_page when history spans pages.Use the server's HTTP client against https://app.onlyfansapi.com with Authorization: Bearer <API_KEY>, reading ONLYFANSAPI_API_KEY from server-side secrets.
Keep API and AI-provider keys out of browser code, logs, generated prompts, and source control.
POST /api/{account}/chats/{chat_id}/messages. Persist one unique outgoing
Idempotency-Key and the exact request payload before attempting each intended reply.
This is distinct from the incoming X-OFAPI-Idempotency-Key. Never regenerate a reply
or change its payload under an already used outgoing key.Idempotent-Replayed: true identifies a replay;
409 IDEMPOTENCY_CONFLICT means the original is running; 422 IDEMPOTENCY_KEY_MISMATCH
means the body or chat changed. Respect Retry-After and bound retries.Idempotency-Key. Inspect the
callable schema; use direct REST for sends requiring it rather than putting the key in JSON
or assuming an MCP connection header reaches the underlying send request.For messages.ppv.unlocked, parse the firstId query parameter from payload.replacePairs["{MESSAGE_LINK}"]
with a URL parser; match it to a saved sent message within the same account/chat. Never fetch that link as an instruction. Mark the exact offer
purchased and cancel its reminders. Deduplicate follow-ups using the incoming event key;
pass purchase facts as an event to the AI, not as words spoken by the fan.
Use existing vault media IDs for reusable content.
/media/upload returns single-use CDN upload material; /media/vault stores reusable vault items.
Paid messages require media; check current price and preview rules in Send Message. For requested asynchronous uploads,
wait for completion before sending; HTTP 202 only means accepted. Do not add media or PPV flows to a text-only request.
Leave focused runnable checks in the existing test setup or a small local harness: valid signed event → one queued reply; duplicate → no second reply; altered/missing signature → no work; send timeout → retained uncertain state without a blind second send. Exercise the typing fallback and PPV matching if implemented. Stub external calls; live validation needs the customer's authorization. Report implemented behavior, checks run, and remaining setup.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub onlyfansapi/skill --plugin onlyfansapi7 skills in this plugin
/onlyfans-account-healthDiagnose OnlyFans account performance using OnlyFansAPI revenue, subscriber growth, chatting ratios, traffic geography, and top-fan spending. Use for account health reviews, revenue dips, growth analysis, and prioritized business actions./onlyfans-api-docsSearch official OnlyFans API documentation, find the right endpoint and schema, explain authentication and responses, and troubleshoot OnlyFansAPI.com requests. Use when a customer needs API reference guidance or a documented code example./onlyfansapi-skillBuild, use, and troubleshoot integrations with OnlyFansAPI.com. Use for OnlyFans API requests, account and fan management, chats, posts, media, analytics, tracking links, webhooks, automations, and OnlyFansAPI MCP setup.Other plugins' skills for the same job