Warehouses connector

Cloudflare D1 connector for governed AI agent access

Connect Cloudflare D1 with an account ID, D1 database ID, and account-scoped API token.

Query

Direct answer

OneQuery supports Cloudflare D1 for governed agent access.

Teams use the Cloudflare D1 connector to give AI agents SQL-style query workflows for structured data access while OneQuery keeps credentials centralized, limits access to approved sources, and preserves audit logs for review.

Agent workflow

What this connector enables

Cloudflare D1 becomes an approved OneQuery source instead of a secret copied into an agent prompt, shell session, or model tool. The agent receives a governed access path, and the source credentials stay behind OneQuery.

  • Use SQL-style query workflows for structured data access for warehouses context.
  • Keep Cloudflare D1 credentials centralized and out of agent runtimes.
  • Review agent access through OneQuery audit history instead of reconstructing direct service usage.

Setup checklist

Prepare the Cloudflare D1 connection

Use cloudflare d1 credentials and connect the source through the Dashboard and CLI. Keep credentials scoped to the data the agent is allowed to read.

  1. Copy the Cloudflare Account ID from the dashboard.
  2. Copy the D1 database ID from the target database settings.
  3. Create a Cloudflare API token that can query the target D1 database.
  4. Only include `apiBaseUrl` when you need a non-default Cloudflare API origin.

FAQ

Cloudflare D1 connector questions

What is the OneQuery Cloudflare D1 connector?

The OneQuery Cloudflare D1 connector makes warehouses context from Cloudflare D1 available to AI agents through SQL-style query workflows for structured data access. Connect Cloudflare D1 with an account ID, D1 database ID, and account-scoped API token.

How do AI agents access Cloudflare D1 through OneQuery?

Agents call OneQuery instead of receiving raw Cloudflare D1 credentials. OneQuery keeps credentials centralized, applies source boundaries, and records access in audit logs while exposing SQL-style query workflows for structured data access.

How do I set up the Cloudflare D1 connector?

Prepare cloudflare d1 credentials and connect Cloudflare D1 from the OneQuery dashboard or CLI. Start with this setup step: Copy the Cloudflare Account ID from the dashboard.