Integration · Cursor

Use ubc now inside Cursor.

Cursor talks to any OpenAI-compatible API. Point it at ubc now and code against frontier models on your free daily budget — no subscription, no credit card.

What works

Supported in Cursor.

ubc now serves a standard OpenAI-compatible endpoint, so the Cursor features that route to a custom model work against your daily budget:

Chat (⌘L)

Ask questions about your codebase against a ubc now model.

Inline edit (⌘K)

Rewrite and refactor selections with a frontier model.

Agent / Composer

Multi-file agentic edits routed through your custom endpoint.

Setup

Connect in a few steps.

Mint a ubc now key

Verify once with Self, then mint an API key at /api-keys. It starts with ubc_sk_ and draws from your shared daily budget.

Override the OpenAI base URL

In Cursor: Settings → Models → OpenAI API Key. Enable “Override OpenAI Base URL”, paste the values below, and save.

ubc now connection
OPENAI_BASE_URL=https://ubcnow.ai/v1
OPENAI_API_KEY=ubc_sk_…

Add a model id

Cursor needs the exact model id. List what ubc now serves and add one as a custom model in the same settings panel.

List the models ubc now serves
curl https://ubcnow.ai/v1/models \
-H "Authorization: Bearer ubc_sk_…"

Verify it works

Open Chat (⌘L), select your custom model, and send a message. A reply means Cursor is routing through ubc now.

Examples

Copy, paste, run.

Confirm the endpoint from your terminal

Before wiring Cursor, sanity-check the key and base URL with curl.

A chat completion against your daily budget
curl https://ubcnow.ai/v1/chat/completions \
-H "Authorization: Bearer ubc_sk_…" \
-H "Content-Type: application/json" \
-d '{
"model": "<model-id>",
"messages": [{"role": "user", "content": "Hello"}]
}'
Troubleshooting

If something's off.

Tab autocomplete still uses Cursor's model

That is expected. Cursor's Tab completion runs on Cursor's own models; only Chat, Inline edit, and Agent route to a custom OpenAI base URL.

401 Unauthorized

Your key must be an active ubc now key (it starts with ubc_sk_). Mint or re-mint one at /api-keys, and make sure it is sent as a Bearer token, not pasted into a username field.

402 / budget exhausted

You have spent your daily token allowance. It resets at 00:00 UTC. Image and chat usage both draw from the same daily pool.

Model not found

Use an exact model id from https://ubcnow.ai/v1/models — copy it verbatim. ubc now does not alias OpenAI model names like "gpt-4o"; pick one of the models it actually serves.

Start coding on your free share.

Mint a key and point Cursor at ubc now in under a minute.