<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/native-anthropic-sdk-support-for-the-ai-gateway-wqgvz1c0s" -->

---
title: Native Anthropic SDK support for the AI Gateway | daily.dev
description: Ngrok's AI Gateway now natively supports Anthropic's SDK in addition to OpenAI's format. Developers using the Anthropic SDK can point their base URL at the...
canonical: https://daily.dev/posts/native-anthropic-sdk-support-for-the-ai-gateway-wqgvz1c0s
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Native Anthropic SDK support for the AI Gateway | daily.dev
og:description: Ngrok's AI Gateway now natively supports Anthropic's SDK in addition to OpenAI's format. Developers using the Anthropic SDK can point their base URL at the...
og:url: https://daily.dev/posts/native-anthropic-sdk-support-for-the-ai-gateway-wqgvz1c0s
og:image: https://api.daily.dev/og/posts/wqgvZ1c0s.png
og:image:alt: Native Anthropic SDK support for the AI Gateway
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Native Anthropic SDK support for the AI Gateway

**[ngrok Blog](https://daily.dev/sources/ngrok)** · 2 min read · 0 upvotes · 0 comments

## Summary

Ngrok's AI Gateway now natively supports Anthropic's SDK in addition to OpenAI's format. Developers using the Anthropic SDK can point their base URL at the gateway endpoint and access Claude-specific features like prompt caching, extended thinking, and beta headers, while keeping gateway benefits such as automatic failover, model selection, streaming, and tool use. A key limitation: Anthropic SDK requests can currently only route to Anthropic itself, since cross-provider failover requires the Claude Messages API which only Anthropic supports in the catalog today.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://ngrok.com/blog/native-anthropic-sdk-support>

## Questions this post answers

### How do I use the Anthropic SDK with ngrok's AI Gateway?

Change the base URL in the Anthropic SDK configuration to the ngrok AI Gateway endpoint. The gateway automatically detects Anthropic SDK requests and forwards them unchanged, so Claude-specific features like prompt caching, extended thinking, and beta headers work immediately when Anthropic ships them, without requiring an SDK switch to OpenAI's format.

_Developers wiring Claude into production gateways can track integration changes like this on daily.dev._

### Can I use ngrok's AI Gateway to failover across different LLM providers with the Anthropic SDK?

No, Anthropic SDK requests through the gateway can only route to providers supporting the Claude Messages API, which in the catalog is currently just Anthropic itself. For cross-provider failover, developers need to either use both the Anthropic and OpenAI SDKs in their codebase or rely solely on the OpenAI SDK, which supports the broader provider catalog.

_Teams weighing multi-provider LLM failover strategies can follow gateway updates like this on daily.dev._

## Similar posts on daily.dev

- [AI Gateway support for Claude Code](https://daily.dev/posts/ai-gateway-support-for-claude-code-tkqkttjro) · Vercel · 10 upvotes · 0 comments
- [Anthropic Adds Enterprise Gateway to Simplify Claude Code Access on AWS and Google Cloud](https://daily.dev/posts/anthropic-adds-enterprise-gateway-to-simplify-claude-code-access-on-aws-and-google-cloud-oyydknyv2) · DevOps.com · 0 upvotes · 0 comments
- [Anthropic’s Claude Platform comes to AWS](https://daily.dev/posts/anthropic-s-claude-platform-comes-to-aws-lst8e53hs) · The New Stack · 0 upvotes · 0 comments
- [Anthropic extends Claude Code to browsers](https://daily.dev/posts/anthropic-extends-claude-code-to-browsers-ibcvkf9i8) · InfoWorld · 19 upvotes · 0 comments

---

Tags: [#devtools](https://daily.dev/tags/devtools), [#claude](https://daily.dev/tags/claude), [#anthropic](https://daily.dev/tags/anthropic), [#ai-gateway](https://daily.dev/tags/ai-gateway)

[View this post on daily.dev](https://daily.dev/posts/native-anthropic-sdk-support-for-the-ai-gateway-wqgvz1c0s)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Native Anthropic SDK support for the AI Gateway","url":"https://daily.dev/posts/native-anthropic-sdk-support-for-the-ai-gateway-wqgvz1c0s","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/native-anthropic-sdk-support-for-the-ai-gateway-wqgvz1c0s"},"datePublished":"2026-08-23T07:21:08.866Z","dateModified":"2026-08-23T07:24:54.849Z","description":"Ngrok's AI Gateway now natively supports Anthropic's SDK in addition to OpenAI's format. Developers using the Anthropic SDK can point their base URL at the...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/c830ac637ef448a5b9d4cd9fb14c2283?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/c830ac637ef448a5b9d4cd9fb14c2283?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"ngrok Blog","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"ngrok Blog","logo":"https://media.daily.dev/image/upload/s--718XXxvE--/f_auto,q_auto/v1787469610/logos/ngrok?_a=BAMAMicg0","url":"https://daily.dev/sources/ngrok"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/native-anthropic-sdk-support-for-the-ai-gateway-wqgvz1c0s","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"devtools,claude,anthropic,ai-gateway","timeRequired":"PT2M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"ngrok Blog","item":"https://daily.dev/sources/ngrok"},{"@type":"ListItem","position":3,"name":"Native Anthropic SDK support for the AI Gateway"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/native-anthropic-sdk-support-for-the-ai-gateway-wqgvz1c0s#faq","mainEntity":[{"@type":"Question","name":"How do I use the Anthropic SDK with ngrok's AI Gateway?","acceptedAnswer":{"@type":"Answer","text":"Change the base URL in the Anthropic SDK configuration to the ngrok AI Gateway endpoint. The gateway automatically detects Anthropic SDK requests and forwards them unchanged, so Claude-specific features like prompt caching, extended thinking, and beta headers work immediately when Anthropic ships them, without requiring an SDK switch to OpenAI's format. Developers wiring Claude into production gateways can track integration changes like this on daily.dev."}},{"@type":"Question","name":"Can I use ngrok's AI Gateway to failover across different LLM providers with the Anthropic SDK?","acceptedAnswer":{"@type":"Answer","text":"No, Anthropic SDK requests through the gateway can only route to providers supporting the Claude Messages API, which in the catalog is currently just Anthropic itself. For cross-provider failover, developers need to either use both the Anthropic and OpenAI SDKs in their codebase or rely solely on the OpenAI SDK, which supports the broader provider catalog. Teams weighing multi-provider LLM failover strategies can follow gateway updates like this on daily.dev."}}]}
```

