PHPackages                             gtgt/symfony-ai-cursor-platform - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. gtgt/symfony-ai-cursor-platform

ActiveSymfony-bundle[API Development](/categories/api)

gtgt/symfony-ai-cursor-platform
===============================

Symfony AI Platform bridge for Cursor (Cloud Agents API and local CLI agent)

0.9.0(1mo ago)03LGPL-3.0-or-laterPHPPHP &gt;=8.2

Since May 28Pushed 3w agoCompare

[ Source](https://github.com/gtgt/symfony-ai-cursor-platform)[ Packagist](https://packagist.org/packages/gtgt/symfony-ai-cursor-platform)[ RSS](/packages/gtgt-symfony-ai-cursor-platform/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (1)Dependencies (6)Versions (2)Used By (0)

Symfony AI Cursor Platform
==========================

[](#symfony-ai-cursor-platform)

Platform bridge for [Cursor](https://cursor.com) in the Symfony AI stack.

- [Symfony AI Bundle](https://symfony.com/doc/current/ai/bundles/ai-bundle.html) — YAML configuration, agents, console commands
- [Symfony AI Agent component](https://symfony.com/doc/current/ai/components/agent.html) — `AgentInterface`, messages, tools

Pick **one** backend:

- **CLI** — local `agent` command (typical for development)
- **Cloud** — Cursor Cloud Agents API (typical for CI / remote runs)

Installation
------------

[](#installation)

```
composer require symfony/ai-bundle symfony/ai-agent gtgt/symfony-ai-cursor-platform:@dev
```

Quick start (CLI)
-----------------

[](#quick-start-cli)

`config/packages/ai_platform_cursor.yaml`:

```
ai_platform_cursor:
    cli: ~
```

`config/packages/ai.yaml`:

```
ai:
    agent:
        default:
            platform: 'ai.platform.cursor_cli'
            model: 'default'
            tools: false
```

Use `tools: false` so Cursor handles its own tooling; Symfony toolbox tools are not passed through.

`.env` (only if you use an API key with the CLI instead of `agent login`):

```
# CURSOR_API_KEY=
```

### Try it

[](#try-it)

```
php bin/console ai:agent:call default
```

### Use in PHP

[](#use-in-php)

```
use Symfony\AI\Agent\AgentInterface;
use Symfony\AI\Platform\Message\Message;
use Symfony\AI\Platform\Message\MessageBag;

final readonly class Assistant
{
    public function __construct(
        private AgentInterface $agent, // ai.agent.default
    ) {
    }

    public function ask(string $question): string
    {
        return $this->agent->call(new MessageBag(Message::ofUser($question)));
    }
}
```

Common CLI settings (optional), still under `ai_platform_cursor.cli`:

```
ai_platform_cursor:
    cli:
        workspace: '%kernel.project_dir%'
        trust: true
        force: false
```

Per-call overrides are passed as agent options, e.g. `['cursor_force' => true]`.

Alternative: Cloud
------------------

[](#alternative-cloud)

Replace the CLI config with:

`config/packages/ai_platform_cursor.yaml`:

```
ai_platform_cursor:
    cloud:
        api_key: '%env(CURSOR_API_KEY)%'
        repositories:
            - url: 'https://github.com/your-org/your-repo.git'
```

`config/packages/ai.yaml`:

```
ai:
    agent:
        default:
            platform: 'ai.platform.cursor'
            model: 'default'
            tools: false
```

```
CURSOR_API_KEY=your_api_key_here
```

```
php bin/console ai:agent:call default
```

Models
------

[](#models)

Use `default` for Cursor’s default model, or any model id supported by your CLI / cloud account.

Symfony documentation
---------------------

[](#symfony-documentation)

- [AI Bundle](https://symfony.com/doc/current/ai/bundles/ai-bundle.html) — `ai.platform`, `ai.agent`, model options, `ai:agent:call`
- [Agent component](https://symfony.com/doc/current/ai/components/agent.html) — programmatic usage, processors, toolbox
- [Symfony AI overview](https://symfony.com/doc/current/ai/index.html)

License
-------

[](#license)

LGPL-3.0-or-later — see [LICENSE](LICENSE).

###  Health Score

35

—

LowBetter than 77% of packages

Maintenance92

Actively maintained with recent releases

Popularity3

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity36

Early-stage or recently created project

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

57d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/6842308?v=4)[GT](/maintainers/gt)[@gt](https://github.com/gt)

### Embed Badge

![Health badge](/badges/gtgt-symfony-ai-cursor-platform/health.svg)

```
[![Health](https://phpackages.com/badges/gtgt-symfony-ai-cursor-platform/health.svg)](https://phpackages.com/packages/gtgt-symfony-ai-cursor-platform)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
