TiDB X

Object-storage-native, elastic, multi-tenant SQL engine for AI agent workloads. Charged-by-query.

S3-native Pay per query (RU) MySQL compatible

๐Ÿค– Teach your AI agent about TiDB X

mkdir -p ~/.openclaw/skills/tidb-x && curl -so ~/.openclaw/skills/tidb-x/SKILL.md https://raw.githubusercontent.com/siddontang/tidb-x-skill/main/SKILL.md click to copy
โ€” or send this prompt to any AI agent โ€”
Read and learn from this skill file about TiDB X: https://raw.githubusercontent.com/siddontang/tidb-x-skill/main/SKILL.md click to copy
โ˜๏ธ

Object Storage First

S3 is the source of truth. Compute is stateless and elastic. Scale without data migration.

โšก

Charged by Query

Every SQL has an RU cost. Idle agents = zero cost. Millions of agents, usage-based billing.

๐Ÿ”’

Multi-Tenant Isolation

Per-agent, per-workspace data isolation. Safe sharing without leakage.

๐Ÿง 

Durable Agent Memory

Context becomes data. Append history, store decisions, query with SQL.

๐Ÿ›ก๏ธ

Workload Separation

Background compute (compaction, DDL) never blocks your OLTP queries.

๐Ÿ”—

Web3 Ready

Blockchain event indexing, DeFi portfolio tracking, cross-chain correlation.

Architecture

Agent writes SQL
      โ”‚
      โ–ผ
TiDB Server (stateless โ€” parse, optimize, route)
      โ”‚
      โ–ผ
TiKV (hot cache โ€” ack to agent fast)
      โ”‚
      โ–ผ
S3 Object Storage (source of truth โ€” durable, cheap, infinite)
      โ”‚
      โ–ผ
Background Pool (compaction, DDL โ€” isolated, zero OLTP impact)
      โ”‚
      โ–ผ
TiCI (columnar + inverted + vector indexes โ€” near real-time)

7 Verified Patterns

All tested on a live TiDB Cloud Zero instance. Copy-paste ready SQL in the skill file.

01

Agent Memory

Cross-agent memory sharing for support bots, coding agents, assistants

02

Session Context

Append-only context for long-running tasks with crash recovery

03

Task Queue

Multi-agent coordination with optimistic locking

04

Auditable Decisions

Provenance tracking โ€” what, why, based on what evidence

05

Chain Event Index

Multi-chain blockchain monitoring with whale detection

06

DeFi Portfolio

Position tracking, strategy reasoning, exit decision audit

07

Contract Decoder

Smart contract events with AI-generated interpretations