Skip to content

Commit 83023e4

Browse files
docs: add Cloudflare Workers AI provider (#18322)
Co-authored-by: Aiden Cline <63023139+rekram1-node@users.noreply.github.com>
1 parent d0a5730 commit 83023e4

1 file changed

Lines changed: 41 additions & 0 deletions

File tree

packages/web/src/content/docs/providers.mdx

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -544,6 +544,47 @@ Cloudflare AI Gateway lets you access models from OpenAI, Anthropic, Workers AI,
544544

545545
---
546546

547+
### Cloudflare Workers AI
548+
549+
Cloudflare Workers AI lets you run AI models on Cloudflare's global network directly via REST API, with no separate provider accounts needed for supported models.
550+
551+
1. Head over to the [Cloudflare dashboard](https://dash.cloudflare.com/), navigate to **Workers AI**, and select **Use REST API** to get your Account ID and create an API token.
552+
553+
2. Set your Account ID as an environment variable.
554+
555+
```bash title="~/.bash_profile"
556+
export CLOUDFLARE_ACCOUNT_ID=your-32-character-account-id
557+
```
558+
559+
3. Run the `/connect` command and search for **Cloudflare Workers AI**.
560+
561+
```txt
562+
/connect
563+
```
564+
565+
4. Enter your Cloudflare API token.
566+
567+
```txt
568+
┌ API key
569+
570+
571+
└ enter
572+
```
573+
574+
Or set it as an environment variable.
575+
576+
```bash title="~/.bash_profile"
577+
export CLOUDFLARE_API_KEY=your-api-token
578+
```
579+
580+
5. Run the `/models` command to select a model.
581+
582+
```txt
583+
/models
584+
```
585+
586+
---
587+
547588
### Cortecs
548589

549590
1. Head over to the [Cortecs console](https://cortecs.ai/), create an account, and generate an API key.

0 commit comments

Comments
 (0)