← All integrationsIntegration · Agent / IDE

Amazon Ergo in Cursor

Cursor can send chat requests to a custom OpenAI-compatible endpoint, which is enough to use Amazon Ergo there. The setup takes a minute. The caveats matter more: custom models cover Cursor's chat and ask-style features, not everything, and the behaviour changes between Cursor versions.

Every example needs an ergo_live_ API key with prepaid credit (from $5). Get an API key →

First, the honest framing. No official Amazon guidance exists for Cursor; AWS documents opencode, Codex CLI and a proxy route for Claude Code, and nothing for this editor. What follows relies on a generic Cursor feature, "Override OpenAI Base URL", which works with any server that speaks OpenAI Chat Completions. Our hosted API for the Amazon Ergo model is one such server. Ergo Model is independent and is not affiliated with Amazon or with Cursor.

1. Get a key

Create an ergo_live_ key at /get-api-key and add credit. The API is prepaid from $5 and billed at $1.50 per 1M input tokens and $4.50 per 1M output tokens; using it this way does not go through your Cursor plan's model allowance.

2. Add the model in Cursor

Open Cursor Settings and go to the Models section. Labels move around between releases, but the steps are:

Requests then go to POST https://ergomodel.net/api/v1/chat/completions. If verification fails, check that the URL ends in /api/v1 with no trailing path and that the key has a balance; a zero balance returns 402 insufficient_credits.

What works and what does not

Reasoning and empty replies

Ergo always reasons before answering and this cannot be disabled. Reasoning tokens come out of max_tokens and are billed as output, so a simple question costs a few hundred extra output tokens. Cursor sets max_tokens itself; if you ever see an empty reply, a too-small output cap consumed by reasoning is the usual cause. When calling the API from your own code, set max_tokens to at least 2,048.

If you want a full coding agent

For multi-step agent work on the Ergo model, opencode and Cline are the more predictable choices: both let you set the endpoint, the model id and the context window explicitly. Cursor is a fine place to chat with the model about the code in front of you.

FAQ

How do I add Amazon Ergo to Cursor?

In Cursor Settings, Models: add a custom model named ergo-1.0, paste an ergo_live_ key into the OpenAI API Key field, enable Override OpenAI Base URL and set it to https://ergomodel.net/api/v1, then pick ergo-1.0 in the chat model picker.

Does it work with Cursor's agent and tab completion?

Custom models apply to chat and ask-style features. Tab completion and some agent features use Cursor's own models. The exact split depends on your Cursor version and has changed over time.

Is there official Amazon guidance for Cursor?

No. AWS documents opencode, Codex CLI and Claude Code through a proxy. Cursor works only because it accepts any OpenAI-compatible endpoint.

Will the override affect my other Cursor models?

It redirects Cursor's OpenAI-keyed requests to our endpoint. Models that Cursor serves itself are unaffected, but OpenAI models called with your own key will not work until you turn the override off.

What does it cost?

$1.50 per 1M input tokens and $4.50 per 1M output tokens through our API, prepaid from $5. Reasoning tokens count as output.

See also: Get an API key · Cline guide · opencode guide · OpenAI-compatible API

Start using Amazon Ergo

Try the model in the free browser playground first, then create a key and add it to your setup.

Open the playgroundGet an API key
Amazon Ergo in Cursor — custom OpenAI-compatible model · Ergo Model