Cloudflare R2 AI Employee

Leina connects to Cloudflare R2 to help you organize stored files, retrieve objects, and review bucket settings. Ask in your team chat. Leina does the work and brings back the result.

Connect Cloudflare R2, choose what to share, and hand off your first task.

Leina + Cloudflare R2 Example Result

You

Inventory files under releases/autumn/ in my assets bucket. Group artwork and documents, and keep their full storage names.

Leina

I organized the release files into artwork and documents.

R2 · File inventory

Autumn release assets

Files grouped within the requested release folder.

Artwork
releases/autumn/banner.png · releases/autumn/logo.svg
Documents
releases/autumn/press-kit.pdf
Keep a Release’s Files Easy to Find

What Is a Cloudflare R2 AI Agent?

A Cloudflare R2 AI agent inventories files, retrieves selected objects, and uploads supplied content to the bucket and destination you choose.

You specify the source and the destination. Leina uses the content available to your connection and returns the result for you to review.

Cloudflare R2

Cloudflare R2 stores files and other objects in cloud storage buckets.

  1. Choose the location

    Provide the bucket and folder prefix.

  2. Collect the file list

    Read the files within the selected scope.

  3. Group the inventory

    Keep complete object names for retrieval.

What to Ask Leina to Do with Cloudflare R2

Copy a prompt, add your details, and send it to Leina in your connected team chat.

Prepare a bucket object inventory

List all files under [folder prefix] in R2 bucket [bucket]. Group them by folder and keep full file names and available sizes.

cloudflare_r2

Retrieve a Stored File

Download [file name] from R2 bucket [bucket] and give me a download link.

cloudflare_r2

Your next Cloudflare R2 task can start with a message.

Connect. Ask. Get the Result.

Tell Leina what you need in your team chat. Include the source, destination, and expected result.

  1. Connect Your Account

    Connect the tools involved and give Leina access to the content it needs.

  2. Try a Task

    Share the source material, say where the result belongs, and describe what you need.

  3. Check the Result

    Review the result and any changes in the connected app.

Put Leina to Work in Cloudflare R2

Hand off these everyday tasks to your AI employee.

List Accounts

List Cloudflare accounts visible to the current credential.

List Buckets

List the R2 buckets in a Cloudflare account.

Get Bucket

Get one R2 bucket by name.

Download Object

Download one R2 object and upload it to connector transit storage.

Create Bucket

Create an R2 bucket in a Cloudflare account.

Update Bucket

Update mutable R2 bucket properties such as default storage class or jurisdiction.

Delete Bucket

Delete an R2 bucket by name.

Get Bucket Cors Policy

Fetch the bucket-level CORS policy for an R2 bucket.

Update Bucket Cors Policy

Replace the bucket-level CORS policy for an R2 bucket.

Delete Bucket Cors Policy

Delete the bucket-level CORS policy for an R2 bucket.

Put Object

Upload one R2 object from a public URL, plain text, or base64-encoded content.

Generate Presigned Url

Generate a pre-signed R2 URL for one GET, PUT, or HEAD request using a custom API token credential.

List Objects

List objects in an R2 bucket with optional prefix, delimiter grouping, and cursor pagination.

Delete Object

Delete one R2 object by key.

Delete Objects

Delete a list of R2 objects by key in one request.

Delete Objects By Prefix

Start a background job that deletes every object under a key prefix, or empties the whole bucket.

List Bucket Jobs

List background jobs for an R2 bucket, such as prefix delete jobs.

Get Bucket Job

Get the current status of one R2 bucket background job.

List Custom Domains

List the custom domains attached to an R2 bucket.

Get Custom Domain

Get the settings of one custom domain attached to an R2 bucket.

Add Custom Domain

Attach a custom domain from a Cloudflare zone to an R2 bucket.

Update Custom Domain

Update the public access, TLS version, or cipher settings of a custom domain.

Delete Custom Domain

Detach a custom domain from an R2 bucket.

Get Managed Domain

Get the r2.dev managed domain and its public access state for an R2 bucket.

Update Managed Domain

Enable or disable public access to an R2 bucket through its r2.dev domain.

Get Bucket Lifecycle

Get the object lifecycle rules of an R2 bucket.

Update Bucket Lifecycle

Replace the object lifecycle rules of an R2 bucket with the given rule set.

Get Bucket Lock

Get the object lock rules of an R2 bucket.

Update Bucket Lock

Replace the object lock rules of an R2 bucket with the given rule set.

Get Bucket Local Uploads

Get whether local uploads are enabled, which writes objects to the nearest region before replicating to the primary region.

Update Bucket Local Uploads

Enable or disable local uploads for an R2 bucket.

Get Sippy Config

Get the Sippy incremental migration configuration of an R2 bucket.

Enable Sippy

Enable Sippy so that objects missing from the R2 bucket are copied on demand from a source bucket on AWS S3, Google Cloud Storage, an S3-compatible service, or Azure Blob Storage.

Disable Sippy

Disable Sippy on an R2 bucket.

List Event Notification Rules

List every event notification rule of an R2 bucket grouped by target queue.

Get Event Notification Rules

Get the event notification rules that send R2 bucket events to one queue.

Create Event Notification Rules

Add event notification rules that send R2 bucket events to a Cloudflare Queue.

Delete Event Notification Rules

Delete event notification rules bound to one queue. Deletes every rule for the queue when ruleIds is omitted.

Get Account Metrics

Get object count and storage usage metrics across all R2 buckets in the account. Metrics may lag behind the latest data.

Create Temporary Access Credentials

Create short-lived S3-compatible credentials scoped to one R2 bucket and optionally to prefixes or objects.

More Tools for Your AI Employee

Connect the Apps your work depends on, and give Leina the context to carry the task forward.

Keep the Conversation Moving. Let Leina Pick Up the Work.

Hand off a task while your team is discussing it. Leina uses your connected tools and brings the result back to the conversation.

See How Leina Works in Slack
LeinaExample Result

I organized the release files into artwork and documents.

Autumn release assets

Cloudflare R2 + Leina: Your Questions, Answered

Can I limit an inventory to one folder?

Yes. Provide the bucket name and the beginning of the file names you want to include.

Are download links permanent?

No. Downloads use temporary links; save the file while the link is available.

Can I inspect retention settings?

Yes. Ask to review bucket lifecycle and lock rules before deciding whether to change them.

Make Leina Your Cloudflare R2 AI Employee

Start with one task you already need to do. Tell Leina what a finished result should look like.

Connect Cloudflare R2, choose what to share, and hand off your first task.