# Develop with AI Agents (/introduction/guides/develop-with-ai-agents)



## AI-ready docs resources

When building with AI agents, point them to these resources first:

* [docs.onlyfansapi.com/llms.txt](https://docs.onlyfansapi.com/llms.txt) - canonical AI-friendly docs entrypoint
* [docs.onlyfansapi.com/llms-full.txt](https://docs.onlyfansapi.com/llms-full.txt) - complete LLM-friendly docs (also used for backward compatibility)
* [API Reference](/api-reference) - interactive endpoint docs by category
* [OpenAPI schema](https://app.onlyfansapi.com/scribe-docs/openapi.yaml) - machine-readable API spec

### Per-page `.mdx` URLs

For individual guides or API endpoints, just append `.mdx` to the page URL and feed that directly to the AI agent.

Examples:

* `https://docs.onlyfansapi.com/introduction/guides/develop-with-ai-agents.mdx`
* `https://docs.onlyfansapi.com/api-reference/account/list-accounts.mdx`
* `https://docs.onlyfansapi.com/api-reference/chats/list-chats.mdx`

## Install `onlyfansapi-skill` from skills.sh

Skill page:
[skills.sh/onlyfansapi/skill/onlyfansapi-skill](https://skills.sh/onlyfansapi/skill/onlyfansapi-skill)

Install command shown on the skill page:

```bash
npx skills add https://github.com/onlyfansapi/skill --skill onlyfansapi-skill
```

<Callout>
  Restart your agent/CLI session after installation so the new skill is loaded.
</Callout>

## Configure your API key

The skill expects `ONLYFANSAPI_API_KEY` in your environment:

```bash
export ONLYFANSAPI_API_KEY="your_api_key_here"
```

Get your key from:
[app.onlyfansapi.com/api-keys](https://app.onlyfansapi.com/api-keys)

Quick auth check:

```bash
curl -s -H "Authorization: Bearer $ONLYFANSAPI_API_KEY" \
  "https://app.onlyfansapi.com/api/accounts" | jq .
```

## Prompting tips for better agent output

* Ask the agent to read `llms.txt` or `llms-full.txt` before generating calls.
* Include exact date ranges and timezone when requesting analytics.
* Ask for tables with totals when comparing multiple accounts.
* Ask the agent to show endpoint path + params before execution if you want to review requests first.
