Amazon Ergo in Cline
Cline has an "OpenAI Compatible" provider that accepts any Chat Completions endpoint, and that is how Amazon Ergo connects. You enter a base URL, a key and a model id, then set the context window yourself, because Cline cannot detect it for a custom model.
Every example needs an ergo_live_ API key with prepaid credit (from $5). Get an API key →
Amazon positions Ergo as an open-weight model for agentic coding and long-running tasks, which is the kind of work Cline's plan and act loop does. There is no official Amazon guidance for Cline. It works because Cline's OpenAI Compatible provider talks to any endpoint with the Chat Completions format, including our hosted one. Ergo Model is an independent service, not affiliated with Amazon or with Cline.
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.
2. Choose the OpenAI Compatible provider
Open Cline's settings from the gear icon in the Cline panel, set API Provider to "OpenAI Compatible", and fill in:
- Base URL: https://ergomodel.net/api/v1
- API Key: your ergo_live_... key
- Model ID: ergo-1.0
Requests then go to POST https://ergomodel.net/api/v1/chat/completions.
3. Set the context window manually
Cline does not know the limits of a custom model, so it falls back to a small default and will condense the conversation long before it has to. Expand Model Configuration under the provider and set:
- Context Window Size: 1048576
- Max Output Tokens: 8192 or higher (the model's ceiling is 131072)
- Supports Images: off. The model is text only and image input is not supported.
- Input Price 1.5 and Output Price 4.5, if you want Cline's cost counter to match your bill.
Reasoning and the output limit
Ergo always reasons before it answers and this cannot be turned off. Reasoning tokens come out of the output limit and are billed as output. That is the reason for the 8192 above, which is also AWS's own guidance: with a very small limit the reasoning uses up the budget and the reply arrives empty with finish_reason "length". For direct API calls, 2,048 is a sensible floor for short answers.
Using it day to day
- A 1,048,576-token window lets Cline keep long sessions and large files in view. Input is billed per token on every request, so watch the cost counter on long tasks; a 100,000-token prompt is $0.15 each time it is sent.
- Tool calls are forwarded unchanged, so Cline's file edits and terminal commands work as with other OpenAI-compatible models.
- Screenshots and browser captures cannot be read by the model. Leave image support off so Cline does not send them.
- The rate limit is 30 requests per minute per key. A 429 response carries a Retry-After header.
- A 402 insufficient_credits error means the balance is zero; top up from the dashboard.
Alternative: Cline's OpenRouter provider
If you already use OpenRouter, pick Cline's OpenRouter provider and select amazon/ergo-1.0. It costs less per token (about $1 in / $3 out per 1M), but one provider there caps context at 262K, so long sessions can fail unless you restrict routing. Our endpoint is pinned to providers that serve the full 1M context. The OpenRouter guide has the details.
If something does not work
Re-check the three values (base URL ending in /api/v1, the ergo_live_ key, model id ergo-1.0) and confirm the context window override was saved. A 401 means the key is missing or wrong; a 402 means there is no balance.
FAQ
How do I use Amazon Ergo in Cline?
In Cline's settings choose the OpenAI Compatible provider, enter Base URL https://ergomodel.net/api/v1, paste an ergo_live_ key, set Model ID to ergo-1.0, then open Model Configuration and set the context window to 1048576.
What context window should I set in Cline?
1048576. Cline cannot detect a custom model's limits, so without the manual value it assumes a much smaller window and condenses the conversation early.
Does Amazon Ergo support images in Cline?
No. The model is text in, text out. Leave the Supports Images option off.
What does it cost?
$1.50 per 1M input tokens and $4.50 per 1M output tokens through our API, prepaid from $5 with no subscription. Reasoning tokens count as output.
Can I use Cline's OpenRouter provider instead?
Yes, with the model id amazon/ergo-1.0 and your own OpenRouter key. It is cheaper per token; check which provider serves your requests, because one caps context at 262K.
See also: Get an API key · opencode guide · OpenRouter guide · Context window
Start using Amazon Ergo
Try the model in the free browser playground first, then create a key and add it to your setup.