📣
TiDB Cloud Premium is now in public preview. Unlimited growth, instant elasticity, advanced security for enterprise workloads. Try it out →

TiDB Cloud Filesystem 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. 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 following table shows which TiDB Cloud Filesystem credential to use. When an SDK guide asks for an API key, use a file system token.

TiDB Cloud Filesystem ObjectDrive9 SDK/API Usage
TiDB Cloud API KeyFile system control plane actions
File System TokenFile system data plane actions

Use the following server URL for each TiDB Cloud Filesystem region.

TiDB Cloud Filesystem RegionServer URL for Drive9 SDK/APIAPI Key
aws-us-east-1https://aws-us-east-1.drive9.aiFS token
aws-us-west-2https://aws-us-west-2.drive9.aiFS token
aws-ap-southeast-1https://aws-ap-southeast-1.drive9.aiFS token
gcp-us-east1https://gcp-us-east1.drive9.aiFS token
azure-centralushttps://azure-centralus.drive9.aiFS token
alicloud-ap-southeast-1https://alicloud-ap-southeast-1.drive9.aiFS token

Always set the SDK server URL to the endpoint of the region where your file system is located. If you do not set a server URL, most SDKs fall back to https://api.drive9.ai, which is not a TiDB Cloud Filesystem endpoint and rejects TiDB Cloud Filesystem tokens. A file system token works only with the endpoint of its own region.

Available SDKs

LanguageRepository locationDocumentation
TypeScriptclients/drive9-jsTypeScript SDK integration guide
Gopkg/clientGo SDK integration guide
Pythonclients/drive9-pydrive9-py README
Rustclients/drive9-rsdrive9-rs README
Kotlinclients/drive9-kotlindrive9-kotlin README
Swiftclients/drive9-swiftdrive9-swift README

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

Was this page helpful?