> Discover all available pages from the documentation index: https://mastra.ai/llms.txt

# ![Cloudflare AI Gateway logo](https://models.dev/logos/cloudflare-ai-gateway.svg)Cloudflare AI Gateway

Cloudflare AI Gateway is available through the AI SDK. Install the provider package to use their models with Mastra.

For detailed provider-specific documentation, see the [AI SDK Cloudflare AI Gateway provider docs](https://ai-sdk.dev/providers/community-providers/cloudflare-ai-gateway).

To use this provider with Mastra agents, see the [Agent Overview documentation](https://mastra.ai/docs/agents/overview).

## Installation

**npm**:

```bash
npm install ai-gateway-provider
```

**pnpm**:

```bash
pnpm add ai-gateway-provider
```

**Yarn**:

```bash
yarn add ai-gateway-provider
```

**Bun**:

```bash
bun add ai-gateway-provider
```