Your Codex already knows Treasure AI
Query customer data, build segments, and run workflows from OpenAI Codex — in your terminal or IDE, in natural language, with production-grade governance. Two minutes to connect.
90%
Less time on routine CDP work.
2 minutes
from setup to your first AI-built segment.
$0
included with the ChatGPT plan your team already has.
Two minutes in your existing Codex
Install the tdx CLI, add its MCP server, and just ask. Your Codex — your ChatGPT plan, your terminal or IDE — now operates your CDP.
Connect Treasure AI to Codex
The tdx MCP server gives Codex two clean tools — tdx_run and tdx_search — covering the entire platform.
- Works in the Codex CLI and the IDE extension (gear menu → MCP servers)
- Included with the ChatGPT plan you already have
- Respects your TD roles and policies on every call
One file, whole team connected
Commit .codex/config.toml to your repo and everyone who opens the project gets Treasure AI in Codex — no per-machine setup.
- Each developer authenticates as themselves with tdx auth setup
- No global install needed — use command = "npx", args = ["@treasuredata/tdx", "mcp"]
- Same config works across the CLI and the IDE extension
Add TD Skills to Codex
TD Skills are the CDP playbooks written by the people who built the platform — segment YAML patterns, Trino optimization, workflow debugging. Codex reads the open Agent Skills format natively: drop them in and invoke with $skill-name, or let Codex pick the right one.
- Invoke explicitly with $skill-name or /skills — or let Codex auto-load the match
- Open Agent Skills format — every skill is a readable Markdown playbook, not a black box
- The same skills power Claude Code, Copilot, and Treasure Code — one library, every editor
Playbooks, not prompts
TD Skills are CDP playbooks in the open Agent Skills format, written by the people who built the platform. Copy what you need into ~/.codex/skills/ and invoke with $skill-name — the same library that powers Claude Code, Copilot, and Treasure Code.
Real CDP work, in plain language
Not a chatbot bolted onto a dashboard — Codex drives the same tdx commands your team uses, so everything it makes is reviewable and reproducible.
Explore customer data
Browse databases, inspect schemas, and run Trino/Hive queries without leaving your terminal or IDE.
Build & ship segments
Draft segment rules as YAML, validate match rates, and push to production with an audit trail.
Debug workflows
Diagnose failed Digdag runs, patch the .dig file, and retry — with the error context pulled in automatically.
Design journeys
Compose multi-stage journeys with decision points and A/B tests, validated before anything goes live.
Create campaigns
Generate Treasure Engage email templates that pass brand and compliance checks on the first try.
Find the right command
Codex uses tdx_search to discover the exact tdx command for the task — no manual paging through references.
No side doors — just tdx, over MCP
Codex never touches raw credentials or a private API. Every action flows through the tdx MCP server as a real tdx command — one you could type yourself, authenticated as you, governed and logged like any other.
Prefer Claude Code or VS Code? See Works with Claude Code and Works with VS Code.
FAQs
Codex is included with paid ChatGPT plans (Plus, Pro, Business, and Enterprise) — if your team already has ChatGPT, you already have Codex. The tdx CLI and its MCP server are free to install, and platform usage is covered by your Treasure AI contract.
Actions run through tdx with your TD role and policies — the agent can’t do anything you couldn’t do yourself. Auth and profile commands are blocked over MCP by design, everything is audit-logged, and segment or workflow changes are plain YAML you can review before pushing.
Databases and SQL (Trino/Hive), parent segments and segments, journeys, activations, Digdag workflows, Treasure Engage campaigns, and Foundry agents — everything the tdx CLI covers, exposed to Codex through the tdx_run tool.
Yes — that’s the point. Marketers describe the segment or journey they want in plain language; the YAML, validation, and push happen underneath. For a fully no-code experience outside the terminal, see Treasure AI Studio.
Yes — Codex reads skills from ~/.codex/skills/ (personal) or .codex/skills/ (project). Clone treasure-data/td-skills, copy the skills you want, and invoke them with $skill-name — or let Codex pick the right one automatically. Every skill is a readable Markdown playbook you can audit before installing.
The tdx CLI and its MCP server are free. Platform usage is covered by your existing Treasure AI contract, and Codex is included in the ChatGPT plan your team already has — nothing new to procure.