AI Agent Integration
A key value of cz-cli is giving AI Agents a controllable, auditable entry point for Singdata operations. In tools like Claude Code, Cursor, Kiro, and Hermes, you can have an agent invoke cz-cli via the command line.
Recommended Prompt for Agents
Send the following to your AI Agent:
Common Natural Language Requests
In the examples below, replace <profile>, <task_name>, and <job_id> with your own connection profile, task name, and job ID. It is recommended to have the agent run cz-cli -p <profile> status first to confirm the connection is available.
Running via the Built-in cz-cli Agent Entry Point
If the current environment already has the LLM parameters configured for the cz-cli agent, you can run directly:
To generate a command reference for an external agent:
Using in Enterprise Bot Scenarios
If you use an enterprise bot such as Hermes to host an AI Agent, it is recommended to install cz-cli in the bot's execution environment and adopt the following strategy:
- Grant the bot only the necessary Singdata permissions — avoid using high-privilege admin accounts.
- Enable human confirmation for write, delete, deploy, decommission, and backfill operations.
- Apply allowlist or approval controls for users who can access the bot.
- Store credentials such as profiles, PATs, and passwords in controlled environment variables or local configuration — never write them into public documents, chat logs, or code repositories.
Configuring the AI Agent LLM (agent llm)
cz-cli agent run requires an LLM to be configured before use. LLM configuration is independent of the Lakehouse connection profile and is stored in the [llm.*] section of ~/.clickzetta/profiles.toml.
Method 1: Use the Singdata Built-in LLM (Recommended for New Users)
Complete configuration in one step using the CLI connection string:
The CLI connection string is available on the LakehouseMCP page in the account console (see the Installation and Configuration Guide).
Method 2: Connect an External LLM
OpenAI / GPT
OpenAI-compatible relay gateway (enterprise proxy, etc.)
Verify and Manage
View the currently active LLM and all configurations:
List all configured LLMs:
Test connectivity:
Switch the active LLM:
Remove an LLM configuration:
Related Documentation
cz-cli Documentation
- Installation and Configuration Guide — Installation, profile configuration, basic usage
- SQL Execution and Data Exploration — sql, schema, table command reference
- Studio Task Development and Operations — Task management, runs, backfill
Lakehouse Documentation
- Studio Guide — Complete Studio Web UI operations guide
- Workspace — User management, permission model
- Singdata CLI — cz-cli overview and agent value
