← HomeIntegrations

Use Amazon Ergo in your tools

Our hosted API for the Amazon Ergo model is OpenAI-compatible, so it connects to the tools you already use. Setup guides for opencode, Cline, Cursor, OpenRouter and the TypeScript SDK, plus the proxy route Claude Code needs.

Agent / CLI

opencode

Amazon Ergo opencode setup: a custom provider using @ai-sdk/openai-compatible, baseURL https://ergomodel.net/api/v1, model ergo-1.0 and the limit block that unlocks the 1,048,576-token context.

Open guide →
Gateway

OpenRouter

Call Amazon Ergo on OpenRouter with the model id amazon/ergo-1.0 at https://openrouter.ai/api/v1. A working request, the provider that caps context at 262K, and how OpenRouter differs from our hosted key.

Open guide →
Agent / CLI

Claude Code

Claude Code speaks the Anthropic Messages API, not OpenAI's, so Amazon Ergo needs a translating proxy such as LiteLLM in front. Minimal config for our ergo-1.0 endpoint, plus the trade-offs.

Open guide →
Agent / IDE

Cursor

Add Amazon Ergo to Cursor with Override OpenAI Base URL: endpoint https://ergomodel.net/api/v1, an ergo_live_ key and a custom model named ergo-1.0. Includes the limits of Cursor's custom-model support.

Open guide →
Agent / IDE

Cline

Add Amazon Ergo to Cline with the OpenAI Compatible provider: base URL https://ergomodel.net/api/v1, an ergo_live_ key, model id ergo-1.0, and the context window set to 1048576 by hand.

Open guide →
SDK

TypeScript

Call Amazon Ergo from TypeScript or Node with the openai npm package: baseURL https://ergomodel.net/api/v1, model ergo-1.0, max_tokens 2048+. Non-streaming, streaming and usage examples.

Open guide →

Ready to build?

Create an API key, add prepaid credit from $5, and call Amazon Ergo from your app or agent at $1.50 per 1M input tokens and $4.50 per 1M output tokens.

Read the API docsGet an API key
Amazon Ergo integrations — opencode, Cline, Cursor, SDKs · Ergo Model