Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.onlyfanskit.dev/llms.txt

Use this file to discover all available pages before exploring further.

Run onlyfans <command> --help for per-command flags.

Connect & identity

CommandWhat it does
onlyfans connectInteractive connect flow (cookie, cURL, email/password, OTP).
onlyfans loginLog in with credentials and store the session.
onlyfans whoamiShow the authenticated creator’s identity.
onlyfans sessionInspect the current session.
onlyfans session:exportExport the stored session.
onlyfans session:clearClear the stored session.

Accounts

CommandWhat it does
onlyfans accounts:listList registered accounts.
onlyfans accounts:addRegister a named account.
onlyfans accounts:removeRemove a registered account.
onlyfans accounts:healthValidate each account’s session.
onlyfans accounts:aggregateAggregate metrics across accounts.

Operations

CommandWhat it does
onlyfans healthValidate the session against the API.
onlyfans doctorDiagnose configuration and connectivity.
onlyfans metricsShow request metrics.
onlyfans rules:checkVerify the client is up to date and ready to call.
onlyfans exportExport account data.

Messaging & realtime

CommandWhat it does
onlyfans chats:listList recent chats.
onlyfans message:sendSend a direct message.
onlyfans listenStream realtime events to the terminal.
onlyfans webhook:testSend a synthetic event to a webhook URL.

Examples

# Validate a session
onlyfans health --json

# Send a DM
onlyfans message:send --to 123456 --text "Hi!"

# Stream events
onlyfans listen --account main

# Verify the client is ready
onlyfans rules:check