Secrets Store, AI Gateway, SSL/TLS - Manage and deploy your AI provider keys through Bring Your Own Key (BYOK) with AI Gateway, now powered by Cloudflare Secrets Store
10mo ago
Source
CloudflareSecrets Store, AI Gateway, SSL/TLS - Manage and deploy your AI provider keys through Bring Your Own Key (BYOK) with AI Gateway, now powered by Cloudflare Secrets Storecloudflare.comCloudflare Secrets Store is now integrated with AI Gateway, allowing you to store, manage, and deploy your AI provider keys in a secure and seamless configuration through Bring Your Own Key . Instead of passing your AI provider keys directly in every request header, you can centrally manage each key with Secrets Store and deploy in your gateway configuration using only a reference, rather than passing the value in plain text. You can now create a secret directly from your AI Gateway in the dashboard by navigating into your gateway -> Provider Keys -> Add . You can also create your secret with the newly available ai_gateway scope via wrangler , the Secrets Store dashboard , or the API . Then, pass the key in the request header using its Secrets Store reference: curl -X POST \ --header 'cf-aig-authorization: ANTHROPIC_KEY_1 \ --header 'anthropic-version: 2023-06-01' \ --header 'Content-Type: application/json' \ --data '{"model": "claude-3-opus-20240229", "messages": [{ "role" : "user", "content": "What is Cloudflare?"}]}' Or, using Javascript: import Anthropic from '@anthropic-ai/sdk'; const anthropic = new Anthropic({ apiKey: "ANTHROPIC_KEY_1", baseURL: " }); const message = await anthropic.messages.create({ model: 'claude-3-opus-20240229', messages: [{role: "user", content: "What is Cloudflare?"}], max_tokens: 1024 }); For more information, check out the blog !
You might also wanna read
A look at CloudFlare’s AI-coded OAuth library
Cloudflare Evolves AI Gateway into Unified Inference Layer for AI Agents
Cloudflare is evolving its AI Gateway into a unified inference layer for AI agents, allowing developers to access models from 14+ providers
Migrating to Claude AI: How to Switch from Other AI Providers Without Losing Your Data
This article appears to be promotional content from Anthropic about their Claude AI platform, focusing on how users can switch from other AI
Cloudflare enables AI agents to autonomously create accounts, buy domains, and deploy code
Cloudflare now allows AI coding agents to create accounts, purchase domains, set up paid subscriptions, and obtain API tokens autonomously o
How to Configure Claude Code and Claude Agent SDK with Vercel AI Gateway
This article explains how to configure Claude Code and the Claude Agent SDK to work with Vercel's AI Gateway. It provides step-by-step instr
Anthropic's Claude Opus 4.6 AI Model Discovers 500+ High-Severity Security Flaws in Open-Source Libraries
Anthropic's latest AI model, Claude Opus 4.6, has discovered over 500 previously unknown high-severity security vulnerabilities in open-sour

Comments
Sign in to join the conversation.
No comments yet. Be the first.