Integrations for your coding tools

Keep Claude Code, Cursor, Codex, Cline or your SDK, and change two settings: the base URL and the API key. Straitly then serves 117 models through one key, billed 40% under the provider's list price on most models. Claude Opus 5.5 costs $2.40 in and $12.00 out per 1M tokens, 40% under its list price of $4.00 and $20.00.[1][2][3]

Updated

The two settings to change[3]
OpenAI-compatible tools
https://api.straitly.ai/v1
Claude Code and Anthropic SDK
https://api.straitly.ai
API key
your Straitly key

Where does each setting live?

The two base URLs differ on purpose: Anthropic-style clients add /v1/messages themselves, so they take the root address.

  1. Your tool, one of two kinds

    OpenAI-compatible tools and SDKs on one side; Claude Code, the Claude app and the Anthropic SDK on the other.

  2. Two base URLs, one key

    OpenAI-compatible tools use https://api.straitly.ai/v1. Anthropic-style clients use https://api.straitly.ai. The same key works in both.

  3. 117 models

    Either address reaches the whole catalog. Pick the model in your tool as you do now.

  4. One balance

    Every tool draws from the same prepaid credits, billed 40% under the provider's list price on most models.

Base URL and setting location for all 13 integrations
Claude Code4 steps
https://api.straitly.aiAnthropic Messages, ~/.claude/settings.json
Cursor5 steps
https://api.straitly.ai/v1OpenAI-compatible, Cursor Settings > Models > API Keys
Codex4 steps
https://api.straitly.ai/v1OpenAI Responses, ~/.codex/config.toml
OpenCode4 steps
https://api.straitly.ai/v1OpenAI-compatible, ~/.config/opencode/opencode.json
Cline5 steps
https://api.straitly.ai/v1OpenAI-compatible, Cline settings > API Provider
Claude app5 steps
https://api.straitly.aiAnthropic Messages, Developer > Configure Third-Party Inference
Hermes4 steps
https://api.straitly.ai/v1OpenAI-compatible, ~/.hermes/config.yaml
OpenClaw4 steps
https://api.straitly.ai/v1OpenAI-compatible, ~/.openclaw/openclaw.json
OpenAI SDK5 steps
https://api.straitly.ai/v1OpenAI-compatible, Client constructor
Anthropic SDK5 steps
https://api.straitly.aiAnthropic Messages, Client constructor
LangChain5 steps
https://api.straitly.ai/v1OpenAI-compatible, Client constructor
LlamaIndex5 steps
https://api.straitly.ai/v1OpenAI-compatible, Client constructor
Vercel AI SDK5 steps
https://api.straitly.ai/v1OpenAI-compatible, Client constructor

What does switching change?

From Straitly's public pricing and catalog, read 16 November 2026.

The pooled rate is 40% under the provider's list price on most models[1]: 98 of 103 models with a list price are at least 40% under it[2].

One key and one base URL reach 117 models[3]. 134 of 145 models are priced under the lowest OpenRouter seller[2].

You change two settings in your tool: the base URL and the key. There are 13 setup guides, for 8 coding tools and 5 SDKs, and the smallest top-up is $5, with no card or platform fee[3].

What does the same session cost?

10M input tokens and 1M output tokens, USD

ModelList priceStraitly
Claude Opus 5.5$60.00$36.00
GPT-6.2 Astra$120.00$72.00
Claude Sonnet 5.5$30.00$18.00
Gemini 4 Neon$45.00
Qwen3.8 Max$21.45$12.87
GLM-5.3$18.40$5.55

One example workload, priced at list and on Straitly from the public catalog on 25 November 2026[2]. List: the lab's published price. Every guide has a full price table.

Switch in 2 minutes.

Building your own tool? The OpenAI SDK takes the same two lines. Keep your code, change the base URL and key.

from openai import OpenAI

client = OpenAI(
    base_url="https://api.straitly.ai/v1",
    api_key="YOUR_STRAITLY_API_KEY",
)
Read the quickstart

Two base URLs.

OpenAI-compatible tools: https://api.straitly.ai/v1. Claude Code, the Claude app and the Anthropic SDK: https://api.straitly.ai.[3]

Pick your tool

Integration questions.

Ask a question
  • Claude Code, Cursor, Codex, OpenCode, Cline, Claude app, Hermes, OpenClaw, plus the OpenAI SDK, Anthropic SDK, LangChain, LlamaIndex, Vercel AI SDK. Any tool that lets you set an OpenAI-compatible or Anthropic Messages base URL and API key can use it.
  • Two things: the base URL and the API key. OpenAI-compatible tools use https://api.straitly.ai/v1. Claude Code, the Claude app and the Anthropic SDK use https://api.straitly.ai, because they add /v1/messages themselves.
  • Most models are billed 40% under the provider's list price, per token. On 16 November 2026, 98 of 103 models with a published list price were at least 40% under it.
  • Almost always. On 16 November 2026 Straitly cost less on 134 of 145 models also sold on OpenRouter; for the major labs that is Anthropic 18 of 18, OpenAI 24 of 25, Google 15 of 16, xAI 6 of 6. The lowest OpenRouter seller cost less on 11. All 11 are open-weight models (Qwen, DeepSeek, GLM, gpt-oss, Kimi and Gemma variants). Each guide shows both numbers for its models.
  • Not for the model calls. Your Straitly key pays for tokens from prepaid credits. Some tools still have their own plans: Cursor Teams and Enterprise, for example, add a Cursor Token Rate on requests made with your own key.
  • Yes. One key works in every tool and SDK listed here, and all of them draw from the same balance. You can also create a separate key per tool to see usage per tool.

