# Cloudflare

Source: https://zshot-cli.com/reference/llm_connections/cloudflare/
Markdown: https://zshot-cli.com/reference/llm_connections/cloudflare/index.md
Section: [Reference](https://zshot-cli.com/reference/) › [LLM Connections](https://zshot-cli.com/reference/llm_connections/)
Protocol: [`cloudflare://`](https://zshot-cli.com/reference/llm_connections/) · Default model: `@cf/cloudflare/clef`
Key env: `CLOUDFLARE_API_KEY` · [Roles](https://zshot-cli.com/reference/llm_connections/roles/): [Formats](https://zshot-cli.com/reference/llm_connections/roles/#formats) · [Navigates](https://zshot-cli.com/reference/llm_connections/roles/#navigates) · [Writes](https://zshot-cli.com/reference/llm_connections/roles/#writes)
License: [Pro](https://zshot-cli.com/support/licenses/pro)

Runs a Workers AI model under a Cloudflare account, named as the string's host or by `CLOUDFLARE_ACCOUNT_ID`. The model's protocol sets what it does:

| `protocol=` | Models | Runs as |
| --- | --- | --- |
| `typesafe` | Decision models, such as Clef | [`typesafe`](/reference/llm_connections/typesafe) does: navigator only, choosing among listed alternatives |
| `openai` | Chat models, such as `@cf/openai/gpt-oss-120b` | A chat provider, which also formats and writes |

Without `protocol=`, a model under `@cf/cloudflare/clef` speaks `typesafe` and any other `openai`. A bare model name names one of Cloudflare's own, so `clef` is `@cf/cloudflare/clef`.

## Options

| Option | On Cloudflare |
| --- | --- |
| `protocol` | `typesafe` or `openai`, from the model when absent |
| `gateway` | The AI Gateway each call goes through, as `CLOUDFLARE_GATEWAY_ID` names it |
| [`vision`](/reference/llm_connections/options#vision-and-frames) | A decision model is shown screenshots at `stall:3`. A chat model is off by default; `vision=true` opts in one that reads images |
| [`body.<path>`](/reference/llm_connections/options#request-body-fields) | Chat models; fields OpenAI's chat request names |
| `header`, `max_tokens`, `temperature`, `top_p`, `frames`, `timeout` | As [listed](/reference/llm_connections/options); the chat options apply to chat models |

## Example

A Clef navigator with a writer:

**CLI**

```sh
zshot --navigate "Open the formats page" \
  --navigator-type "cloudflare://?name=scout" \
  --navigator-type "anthropic://?name=writer&writer=true" \
  -f out.png https://zshot-cli.com/
```

A chat model formatting, through a gateway:

**CLI**

```sh
zshot -t llm_text \
  --llm-format-model "cloudflare://?model=@cf/openai/gpt-oss-120b&gateway=my-gateway" \
  --llm-format-prompt "Summarize the lead story in one sentence." \
  -f summary.txt https://zshot-cli.com/example_assets/gazette/
```

## Related

Flags:

- [`--llm-format-model`](https://zshot-cli.com/reference/flags/document/llm-format-model/)
- [`--navigator-type`](https://zshot-cli.com/reference/flags/navigator/navigator-type/)

Topics:

- [Connection String Options](https://zshot-cli.com/reference/llm_connections/options/)
- [TypeSafe](https://zshot-cli.com/reference/llm_connections/typesafe/)
- [Workers AI](https://developers.cloudflare.com/workers-ai/) — Cloudflare

## Navigation

- [Examples](https://zshot-cli.com/examples/)
- [Download](https://zshot-cli.com/download/)
- [Purchase](https://zshot-cli.com/purchase/)
- [Reference](https://zshot-cli.com/reference/)
  - [Formats](https://zshot-cli.com/reference/formats/)
  - [Flags](https://zshot-cli.com/reference/flags/)
  - [Agents](https://zshot-cli.com/reference/agents/)
  - [Configuration](https://zshot-cli.com/reference/configuration/)
  - [Crawling](https://zshot-cli.com/reference/crawling/)
  - [Docker](https://zshot-cli.com/reference/docker/)
  - [Exit Codes](https://zshot-cli.com/reference/exit_codes/)
  - [Linux](https://zshot-cli.com/reference/linux/)
  - [LLM Connections](https://zshot-cli.com/reference/llm_connections/)
    - [Connection String Options](https://zshot-cli.com/reference/llm_connections/options/)
    - [Roles](https://zshot-cli.com/reference/llm_connections/roles/)
    - [Anthropic](https://zshot-cli.com/reference/llm_connections/anthropic/)
    - [OpenAI](https://zshot-cli.com/reference/llm_connections/openai/)
    - [Google](https://zshot-cli.com/reference/llm_connections/google/)
    - [Ollama](https://zshot-cli.com/reference/llm_connections/ollama/)
    - [Mistral](https://zshot-cli.com/reference/llm_connections/mistral/)
    - [DeepSeek](https://zshot-cli.com/reference/llm_connections/deepseek/)
    - [Mercury](https://zshot-cli.com/reference/llm_connections/mercury/)
    - [Groq](https://zshot-cli.com/reference/llm_connections/groq/)
    - [HuggingFace](https://zshot-cli.com/reference/llm_connections/huggingface/)
    - [TypeSafe](https://zshot-cli.com/reference/llm_connections/typesafe/)
    - **Cloudflare**
    - [OpenRouter](https://zshot-cli.com/reference/llm_connections/openrouter/)
    - [stdio](https://zshot-cli.com/reference/llm_connections/stdio/)
  - [LLM Formatting](https://zshot-cli.com/reference/llm_formatting/)
  - [Local Inputs](https://zshot-cli.com/reference/inputs/)
  - [Navigator](https://zshot-cli.com/reference/navigator/)
  - [Security](https://zshot-cli.com/reference/security/)
  - [Server](https://zshot-cli.com/reference/server/)
  - [Shell completions](https://zshot-cli.com/reference/shell_completions/)
  - [Storage](https://zshot-cli.com/reference/storage/)
  - [Timeouts](https://zshot-cli.com/reference/timeouts/)
  - [Web Bot Auth](https://zshot-cli.com/reference/web_bot_auth/)
- [Support](https://zshot-cli.com/support/)
- [Changelog](https://zshot-cli.com/changelog/)

Site index: https://zshot-cli.com/llms.txt

