# Using Treasure Code CLI with AI Coding Assistants ## Flexible AI Integration Treasure Code CLI is designed to work seamlessly with popular AI coding assistants, including Claude Code, Codex, GitHub Copilot, Cursor, Windsurf, and other AI-powered development tools. This flexibility allows you to choose the AI tools that best fit your workflow and organizational preferences. ## Understanding Data Flow When you use Treasure Code CLI with a third-party AI coding assistant, data from your Treasure Data account may be shared with the AI provider to enable intelligent assistance. This data exchange may include: - Database schemas and table structures - Query results and data samples - Customer segment definitions - Marketing workflow configurations - Other data retrieved through Treasure code (tdx) commands ## Important Considerations Each AI assistant provider operates under their own terms of service, model training, and data practices. Treasure Data does not control how third-party AI providers handle data, including: - Data collection, processing, storage, and retention policies - Use of data for model training or service improvements - Security and privacy safeguards - Compliance with local data protection regulations and best practices (GDPR, CCPA, HIPAA, etc.) ## Your Control and Responsibility You have full control over which AI coding assistant tools you use with Treasure Code CLI. We recommend that you: - **Review provider policies**: Understand each AI provider's terms of service, privacy policy, training policies, and data usage practices - **Align with your organization**: Ensure any third-party AI integration complies with your company's data governance, security, and privacy practices and procedures requirements - **Obtain appropriate approvals**: Consult with your legal, compliance, and security teams before using or sharing sensitive or regulated data with external AI services - **Configure settings appropriately**: Where available, adjust AI provider settings to control data retention and usage adhering to your company's best practices, policies, and procedures ## Secure Alternatives For organizations looking for a fully-managed solution and the ability to take advantage of Treasure Data's integrated AI models and data security, privacy, governance, and policy permissions Treasure Data offers native AI capabilities: - **Treasure Studio**: Our desktop application with built-in AI features (currently beta) - **Treasure Code with AI Foundry**: Use Treasure Code with Treasure Data's AI Foundry service (powered by Anthropic Claude) for enhanced data protection and compliance controls These options provide AI-powered assistance while keeping your data within Treasure Data's security and compliance framework. ## Enterprise Support If you have questions about approved AI integration options, data protection controls, or compliance considerations, please contact your Treasure Data account representative. We're here to help you leverage AI safely and effectively. ## In Summary Treasure Code CLI gives you the freedom to work with the AI tools you prefer. We want you to make informed decisions about data sharing that align with your organization's policies and requirements. Whether you choose a third-party AI coding assistant or Treasure Data's native AI capabilities, we're committed to supporting your success.