[Enhancement]: Cloudflare AI Workers Integration #9033
Replies: 2 comments
-
For cloudflare workers AI, you need to use the openai compatible spec: Resources:
Based on the LibreChat documentation, here's a YAML configuration file for Cloudflare Workers AI: version: 1.2.8
cache: true
endpoints:
custom:
- name: "Cloudflare Workers AI"
apiKey: "${CF_API_TOKEN}"
baseURL: "https://gateway.ai.cloudflare.com/v1/${CF_ACCOUNT_ID}/${CF_GATEWAY_ID}/workers-ai/v1"
models:
default:
- "@cf/google/gemma-3-12b-it"
- "@cf/meta/llama-4-scout-17b-16e-instruct"
- "@cf/qwen/qwq-32b"
- "@cf/qwen/qwen2.5-coder-32b-instruct"
- "@cf/deepseek-ai/deepseek-r1-distill-qwen-32b"
- "@cf/openai/gpt-oss-120b"
fetch: false
titleConvo: true
titleModel: "@cf/google/gemma-3-12b-it"
modelDisplayLabel: "Cloudflare AI" Setup Instructions
CF_API_TOKEN=your_cloudflare_api_token
CF_ACCOUNT_ID=your_account_id
CF_GATEWAY_ID=your_gateway_id
services:
api:
volumes:
- type: bind
source: ./librechat.yaml
target: /app/librechat.yaml Configuration Details
After setting this up and restarting LibreChat, you'll see "Cloudflare Workers AI" as an available endpoint with all the specified models in the dropdown menu. ![]() Note,
|
Beta Was this translation helpful? Give feedback.
-
That was incredibly fast. Thank you Danny you're awesome! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
What features would you like to see added?
I spent a while trying to get Cloudflare AI Workers to show up on your list of providers within my Portainer YAML but couldn’t manage to do this. If you could enable access to some of their models, this would be fantastic. Thank you.
More details
Cloudflare AI Workers access.
Which components are impacted by your request?
No response
Pictures
No response
Code of Conduct
Beta Was this translation helpful? Give feedback.
All reactions