npm.io
2026.6.5 • Published 3d agoCLI

@treasuredata/tdx

Licence
Version
2026.6.5
Deps
19
Size
5.9 MB
Vulns
0
Weekly
3.1K

tdx - AI-Native CLI for Treasure AI

Status: Under Active Development. SDK/CLI commands are subject to change (2026)

A modern, AI-native command-line interface for Treasure AI, optimized for both human engineers and AI coding assistants.

Documentation: https://tdx.treasuredata.com/

Features

  • AI-Native Design: Consistent JSON output, predictable error codes, structured responses
  • Claude Code Integration: Launch Claude Code with TD LLM API using tdx claude
  • MCP Server: Expose tdx commands as tools for AI assistants (Cursor, Windsurf, VS Code, Claude Desktop)
  • Multi-Site Support: Easy switching between US, JP, EU, and AP regions
  • Modern Distribution: Install via npx or npm without prior setup

Installation

# Install globally
npm install -g @treasuredata/tdx

# Or run directly with npx (no installation required)
npx @treasuredata/tdx databases

Quick Start

# Set up authentication (interactive)
tdx auth setup

# List databases
tdx databases

# Run a query
tdx query "SELECT * FROM mydb.users LIMIT 10"

# Chat with AI
tdx chat "Show me customer revenue trends"

# Launch Claude Code with TD LLM
tdx claude

Documentation

For detailed documentation, visit https://tdx.treasuredata.com/:

Requirements

  • Node.js 22.12.0 or higher (Node.js 24 LTS recommended)
  • TD API key with appropriate permissions

Treasure Studio (Desktop App)

Treasure Studio is an AI-native desktop application that provides a graphical interface for Treasure AI workflows.

Download: Treasure Studio Releases

Note: Treasure AI's AI Foundry subscription is required to use Treasure Studio.

Development
# Install all dependencies and start Studio dev mode (one command)
pnpm studio

See studio/CLAUDE.md for detailed build commands and architecture.

Contributing

This project is maintained by the Treasure AI DevAI Unit.

Keywords