# AI Provider for Cursor

Unofficial WordPress plugin that registers a **Cursor** provider for the [WordPress AI Client](https://make.wordpress.org/core/2026/03/24/introducing-the-ai-client-in-wordpress-7-0/) using the [Cursor Cloud Agents API](https://cursor.com/docs/cloud-agent/api/endpoints).

Not affiliated with Cursor or Anysphere. "Cursor" is a trademark of Anysphere, Inc.

## Requirements

- WordPress 7.0+
- PHP 7.4+
- Cursor API key

## Configuration

1. Get an API key from [cursor.com/dashboard/api](https://cursor.com/dashboard/api)
2. Enter it under **Settings → Connectors** (Cursor card), or set `CURSOR_API_KEY` as an environment variable / PHP constant
3. Optionally open **Settings → AI Provider for Cursor** for poll / model / archive options

## External services

This plugin sends authenticated requests to `https://api.cursor.com` when the Cursor provider is used (model discovery, text generation, optional agent archive). Prompt text and your API key are transmitted to Cursor; see `readme.txt` for full disclosure, endpoints, and links to Cursor's [Terms of Service](https://cursor.com/terms-of-service) and [Privacy Policy](https://cursor.com/privacy).

## Usage

```php
use WordPress\AiClient\AiClient;

$result = AiClient::prompt( 'Summarize this product in one sentence.' )
	->usingProvider( 'cursor' )
	->generateTextResult();
```

## License

GPL-2.0-or-later

## Donate

[https://linknabio.gg/rafa_carvalhido_wp](https://linknabio.gg/rafa_carvalhido_wp)
