# Cursor

Use Felo API Platform in Cursor through custom OpenAI-compatible settings where available.

Use this guide to install the Felo Skill for Cursor. This setup does not change how Cursor chooses its model: continue using the model you already have unless you also configure a Felo-compatible provider manually.

## Before you start

- A Felo API key: [create one](https://openapi.felo.ai/console/api-keys).
- [Node.js 22 or newer](https://nodejs.org/en/download) if you use the FeloAPI CLI.
- Cursor installed.

## What this guide configures

| Item | Value |
| --- | --- |
| Model provider | unchanged (your existing Cursor model) |
| Felo Skill location | `~/.cursor/skills` |
| Protocol for optional Felo models | OpenAI-compatible |

## Option 1: install the Felo Skill

```bash
npm install -g feloapi-cli@latest
feloapi setup --agent cursor --skills-only --yes
```

This installs the Skill only; it does not modify Cursor's model provider. Start a new Cursor session, then ask it to use the `feloapi` Skill, for example: “Use the feloapi skill to search the web for today's AI news and summarize it.” 

## Option 2: use Felo models (manual, optional)

In Cursor, open the model/provider settings and add a custom **OpenAI-compatible** provider:

| Field | Value |
| --- | --- |
| Base URL | `https://openapi.felo.ai/api/v1` |
| API key | `YOUR_API_KEY` |
| Model | `MODEL_ID` |

Save and select the Felo provider. Cursor versions that do not expose a custom base URL cannot route models through Felo; install the Skill only in that case. Replace `MODEL_ID` with a text model from `feloapi model list`.
## Verify

```bash
feloapi doctor --agent cursor
```

The Skill is healthy when the report lists `cursor` with `ok: true`.

## Switch back / remove Felo

Your current model provider is untouched, so there is nothing to switch back. To remove the Skill:

```bash
feloapi disconnect cursor --yes
```

## Troubleshooting

| Issue | What to do |
| --- | --- |
| `feloapi: command not found` | Reopen the terminal and retry; install with `npm install -g feloapi-cli@latest`. |
| Skill is not used | Start a new Cursor session; Skills are discovered at startup. |
| Authentication fails when the Skill calls Felo | Create a key and run `feloapi auth login` (or export `FELO_API_KEY`). |
| Felo model does not answer | Check the manual provider fields above; the base URL and key must match. |

## Related

- [FeloAPI CLI guide](https://openapi.felo.ai/docs/cli.md)
- [Models and pricing](https://openapi.felo.ai/docs/guides/models-and-pricing.md)
- [Other AI tools](https://openapi.felo.ai/docs/agent-clients/other-tools.md)
