# Cursor

Keep Cursor's own model provider and add a Blaschke client to the project you're building. This is a project integration, not a native Cursor model connection.

## Add Blaschke to your project.

Paste this scoped prompt into Cursor's agent. It keeps your key in the environment and asks before inference or deployment.

### Cursor project prompt

```text
Set up Blaschke in this project. My coding agent keeps its existing model provider; I want to use Blaschke from the project I'm building.

Blaschke uses an OpenAI Chat Completions-compatible API. Its native gateway does not provide Anthropic Messages or OpenAI Responses.

- Base URL: https://beta.blaschkelabs.com/v1
- API key: read it from BLASCHKE_API_KEY. Never put the key in source, config, logs or git.
- Model: read the exact model ID from BLASCHKE_MODEL. If it is missing, ask me to choose an ID returned by model discovery. Its inference worker must be configured and running separately.

Do this:
1. Find where the project already calls an LLM, or add a small client if it has none. Use the official OpenAI SDK for the project's language with the base URL above.
2. Add BLASCHKE_BASE_URL, BLASCHKE_API_KEY and BLASCHKE_MODEL to .env.example without secret values, and load them using the project's existing configuration pattern.
3. Check GET https://beta.blaschkelabs.com/v1/models with the bearer key. Confirm BLASCHKE_MODEL exactly matches a returned ID.
4. Keep request output bounded with max_tokens. Do not send unsupported fields such as logprobs, parallel_tool_calls or function strict:true.
5. Only send inference if I explicitly ask, and print the returned model if I do. Do not start a worker, commit or deploy.
6. Tell me what you changed and any limits that remain.
```

## Keep the boundaries clear.

Cursor's editor and model selection stay in place; the generated application uses the OpenAI-compatible Blaschke route.

- Do not paste a worker credential into Cursor or into the project's example environment file.
- Use the base URL in the prompt unless you intentionally use another deployment.
- Do not enable unsupported request fields or assume the worker is running because its model appears in metadata.

## Related guides

- [Detailed setup prompt](https://beta.blaschkelabs.com/docs/agents/setup): Use the existing project integration workflow.
- [SDK integrations](https://beta.blaschkelabs.com/docs/sdks): Choose the supported OpenAI client for your language.

Source: https://beta.blaschkelabs.com/docs/agents/coding-agents/cursor

Markdown: https://beta.blaschkelabs.com/docs/md/agents/coding-agents/cursor.md
