---
description: Ask questions, run diagnostics, and take actions across your Cloudflare account using an AI-powered dashboard assistant.
title: Agent Lee
image: https://developers.cloudflare.com/agent-lee/og.png?v=e0b0bf7f4daf92bd
---

[Skip to content](#main-content)

> Documentation Index  
> Fetch the complete documentation index at: https://developers.cloudflare.com/agent-lee/llms.txt  
> Use this file to discover all available pages before exploring further.

# Agent Lee

Last updated Oct 27, 2026|Copy as Markdown| [View as Markdown](https://developers.cloudflare.com/agent-lee/index.md)| [Agent setup](https://developers.cloudflare.com/agent-setup/)

An AI co-pilot built into the Cloudflare dashboard. Ask questions about your account, take actions, and run diagnostics, all in plain language.

Beta

Agent Lee is currently in beta and available to accounts on a Free plan and to select Enterprise customers. Features and behaviors may change.

If you are on an Enterprise plan and would like access, contact your account team.

With Agent Lee, you can:

- Ask questions about your account configuration and get answers based on your actual data.
- Make changes to DNS records, zone settings, and security rules, with your approval required before anything executes.
- Undo a change Agent Lee made earlier in the conversation.
- Run network diagnostics like DNS lookups and certificate checks.
- Generate charts and visualizations from your account analytics.
- Find the right dashboard page for a task.
- Revisit your earlier conversations with Agent Lee.
- Open a Cloudflare Support case, if your account is eligible.

To get started, log in to the [Cloudflare dashboard ↗︎](https://dash.cloudflare.com) and select **Ask AI** in the upper-right corner of any dashboard page.

Agent Lee was previously referred to as Cloudflare Agent.

---

## Capabilities

### Account-aware answers

Agent Lee answers based on your actual account data, not just documentation. When you ask a question, it fetches your zone configuration, DNS records, and security settings before responding.

It can also tell you whether your account is entitled to a particular Cloudflare feature, and which plan tier you are on, so you know whether something is available to you before you try to configure it.

### Write operations

You can ask Agent Lee to create, update, or delete resources across your account using natural language. Every write operation requires your explicit approval before it executes, Agent Lee shows you exactly what it plans to do and waits for confirmation.

If you would rather Agent Lee never change anything, you can grant it [read-only access](https://developers.cloudflare.com/agent-lee/manage-access/), which leaves questions and diagnostics available.

Example requests:

- "Add an A record for blog.example.com pointing to 192.0.2.10."
- "Enable Always Use HTTPS on my zone."
- "Set the SSL mode for example.com to Full (strict)."

### Undo a change

If Agent Lee made a change earlier in the conversation and you want to reverse it, ask it to undo the change. Agent Lee works out the inverse operation and presents it to you as a proposed write, which you approve in the same way as any other change. Undo is not automatic, and it cannot reverse changes made outside of Agent Lee.

### Network diagnostics

Run diagnostic commands to troubleshoot connectivity and configuration issues:

- **DNS lookups**: Query DNS records for any domain
- **Certificate checks**: Inspect TLS/SSL certificates
- **Domain information**: Look up WHOIS and RDAP registration data

### Generative UI

Agent Lee builds charts, tables, and metric summaries from your account analytics. Most visualizations appear in the chat panel as a card that you select to open the full-screen view.

Example requests:

- "Show me a chart of my traffic over the last 7 days."
- "What does my error rate look like for the past 24 hours?"

### Dashboard navigation

Agent Lee searches the dashboard's page index rather than guessing at URLs, so it can point you to the exact page for a task. Links open on the account you currently have selected.

Example requests:

- "Where do I configure page rules for example.com?"
- "Take me to my R2 bucket settings."

### Conversation history

Agent Lee can list, search, and summarize your previous conversations, so you can pick up where you left off without repeating context.

Example requests:

- "What did we decide about the SSL settings last week?"
- "Summarize my last conversation."

Agent Lee treats past conversation context as supplemental. It re-reads your live account data before answering rather than relying on what was true in an earlier session.

### Support case handoff

If Agent Lee cannot resolve your issue and your account is eligible for ticket-based support, it can prepare a Cloudflare Support case for you. Agent Lee always shows you the case and waits for your confirmation before filing anything — it never opens a case silently.

Eligibility depends on your support entitlement rather than your plan name alone. Accounts on a Free plan can file billing disputes, such as a duplicate charge or a charge after cancelling. Agent Lee limits how many cases you can open per account within a 24-hour period.

### Product knowledge

Agent Lee has built-in guidance for individual Cloudflare products — including DNS, SSL/TLS, R2, Workers, Cloudflare Tunnel, Gateway, Access, and WARP — and searches the Cloudflare developer documentation and changelog when it needs more detail. Grounding answers in the published changelog means Agent Lee will tell you when a product you asked about does not exist, rather than inventing one.

---

## Data access and privacy

### What Agent Lee can access

- Zone settings, DNS records, firewall and WAF rules
- Workers scripts, routes, and bindings
- R2 bucket names, Cloudflare Tunnel configuration, cache rules
- Registrar domain data, account plan and usage metadata

Agent Lee fetches this data on demand when your question requires it.

### What Agent Lee cannot access

- Payment methods, billing history, or invoice details
- Account passwords, login credentials, or API tokens
- Raw log data or Logpush datasets
- Data from other Cloudflare accounts

### Conversation storage

Conversations are stored per user using [Durable Objects](https://developers.cloudflare.com/durable-objects/). Conversation data is retained for one year in accordance with Cloudflare's data retention policy, measured from the last time you sent a message, so an actively used conversation is not purged while you are still working in it.

Agent Lee can list, search, and summarize conversations you have had with it. It cannot read another user's conversations.

### Data usage

Agent Lee does not currently use your conversations, prompts, or account data to train AI models, nor do we share your data with other Cloudflare customers. Should these practices change in the future, we will provide advance notice to keep you informed. For Cloudflare's authoritative data handling commitments, refer to the [Cloudflare Privacy Policy ↗︎](https://www.cloudflare.com/privacypolicy/).

---

## Limitations

Agent Lee cannot:

- Deploy applications on your behalf or run code for you (it can generate small starter projects and [export the source](https://developers.cloudflare.com/agent-lee/take-home-code/) for you to clone)
- Replace [Cloudflare Support ↗︎](https://support.cloudflare.com) for account recovery or outages (it can prepare a support case for you, but only if your account is eligible and you confirm it)
- Access payment methods, billing history, or API tokens
- Operate across multiple accounts: sessions are scoped to your authenticated account
- Query raw log data or Logpush datasets
- Execute write operations without your explicit approval

Agent Lee is entirely optional. If you do not open the Ask AI panel, none of your data is sent to or processed by it.

---

## Built on Cloudflare

Agent Lee is built on Cloudflare's own developer platform using the same primitives available to any Cloudflare developer.

| Component | Role |
| --- | --- |
| [Agents SDK](https://developers.cloudflare.com/agents/) | Agent lifecycle, state management, and scheduling |
| [Durable Objects](https://developers.cloudflare.com/durable-objects/) | Per-user conversation storage and write approval gate |
| [Workers AI](https://developers.cloudflare.com/workers-ai/) | LLM inference |
| [AI Gateway](https://developers.cloudflare.com/ai-gateway/) | Model request routing, logging, and analytics |
| [Cloudflare MCP server](https://developers.cloudflare.com/agents/model-context-protocol/cloudflare/servers-for-cloudflare/) | Tool definitions for Cloudflare API operations |

---

## Related resources

- [Export generated code](https://developers.cloudflare.com/agent-lee/take-home-code/)
- [Manage access and permissions](https://developers.cloudflare.com/agent-lee/manage-access/)
- [Agents SDK](https://developers.cloudflare.com/agents/)
- [Human in the Loop](https://developers.cloudflare.com/agents/concepts/agentic-patterns/human-in-the-loop/)
- [Workers AI](https://developers.cloudflare.com/workers-ai/)
- [Blog post: Introducing Agent Lee ↗︎](https://blog.cloudflare.com/introducing-agent-lee)

Was this helpful?

YesNo

## On this page

[![](https://developers.cloudflare.com/_astro/logo.te5VL_aD.svg)Docs](https://developers.cloudflare.com/)

```json
{"@context":"https://schema.org","@type":"WebPage","@id":"https://developers.cloudflare.com/agent-lee/#page","headline":"Agent Lee","description":"Ask questions, run diagnostics, and take actions across your Cloudflare account using an AI-powered dashboard assistant.","url":"https://developers.cloudflare.com/agent-lee/","inLanguage":"en","image":"https://developers.cloudflare.com/agent-lee/og.png?v=e0b0bf7f4daf92bd","dateModified":"2026-10-27","publisher":{"@type":"Organization","name":"Cloudflare","description":"One platform for your apps, agents, and workforce. Build, secure, and scale without managing infrastructure","url":"https://www.cloudflare.com/","sameAs":["https://github.com/cloudflare","https://www.linkedin.com/company/cloudflare","https://x.com/cloudflare"],"logo":{"@type":"ImageObject","url":"https://developers.cloudflare.com/logo.svg"},"address":{"@type":"PostalAddress","streetAddress":"101 Townsend St","addressLocality":"San Francisco","addressRegion":"CA","postalCode":"94107","addressCountry":"US"},"contactPoint":[{"@type":"ContactPoint","contactType":"Customer Support","url":"https://support.cloudflare.com/","availableLanguage":["English"]},{"@type":"ContactPoint","contactType":"Sales","url":"https://www.cloudflare.com/contact/","availableLanguage":["English"]}]},"isPartOf":{"@type":"WebSite","@id":"https://developers.cloudflare.com/#website","name":"Cloudflare Docs","url":"https://developers.cloudflare.com/"},"keywords":["AI"]}
```

---

---
description: Take the source code Agent Lee generates with you by exporting it to a temporary, Git-cloneable repository.
title: Export generated code
image: https://developers.cloudflare.com/agent-lee/take-home-code/og.png?v=dffe0d316c08cc67
---

[Skip to content](#main-content)

> Documentation Index  
> Fetch the complete documentation index at: https://developers.cloudflare.com/agent-lee/llms.txt  
> Use this file to discover all available pages before exploring further.

# Export generated code

Last updated Sep 24, 2026|Copy as Markdown| [View as Markdown](https://developers.cloudflare.com/agent-lee/take-home-code/index.md)| [Agent setup](https://developers.cloudflare.com/agent-setup/)

Take the source code Agent Lee generates with you by exporting it to a temporary, Git-cloneable repository.

Beta

Code export is part of the Agent Lee beta. Behaviors and limits described here may change.

When Agent Lee generates a small project for you — for example, a starter static site or a Worker — you can export the source so you can keep working on it locally. Agent Lee packages the generated files into a temporary repository and gives you a one-time command to clone it to your machine.

This is a **take-home** flow: the repository is short-lived and lives in Cloudflare-managed storage, not in your account. It is meant for getting generated code onto your own machine, after which you push it to a Git host of your choice. You do not need to connect a GitHub or GitLab account.

## How it works

- **Temporary repository.** When you export, Agent Lee writes the generated files to a repository that expires about 36 hours after it is created. Once it expires, the export card disables the copy button and the code can no longer be cloned.
- **On-demand clone command.** Agent Lee does not put a clone command or credential in the chat transcript. Instead, the export card shows a **Copy clone command** button that fetches a fresh command when you select it. The command embeds a read credential that is valid for about one hour.
- **Export card.** The card shows the project name, the list of exported files, and a countdown to expiry so you know how long you have to clone.

## Export and clone your code

1. Ask Agent Lee to build something that produces code, then ask it to export the code. For example: "Export this project so I can clone it."
2. In the export card that appears, review the file list and the expiry countdown.
3. Select **Copy clone command**. Agent Lee fetches a fresh command and copies it to your clipboard.
4. Paste the command into your terminal and run it. What you copied is already a complete `git clone` invocation, so do not add anything to it. It has the following shape, where the credential is embedded in the remote URL and the final argument is the local directory to create:

   ```sh
   git clone https://<credential>@<host>/<repository>.git <project-name>
   ```

5. Change into the new directory, point the repository at your own Git host, and push it there to keep it:

   ```sh
   cd <project-name>
   git remote set-url origin https://your-git-host.example/you/your-repo.git
   git push -u origin main
   ```

## Security and privacy

- **No credential in chat.** The clone command and its read credential are delivered only when you select **Copy clone command** — never in the message text, conversation history, or model context. Agent Lee will not type the clone command into the chat, so do not ask it to.
- **Short-lived access.** The read credential expires about an hour after it is issued. If the command stops working before the repository expires, return to the export card and copy a fresh one.
- **Nothing is written to your account.** The temporary repository lives in Cloudflare-managed storage. Agent Lee does not create repositories, tokens, or other resources in your Cloudflare account to perform an export.
- **Automatic cleanup.** The temporary repository is deleted automatically once it expires. Clone and push to your own host before then.

## Limitations

- Exported repositories are temporary and are not backed up. Once a repository expires, it cannot be recovered.
- The clone credential is read-only and single-purpose. You cannot push back to the temporary repository — push to your own Git host instead.
- Code export is intended for small, self-contained projects that Agent Lee generates during a conversation. A single export can include:
  - up to 50 files
  - up to 100 KB per file
  - up to 2 MB in total

  Agent Lee tells you if a project is too large to export. If that happens, ask it for a smaller subset of the project.

## Related resources

- [Agent Lee overview](https://developers.cloudflare.com/agent-lee/)
- [Workers](https://developers.cloudflare.com/workers/)

Was this helpful?

YesNo

## On this page

[![](https://developers.cloudflare.com/_astro/logo.te5VL_aD.svg)Docs](https://developers.cloudflare.com/)

```json
{"@context":"https://schema.org","@type":"TechArticle","@id":"https://developers.cloudflare.com/agent-lee/take-home-code/#page","headline":"Export generated code","description":"Take the source code Agent Lee generates with you by exporting it to a temporary, Git-cloneable repository.","url":"https://developers.cloudflare.com/agent-lee/take-home-code/","inLanguage":"en","image":"https://developers.cloudflare.com/agent-lee/take-home-code/og.png?v=dffe0d316c08cc67","dateModified":"2026-09-24","publisher":{"@type":"Organization","name":"Cloudflare","description":"One platform for your apps, agents, and workforce. Build, secure, and scale without managing infrastructure","url":"https://www.cloudflare.com/","sameAs":["https://github.com/cloudflare","https://www.linkedin.com/company/cloudflare","https://x.com/cloudflare"],"logo":{"@type":"ImageObject","url":"https://developers.cloudflare.com/logo.svg"},"address":{"@type":"PostalAddress","streetAddress":"101 Townsend St","addressLocality":"San Francisco","addressRegion":"CA","postalCode":"94107","addressCountry":"US"},"contactPoint":[{"@type":"ContactPoint","contactType":"Customer Support","url":"https://support.cloudflare.com/","availableLanguage":["English"]},{"@type":"ContactPoint","contactType":"Sales","url":"https://www.cloudflare.com/contact/","availableLanguage":["English"]}]},"isPartOf":{"@type":"WebSite","@id":"https://developers.cloudflare.com/#website","name":"Cloudflare Docs","url":"https://developers.cloudflare.com/"},"keywords":["AI"]}
```

---

---
description: Control whether Agent Lee appears in the dashboard, choose what it is allowed to read and change, and review the API tokens it holds.
title: Manage access and permissions
image: https://developers.cloudflare.com/agent-lee/manage-access/og.png?v=e24dac7519422db9
---

[Skip to content](#main-content)

> Documentation Index  
> Fetch the complete documentation index at: https://developers.cloudflare.com/agent-lee/llms.txt  
> Use this file to discover all available pages before exploring further.

# Manage access and permissions

Last updated Sep 24, 2026|Copy as Markdown| [View as Markdown](https://developers.cloudflare.com/agent-lee/manage-access/index.md)| [Agent setup](https://developers.cloudflare.com/agent-setup/)

Control whether Agent Lee appears in the dashboard, choose what it is allowed to read and change, and review the API tokens it holds.

Beta

Agent Lee is currently in beta. The controls described here may change, and not every control is available to every account yet.

Agent Lee acts on your account using an API token that it creates on your behalf, scoped to the permissions you grant. You decide whether the assistant appears at all, what it can read, and whether it can make changes.

## Open or hide Agent Lee

Select **Ask AI** in the upper-right corner of any dashboard page, or use a keyboard shortcut:

- `Cmd` + `/` on macOS, or `Ctrl` + `/` on Windows and Linux.
- Press `t` then `a` to toggle the sidebar.

### Turn Agent Lee off

If you do not want to use Agent Lee, you can hide it from the dashboard entirely.

1. In the Cloudflare dashboard, go to **Configurations** > **Preferences** for your account.
2. Find the **Cloudflare Agent** card and turn the setting off.

Note

The dashboard has not finished adopting the Agent Lee name. This preference is still labelled **Cloudflare Agent**.

Turning the setting off hides the **Ask AI** sidebar and disables the keyboard shortcuts, and the assistant loses its stored copy of your API token, so it can no longer reach your account. The dashboard also attempts to delete the underlying API token for you. To confirm the token is gone — or to remove it yourself — see [Review the tokens Agent Lee holds](#review-the-tokens-agent-lee-holds).

Turning the setting back on does not restore access automatically. You are asked to grant permissions again the next time you open the assistant.

Turning Agent Lee off does not delete your conversation history.

## Choose what Agent Lee can access

When you first grant access, you choose how much of your account the assistant can use. Depending on your account, you may see the following permission templates:

| Template | What it allows |
| --- | --- |
| **Full access** | Read your resources, and propose changes. Every write still requires your approval before it executes. |
| **Read only** | Read and inspect your resources. Agent Lee cannot change anything. |
| **Custom** | Choose individual permissions yourself. |

**Full access** does not mean unattended access. Agent Lee shows you exactly what it intends to do and waits for your confirmation before any change is made.

### Custom permissions

**Custom** opens a curated list of permissions grouped into categories such as Developer Platform, DNS and Zones, App Security, AI, Cloudflare One, Analytics and Logs, and Account. Each entry has independent read and write toggles, and you choose which accounts the grant applies to.

This list is a subset of everything a Cloudflare API token can express — it covers the products Agent Lee knows how to work with, not the entire API surface.

### What Agent Lee can never change

Some permissions are withheld no matter which template you pick or what you select under **Custom**. Agent Lee cannot write to:

- Account settings
- Account membership
- Billing
- API tokens

## When permission changes take effect

Changing permissions issues a new API token with the updated scope and replaces the one the assistant was using. The previous token is then deleted. Because the new token is created before the old one is removed, both may exist briefly.

Permission changes apply to your next message. Actions the assistant has already completed are not affected, and you do not need to start a new conversation for a change to take effect.

## Write access disabled by an administrator

An account administrator can prevent Agent Lee from making changes on your behalf. When this applies to you, the assistant shows a **Write off** indicator with a lock icon near the message box, and the tooltip reads:

> Write access has been disabled for your account by an administrator. You can still read and inspect resources.

In this state Agent Lee can still answer questions, run diagnostics, and inspect your configuration, but it cannot create, update, or delete anything. You cannot lift the restriction yourself — contact your account administrator.

The restriction applies only to the account where it was set. Your permissions on other accounts are unchanged.

## Review the tokens Agent Lee holds

Agent Lee's tokens appear alongside your own. To audit or remove them:

1. Go to **My Profile** > **API Tokens** in the Cloudflare dashboard.
2. Look for tokens named `Cloudflare Agent Token -` followed by a date.
3. Delete any token you no longer want. Deleting the token the assistant is currently using revokes its access immediately; you are asked to grant permissions again the next time you open it.

Reviewing this list is the reliable way to confirm that access has been removed after you turn Agent Lee off or narrow its permissions.

## Availability

Agent Lee is not available in the Cloudflare FedRAMP environment.

Availability is still rolling out, so the assistant and the controls on this page may not appear on every account yet.

## Related resources

- [Agent Lee overview](https://developers.cloudflare.com/agent-lee/)
- [Cloudflare API tokens](https://developers.cloudflare.com/fundamentals/api/get-started/create-token/)

Was this helpful?

YesNo

## On this page

[![](https://developers.cloudflare.com/_astro/logo.te5VL_aD.svg)Docs](https://developers.cloudflare.com/)

```json
{"@context":"https://schema.org","@type":"TechArticle","@id":"https://developers.cloudflare.com/agent-lee/manage-access/#page","headline":"Manage access and permissions","description":"Control whether Agent Lee appears in the dashboard, choose what it is allowed to read and change, and review the API tokens it holds.","url":"https://developers.cloudflare.com/agent-lee/manage-access/","inLanguage":"en","image":"https://developers.cloudflare.com/agent-lee/manage-access/og.png?v=e24dac7519422db9","dateModified":"2026-09-24","publisher":{"@type":"Organization","name":"Cloudflare","description":"One platform for your apps, agents, and workforce. Build, secure, and scale without managing infrastructure","url":"https://www.cloudflare.com/","sameAs":["https://github.com/cloudflare","https://www.linkedin.com/company/cloudflare","https://x.com/cloudflare"],"logo":{"@type":"ImageObject","url":"https://developers.cloudflare.com/logo.svg"},"address":{"@type":"PostalAddress","streetAddress":"101 Townsend St","addressLocality":"San Francisco","addressRegion":"CA","postalCode":"94107","addressCountry":"US"},"contactPoint":[{"@type":"ContactPoint","contactType":"Customer Support","url":"https://support.cloudflare.com/","availableLanguage":["English"]},{"@type":"ContactPoint","contactType":"Sales","url":"https://www.cloudflare.com/contact/","availableLanguage":["English"]}]},"isPartOf":{"@type":"WebSite","@id":"https://developers.cloudflare.com/#website","name":"Cloudflare Docs","url":"https://developers.cloudflare.com/"},"keywords":["AI"]}
```