Sources

Each tool's setup steps were checked against its own docs on 16 November 2026. Prices come from Straitly's public catalog. Going to production? Read the production checklist, structured outputs guide, prompt caching docs and error reference.

  1. [1]Straitly pricingstraitly.ai/pricing, 15 November 2026
  2. [2]Straitly public catalogstraitly.ai/api/catalog, shown on straitly.ai/models, 25 November 2026
  3. [3]Straitly home pagestraitly.ai, 16 November 2026
  4. [4]Claude Code: connect to an LLM gatewaycode.claude.com, 16 November 2026
  5. [5]Claude Code: LLM gatewayscode.claude.com, 16 November 2026
All 19 sources
  1. [6]Claude Code settingscode.claude.com, 16 November 2026
  2. [7]Cursor: API keyscursor.com, 16 November 2026
  3. [8]Codex: advanced configurationdevelopers.openai.com, 16 November 2026
  4. [9]OpenCode: providersopencode.ai, 16 November 2026
  5. [10]Cline: OpenAI Compatible providerdocs.cline.bot, 16 November 2026
  6. [11]Claude Desktop with an LLM gatewayclaude.com, 16 November 2026
  7. [12]Hermes Agent: providershermes-agent.nousresearch.com, 16 November 2026
  8. [13]OpenClaw: custom providersdocs.openclaw.ai, 16 November 2026
  9. [14]OpenClaw: configurationdocs.openclaw.ai, 16 November 2026
  10. [15]OpenAI SDK referencedevelopers.openai.com, 16 November 2026
  11. [16]Anthropic SDK referenceplatform.claude.com, 16 November 2026
  12. [17]LangChain referencedocs.langchain.com, 16 November 2026
  13. [18]LlamaIndex referencedevelopers.llamaindex.ai, 16 November 2026
  14. [19]Vercel AI SDK referenceai-sdk.dev, 16 November 2026
What each source says
[1] Straitly pricing
Billed per token at the pooled rate, 40% under the provider's published rate on most models, with nothing added on top. Failed requests cost nothing. No subscription, no minimum.
[2] Straitly public catalog
Every model ID with Straitly's price, the lab's official list price where one is published, and the lowest OpenRouter seller including its 5.5% credit fee.
[3] Straitly home page
One OpenAI-compatible API for 117 models. Sign up with email or Google, top-ups from $5 with no card or platform fee, base URL https://api.straitly.ai/v1, and requests move to another provider serving the same model if one goes down.
[4] Claude Code: connect to an LLM gateway
Set ANTHROPIC_BASE_URL and ANTHROPIC_AUTH_TOKEN in the shell or in the env block of ~/.claude/settings.json.
[5] Claude Code: LLM gateways
A gateway credential replaces the Claude subscription login for that session.
[6] Claude Code settings
settings.json keys, including env, model and modelPicker (modelPicker needs Claude Code 2.1.242 or later).
[7] Cursor: API keys
Custom API keys work with chat models only; Tab completion keeps using Cursor's models. Teams and Enterprise pay a Cursor Token Rate of $0.25 per 1M tokens on eligible requests; models with a cache-read price under $0.10 per 1M are exempt.
[8] Codex: advanced configuration
Define [model_providers.<id>] with name, base_url, env_key and wire_api, then set model_provider at the top level.
[9] OpenCode: providers
Add an OpenAI-compatible provider under providers with env, package, settings.baseURL and models; pick it with /models.
[10] Cline: OpenAI Compatible provider
Choose API Provider: OpenAI Compatible, then set Base URL, API Key and Model ID.
[11] Claude Desktop with an LLM gateway
Gateway inference with a static API key. The gateway must implement POST /v1/messages with streaming and tool use.
[12] Hermes Agent: providers
Run hermes model and choose Custom endpoint, or set model.provider: custom with base_url and api_key or key_env in config.yaml.
[13] OpenClaw: custom providers
models.providers.<id> with baseUrl, apiKey, api: openai-completions and models, plus agents.defaults.model.primary.
[14] OpenClaw: configuration
OpenClaw reads JSON5 config from ~/.openclaw/openclaw.json and applies edits to that file.
[15] OpenAI SDK reference
The library's own reference for the client used in this example.
[16] Anthropic SDK reference
The library's own reference for the client used in this example.
[17] LangChain reference
The library's own reference for the client used in this example.
[18] LlamaIndex reference
The library's own reference for the client used in this example.
[19] Vercel AI SDK reference
The library's own reference for the client used in this example.

Start with one request.

Prepaid, no subscription, no minimum. One key for every tool on this page, 40% under list on most models.