Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions TOC-tidb-cloud-filesystem.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,32 +6,36 @@
## GET STARTED

- [Introduction](/tidb-cloud-filesystem/filesystem-intro.md)
- [Quick Start](/tidb-cloud-filesystem/filesystem-quick-start.md)
- [Quick Start via Console](/tidb-cloud-filesystem/filesystem-quick-start-console.md)
- [Quick Start via CLI](/tidb-cloud-filesystem/filesystem-quick-start.md)
- Key Concepts
- [Authorization](/tidb-cloud-filesystem/filesystem-authorization.md)
- [Layers and Checkpoints](/tidb-cloud-filesystem/filesystem-layers-checkpoints.md)

## GUIDES

- [Manage File Systems](/tidb-cloud-filesystem/manage-filesystem-resources.md)
- [Access an Existing File System](/tidb-cloud-filesystem/access-filesystem.md)
- [Work with Files and Directories](/tidb-cloud-filesystem/work-with-filesystem-data.md)
- [Manage File System Tokens](/tidb-cloud-filesystem/manage-filesystem-tokens.md)
- [Share a File System](/tidb-cloud-filesystem/filesystem-sharing.md)
- [Access an Existing File System](/tidb-cloud-filesystem/access-filesystem.md)
- Mount a File System
- [Overview](/tidb-cloud-filesystem/filesystem-mount.md)
- [Linux](/tidb-cloud-filesystem/filesystem-mount-linux.md)
- [macOS](/tidb-cloud-filesystem/filesystem-mount-macos.md)
- [Docker and Docker Compose](/tidb-cloud-filesystem/filesystem-mount-docker.md)
- [Work with Files and Directories](/tidb-cloud-filesystem/work-with-filesystem-data.md)
- [Share a File System](/tidb-cloud-filesystem/filesystem-sharing.md)
- [Manage Usage Limit](/tidb-cloud-filesystem/manage-filesystem-limits.md)
- [Manage File System Layers and Checkpoints](/tidb-cloud-filesystem/manage-filesystem-layers.md)
- [Manage Git Workspaces](/tidb-cloud-filesystem/manage-git-workspaces.md)
- [Use Journals in a File System](/tidb-cloud-filesystem/use-filesystem-journals.md)
- [Manage Vault Secrets for a File System](/tidb-cloud-filesystem/manage-filesystem-vault-secrets.md)
- [Configure AI Providers for a File System](/tidb-cloud-filesystem/configure-filesystem-ai-providers.md)
- [Automation and AI Agent Workflows](/tidb-cloud-filesystem/use-filesystem-for-automation-and-ai-agents.md)
- [Pricing & Billing](https://www.pingcap.com/tidb-cloud-filesystem-pricing-details/)

## REFERENCES

- [Command Reference](/tidb-cloud-filesystem/filesystem-command-reference.md)
- [SDKs](/tidb-cloud-filesystem/filesystem-sdks.md)
- [Regions and Limitations](/tidb-cloud-filesystem/filesystem-regions-and-limitations.md)
- [Troubleshooting](/tidb-cloud-filesystem/filesystem-troubleshooting.md)
4 changes: 3 additions & 1 deletion tidb-cloud-filesystem/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ summary: TiDB Cloud Filesystem provides persistent, shared file storage for appl

<LearningPath label="Try" icon="cloud5">

[Quick Start](/tidb-cloud-filesystem/filesystem-quick-start.md)
[Quick Start via Console](/tidb-cloud-filesystem/filesystem-quick-start-console.md)

[Quick Start via CLI](/tidb-cloud-filesystem/filesystem-quick-start.md)

</LearningPath>

Expand Down
1 change: 1 addition & 0 deletions tidb-cloud-filesystem/filesystem-intro.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,3 +62,4 @@ Choose the path that matches what you want to do:
- **Create a new file system:** follow [Get Started with TiDB Cloud Filesystem](/tidb-cloud-filesystem/filesystem-quick-start.md).
- **Use a file system that someone else has shared with you:** see [Access an Existing File System](/tidb-cloud-filesystem/access-filesystem.md).
- **Check supported regions, platforms, and current limitations:** see [Regions and Limitations](/tidb-cloud-filesystem/filesystem-regions-and-limitations.md).
- **Integrate a client SDK into your application:** see [SDKs](/tidb-cloud-filesystem/filesystem-sdks.md).
77 changes: 77 additions & 0 deletions tidb-cloud-filesystem/filesystem-quick-start-console.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
---
title: Get Started with TiDB Cloud Filesystem via Console
summary: Create a file system in the TiDB Cloud console, connect to it from your computer, write a test file, and view the file in the console.
---

# Get Started with TiDB Cloud Filesystem via Console

Create a file system in the [TiDB Cloud console](https://tidbcloud.com/), mount it on a macOS or Linux computer, write a test file, and view its metadata in the console.

> **Note:**
>
> TiDB Cloud Filesystem is currently in public preview. Its features and interfaces are subject to change without notice.

## Step 1. Create a file system

1. If you do not have a TiDB Cloud account, [sign up for one](https://tidbcloud.com/free-trial).
2. Log in to the [TiDB Cloud console](https://tidbcloud.com/) with your TiDB Cloud account.
3. In the left navigation pane, select your organization and click **File Systems**.
4. In the upper-right corner, click **Create File System**.
5. On the **Create File System** page, enter a file system name, and select a cloud provider and region. Review the usage limits in the summary.

> **Tip:**
>
> For organizations without a credit card, the file system limits are fixed. To edit the usage limit, add a credit card to your organization. For more information, see [Manage TiDB Cloud Filesystem Usage Limit](/tidb-cloud-filesystem/manage-filesystem-limits.md).

6. Click **Create**. When the **Your File System is Ready!** dialog appears, keep the dialog open for the next step.

## Step 2. Mount the file system

On macOS or Linux, follow the steps in the **Your File System is Ready!** dialog to install TiDB Cloud CLI and mount the file system. On Windows, follow [Quick Start via CLI](/tidb-cloud-filesystem/filesystem-quick-start.md) to work with files without a mount.

1. Install the TiDB Cloud CLI `ti`.

```bash
curl -fsSL https://github.com/tidbcloud/ti-cli/releases/latest/download/install.sh | sh
```

2. Copy and run the command under **Mount Your File System** in the same shell. The command adds `ti` to `PATH`, sets `TI_FS_TOKEN`, creates `~/tidbcloudfs`, and mounts the file system there.

> **Note:**
>
> - The mount command includes the [default owner token](/tidb-cloud-filesystem/filesystem-authorization.md#owner-tokens) in `TI_FS_TOKEN`. This token grants full access to the file system and is displayed only once. Save it securely. Do not put the command or token in logs, issues, chat messages, or source control.
> - On Linux, mounting requires `fuse3` and access to `/dev/fuse`. If needed, follow [Install FUSE userspace tools](/tidb-cloud-filesystem/filesystem-mount-linux.md#install-fuse-userspace-tools) before running the mount command.

3. Copy and run the command under **Start Using It** to list the mounted directory.
4. Click **Done** to open the file system overview.

You can click **Connect** on the overview page to reopen the connection guidance, but you cannot retrieve the default owner token later.

## Step 3. Write and view a file

After mounting the file system, use the mounted directory to write and read a test file.

Write a file in the mounted directory:

```bash
echo 'Hello from TiDB Cloud Filesystem' > ~/tidbcloudfs/hello.txt
cat ~/tidbcloudfs/hello.txt
```

In the left navigation pane of the file system, click **Files**. The root directory lists `hello.txt`. You can search for the file or click its name to view its metadata. The console displays file information, but reading file contents and changing files require the TiDB Cloud CLI `ti` or a mount.

## (Optional) Step 4. Unmount the file system

If you do not need to access the file system from the mounted directory, you can unmount it:

```bash
ti fs unmount-file-system --mount-path ~/tidbcloudfs
```

On Linux, FUSE can buffer writes locally until a successful unmount. If unmounting fails, follow [Finish safely](/tidb-cloud-filesystem/filesystem-mount.md#finish-safely) before leaving the machine or removing its local cache.

## What's next

- [Manage File Systems](/tidb-cloud-filesystem/manage-filesystem-resources.md) to inspect, rename, or delete a file system.
- [Manage File System Tokens](/tidb-cloud-filesystem/manage-filesystem-tokens.md) to create tokens with limited access.
- [Quick Start via CLI](/tidb-cloud-filesystem/filesystem-quick-start.md) for a CLI-only creation workflow.
4 changes: 2 additions & 2 deletions tidb-cloud-filesystem/filesystem-quick-start.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
---
title: Get Started with TiDB Cloud Filesystem
title: Get Started with TiDB Cloud Filesystem via CLI
summary: Learn how to create a persistent TiDB Cloud file system, read and write files, and optionally access them through a local mount.
---

# Get Started with TiDB Cloud Filesystem
# Get Started with TiDB Cloud Filesystem via CLI

[TiDB Cloud Filesystem](/tidb-cloud-filesystem/filesystem-intro.md) is a persistent, shared cloud file system for applications, automation, and AI agents. Files remain available independently of the machine or process that creates them, so you can reuse a workspace across sessions and environments.

Expand Down
49 changes: 49 additions & 0 deletions tidb-cloud-filesystem/filesystem-sdks.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
---
title: SDKs
summary: Learn how TiDB Cloud Filesystem relates to the Drive9 workspace engine and find client SDK documentation for six programming languages.
---

# SDKs

TiDB Cloud Filesystem uses the Drive9 workspace engine to run file system operations. TiDB Cloud Filesystem is PingCAP's official hosted Drive9 service on TiDB Cloud. Drive9 is an open-source, community-based project owned by PingCAP, and TiDB Cloud Filesystem is its managed cloud service. At the API and SDK layers, you directly invoke the drive9 endpoints exposed by TiDB Cloud Filesystem service.

Drive9 is an open-source project (Apache 2.0) maintained in the [mem9-ai/drive9 repository](https://github.com/mem9-ai/drive9). Besides the workspace engine, that repository publishes client SDKs for several programming languages. The SDKs and their documentation are maintained there, so the guides listed on this page are the source of truth for SDK installation, configuration, and API details.

The SDK guides describe how a client connects to a Drive9 server, including how to provide the server URL and an API key.

The API Keys mentioned in Drive9 SDK/API documentations.

|TiDB Cloud Filesystem Object|Drive9 SDK/API Usage|
|:--|:--|
|TiDB Cloud API Key|File system control plane actions|
|File System Token|File system data plane actions|

Available server URL for Drive9 SDK/API server URL to TiDB Cloud Filesystem regions.

| TiDB Cloud Filesystem Region| Server URL for Drive9 SDK/API | API Key|
|:--|:--|:--|
|`aws-us-east-1`|`https://aws-us-east-1.drive9.ai`| FS token|
|`aws-us-west-2`|`https://aws-us-west-2.drive9.ai`| FS token|
|`aws-ap-southeast-1`|`https://aws-ap-southeast-1.drive9.ai`| FS token|
|`gcp-us-east1`|`https://gcp-us-east-1.drive9.ai`| FS token|
|`azure-centralus`|`https://azure-centralus.drive9.ai`|FS token|
Comment on lines +28 to +29

@coderabbitai coderabbitai Bot Sep 27, 2026 •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

Remove the unsupported region entries.

Line 28 and Line 29 list gcp-us-east1 and azure-centralus as TiDB Cloud Filesystem regions. The current Filesystem regions guide lists only AWS us-east-1, AWS us-west-2, AWS ap-southeast-1, and Alibaba Cloud Singapore. It does not list GCP or Azure. (docs.pingcap.com)

Remove the unsupported region entries
-|`gcp-us-east1`|`https://gcp-us-east-1.drive9.ai`| FS token|
-|`azure-centralus`|`https://azure-centralus.drive9.ai`|FS token|
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
|`gcp-us-east1`|`https://gcp-us-east-1.drive9.ai`| FS token|
|`azure-centralus`|`https://azure-centralus.drive9.ai`|FS token|

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The GPC line should be

|gcp-us-east1|https://gcp-us-east1.drive9.ai| FS token|

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@guangleibao, thanks for clarifying. My request to remove the GCP row was incorrect. Keep the row with this endpoint:

|`gcp-us-east1`|`https://gcp-us-east1.drive9.ai`| FS token|

Does TiDB Cloud Filesystem also support azure-centralus? That part of the finding remains open.


✏️ Learnings added
Learnt from: guangleibao
Repo: pingcap/docs PR: 23957
File: tidb-cloud-filesystem/filesystem-sdks.md:28-29
Timestamp: 2026-10-02T02:44:27.389Z
Learning: In `tidb-cloud-filesystem/filesystem-sdks.md`, TiDB Cloud Filesystem supports the `gcp-us-east1` region. Its Drive9 SDK/API server URL is `https://gcp-us-east1.drive9.ai`, authenticated with a filesystem token. Do not recommend removing this region merely because the published regions guide does not list it.

Note: Learnings are effective only in the context of similar code segments. To apply general coding guidelines, please configure review instructions. You can manage existing learnings in the app.

You are interacting with an AI system.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The GPC line should be

|gcp-us-east1|https://gcp-us-east1.drive9.ai| FS token|

@qiancai FYI

|`alicloud-ap-southeast-1`|`https://alicloud-ap-southeast-1.drive9.ai`|FS token|

## Available SDKs

| Language | Repository location | Documentation |
| --- | --- | --- |
| TypeScript | `clients/drive9-js` | [TypeScript SDK integration guide](https://github.com/mem9-ai/drive9/blob/main/docs/guides/typescript-sdk-integration.md) |
| Go | `pkg/client` | [Go SDK integration guide](https://github.com/mem9-ai/drive9/blob/main/docs/guides/go-sdk-integration.md) |
| Python | `clients/drive9-py` | [drive9-py README](https://github.com/mem9-ai/drive9/blob/main/clients/drive9-py/README.md) |
| Rust | `clients/drive9-rs` | [drive9-rs README](https://github.com/mem9-ai/drive9/blob/main/clients/drive9-rs/README.md) |
| Kotlin | `clients/drive9-kotlin` | [drive9-kotlin README](https://github.com/mem9-ai/drive9/blob/main/clients/drive9-kotlin/README.md) |
| Swift | `clients/drive9-swift` | [drive9-swift README](https://github.com/mem9-ai/drive9/blob/main/clients/drive9-swift/README.md) |

The SDKs are developed and released with the Drive9 project, so they can move ahead of the TiDB Cloud Filesystem service. Before you adopt an SDK for a TiDB Cloud Filesystem workload, check its documentation for the current server endpoint, credentials, and supported operations.

## What's next

- [TiDB Cloud CLI (`ti`)](/ai/ti/ti-quick-start.md) to install, configure, and update the CLI.
- [Work with Files and Directories](/tidb-cloud-filesystem/work-with-filesystem-data.md) to manage file system data from the command line.
- [Automation and AI Agent Workflows](/tidb-cloud-filesystem/use-filesystem-for-automation-and-ai-agents.md) to use a file system in automated workflows.
39 changes: 39 additions & 0 deletions tidb-cloud-filesystem/manage-filesystem-limits.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
---
title: Manage TiDB Cloud Filesystem Usage Limit
summary: Learn how to view file system usage and free limits in the TiDB Cloud console, and edit usage limits after adding a credit card.
---

# Manage TiDB Cloud Filesystem Usage Limit

> **Note:**
>
> The limits in [Limits without a credit card on the organization](#limits-without-a-credit-card-on-the-organization) apply only when your TiDB Cloud organization has no credit card.

You can create and use file systems in the TiDB Cloud Filesystem service without a credit card, but each free file system has tighter capacity limits. You can raise these limits after adding a credit card to your organization.

## Limits without a credit card on the organization

When your organization has **no credit card registered**, the following limits apply to each free file system:

- One file system per region
- 2,000 files per file system
- 2 GB of storage per file system
- 500 MB maximum size for a single file

With a credit card, you can set higher limits and continue with pay-as-you-go usage. See [TiDB Cloud Filesystem pricing](https://www.pingcap.com/tidb-cloud-filesystem-pricing-details/) for billing details.

## View file system usage

To view the current usage of a file system, go to its overview page in the [TiDB Cloud console](https://tidbcloud.com/) and check the **Usage** area. For usage details, click **Usage** in the left navigation pane.

## When a file system reaches a limit

When a file system reaches a limit, existing files remain readable, but the file system stops accepting new writes. The TiDB Cloud console shows a warning.

## Update the usage limit

1. In the TiDB Cloud console, navigate to the [**File Systems**](https://tidbcloud.com/filesystems) page, select the **Cloud Provider** and **Region** for the file system, and click the name of your target file system.
2. On the overview page of the file system, click **Edit Usage Limit** in the **Usage** area.
3. Set maximum storage, file count, and file size as needed, then click **Save**.

If your organization has no credit card, these fields are disabled. Add a credit card to edit them and enable pay-as-you-go usage.
65 changes: 62 additions & 3 deletions tidb-cloud-filesystem/manage-filesystem-resources.md
Original file line number Diff line number Diff line change
@@ -1,21 +1,39 @@
---
title: Manage File Systems in TiDB Cloud Filesystem
summary: Learn how to create, inspect, check, select, and delete file systems in TiDB Cloud Filesystem by using TiDB Cloud CLI.
summary: Learn how to create, inspect, and delete file systems by using the TiDB Cloud console or CLI, rename them in the console, and check access with CLI.
aliases: ['/ai/manage-filesystem-resources']
---

# Manage File Systems in TiDB Cloud Filesystem

You can use [TiDB Cloud CLI (`ti`)](/ai/ti/ti-overview.md) to create, inspect, check, select, and delete file systems in TiDB Cloud Filesystem.
You can use the [TiDB Cloud console](https://tidbcloud.com/) or [TiDB Cloud CLI (`ti`)](/ai/ti/ti-overview.md) to create, inspect, and delete file systems in TiDB Cloud Filesystem. The console also lets you rename a file system; the CLI provides access diagnostics.

For command syntax, flags, and output fields, see the [`ti fs` command reference](/ai/ti/reference/ti-filesystem.md).

## Prerequisites

Before you begin, follow [Get Started with TiDB Cloud Filesystem](/tidb-cloud-filesystem/filesystem-quick-start.md) to install TiDB Cloud CLI (`ti`) and configure the access.
- To use the [TiDB Cloud console](https://tidbcloud.com/) to manage file systems, log in to the console and select your organization.
- To use the TiDB Cloud CLI (`ti`) to manage file systems, follow [Quick Start via CLI](/tidb-cloud-filesystem/filesystem-quick-start.md) to install `ti` and configure access.

## Create a file system

<SimpleTab>

<div label="Console">

1. In the left navigation pane of the [TiDB Cloud console](https://tidbcloud.com), select your organization and click **File Systems**.
2. In the upper-right corner, click **Create File System**.
3. On the **Create File System** page, enter a file system name, and select a **Cloud Provider** and **Region**.
4. (Optional) Review and edit the usage limits in the summary.

To edit the usage limits, add a credit card to your organization. Without a credit card, the free limits cannot be edited during creation. For more information, see [Manage Usage Limit](/tidb-cloud-filesystem/manage-filesystem-limits.md).

5. Click **Create**. The **Your File System is Ready!** dialog offers optional steps to install TiDB Cloud CLI and mount the file system on macOS or Linux. The default owner token in the mount command is shown only once; save it securely before closing the dialog.

</div>

<div label="CLI">

Create a file system and wait until it is ready:

```shell
Expand Down Expand Up @@ -43,8 +61,27 @@ Setting `TI_FS_FILE_SYSTEM_ID` lets subsequent commands identify the target file
>
> Do not put credentials, connection strings, private paths, or personal data in file system labels.

</div>

</SimpleTab>

## List and inspect file systems

<SimpleTab>

<div label="Console">

1. In the left navigation pane of the [TiDB Cloud console](https://tidbcloud.com), select your organization and click **File Systems**.
2. On the [**File Systems**](https://tidbcloud.com/filesystems) page, select a cloud provider and region to list file systems in that location. Use **Search Name** or **Status** to narrow the list.

To view details of a file system, click the file system's name to go to its overview page.

To change its display name, click **...** in the upper-right corner of the overview page and select **Rename**.

</div>

<div label="CLI">

List the file systems available in the current region:

```shell
Expand All @@ -66,6 +103,10 @@ The CLI does not automatically select a file system based on the number of file

The current CLI does not provide a command to change a file system's display name or labels after creation. Choose these values when you create the file system.

</div>

</SimpleTab>

## Check access

Check whether the CLI can access a file system:
Expand All @@ -87,6 +128,20 @@ For common access and connectivity issues, see [Troubleshoot TiDB Cloud Filesyst
>
> Deleting a file system permanently removes its remote data. Before deletion, stop applications that are using the file system and successfully unmount any active local mounts. For information about finishing pending writes safely, see [Finish safely](/tidb-cloud-filesystem/filesystem-mount.md#finish-safely).

<SimpleTab>

<div label="Console">

1. In the TiDB Cloud console, open your organization's [**File Systems**](https://tidbcloud.com/filesystems) page, then select the **Cloud Provider** and **Region** for the target file system.
2. In the row of the target file system, click **...**, and then select **Delete**.
3. In the confirmation dialog, enter the requested region and file system name in the form `region/name`, then click **I understand, delete it.**

Deletion is asynchronous. After the request is submitted, the file system might remain visible with the status `deleting` until deletion finishes.

</div>

<div label="CLI">

Delete a file system by its ID:

```shell
Expand All @@ -95,6 +150,10 @@ ti fs delete-file-system --file-system-id "<file-system-id>"

File system deletion is asynchronous. After the service accepts the request, the CLI reports the file system status as `deleting` and removes the matching locally stored credential. This status means that deletion has started, not that the remote file system and its data have already been removed.

</div>

</SimpleTab>

## What's next

- [Manage File System Tokens](/tidb-cloud-filesystem/manage-filesystem-tokens.md) to generate, delegate, rotate, or revoke file system access.
Expand Down
Loading
Loading