Daita CLI — manage and observe your hosted AI agents
Project description
daita-cli
Official CLI and MCP server for the Daita platform — deploy, run, and observe your hosted AI agents from the terminal or any coding agent.
Installation
pip install daita-cli
Requires Python 3.11+.
Authentication
Export your API key before running any command:
export DAITA_API_KEY=sk-...
Get your key from the Daita dashboard.
Quick Start
# Initialize a new project
daita init my-project
# Test locally before deploying
daita test
# Deploy to the cloud
daita push
# Run an agent remotely
daita run my-agent --data-json '{"input": "hello"}'
# Follow execution in real-time
daita run my-agent --follow
# Re-run a past execution and compare outcomes
daita replay <execution_id>
daita diff <execution_a> <execution_b>
# Diagnose setup issues
daita doctor
Commands
Local Development
| Command | Description |
|---|---|
daita init [name] |
Scaffold a new Daita project (agents/, workflows/, skills/) |
daita create agent <name> |
Add a new agent from template |
daita create workflow <name> |
Add a new workflow from template |
daita create skill <name> |
Add a new skill (instructions + tools) from template |
daita test [target] |
Run agents/workflows locally |
daita push |
Deploy the current project to the cloud |
daita status |
Show project and deployment status |
Agents & Executions
| Command | Description |
|---|---|
daita agents list |
List all agents |
daita agents show <id> |
Show agent details |
daita agents deployed |
List deployed agents |
daita run <target> |
Execute an agent or workflow remotely |
daita replay <execution_id> |
Re-run an execution with identical inputs |
daita diff <exec_a> <exec_b> |
Compare two executions (status, duration, cost, spans) |
daita executions list |
List recent executions |
daita executions show <id> |
Show execution details and result |
daita executions cancel <id> |
Cancel a running execution |
Diagnostics
| Command | Description |
|---|---|
daita doctor |
Run environment + platform connectivity checks with copy-pasteable fixes |
Observability
| Command | Description |
|---|---|
daita traces list |
List execution traces |
daita traces show <id> |
Show trace details |
daita traces spans <id> |
Show span timeline (ASCII on TTY, structured JSON on pipe) |
daita traces decisions <id> |
Show AI decision events |
daita traces stats |
Trace statistics (24h/7d/30d) |
daita logs |
View deployment logs |
daita operations list |
List platform operations |
daita operations stats |
Operation statistics |
daita memory status |
Show memory system status |
daita memory show <workspace> |
Show workspace memory contents |
Infrastructure
| Command | Description |
|---|---|
daita deployments list |
List deployments |
daita deployments history <project> |
Deployment history |
daita deployments rollback <id> |
Rollback to a previous deployment |
daita schedules list |
List agent schedules |
daita schedules pause <id> |
Pause a schedule |
daita schedules resume <id> |
Resume a schedule |
daita secrets list |
List secret key names |
daita secrets set <key> <value> |
Store an encrypted secret |
daita secrets remove <key> |
Delete a secret |
daita webhooks list |
List webhook URLs |
Output Formats
All commands support --output / -o:
daita agents list -o json # JSON (default when piped)
daita agents list -o table # ASCII table
daita agents list -o text # Human-readable text
Output defaults to JSON automatically when stdout is not a TTY (e.g. in scripts or CI).
MCP Server
daita-cli ships a full Model Context Protocol server with 35 tools, letting coding agents (Claude Code, Codex, Cursor, etc.) interact with your Daita platform directly. Tools stream MCP progress notifications during long runs and return structured JSON that coding agents can act on without parsing terminal output.
Start the server
daita mcp-server
Configure in Claude Code
Add to your project's .mcp.json:
{
"mcpServers": {
"daita": {
"command": "daita",
"args": ["mcp-server"],
"env": {
"DAITA_API_KEY": "sk-..."
}
}
}
}
Available MCP tools
| Category | Tools |
|---|---|
| Agents | list_agents, get_agent, list_deployed_agents |
| Executions | run_agent, list_executions, get_execution, cancel_execution, get_execution_stats, replay_execution, diff_executions |
| Traces | list_traces, get_trace, get_trace_spans, get_trace_decisions, get_trace_stats, get_trace_timeline |
| Deployments | list_deployments, get_deployment_history, delete_deployment |
| Schedules | list_schedules, get_schedule, pause_schedule, resume_schedule |
| Memory | get_memory_status, get_workspace_memory |
| Secrets | list_secrets, set_secret, delete_secret |
| Webhooks | list_webhooks |
| Diagnostics | doctor |
| Local dev | init_project, create_agent, create_workflow, create_skill, test_agent |
Environment Variables
| Variable | Description |
|---|---|
DAITA_API_KEY |
API key (required) |
DAITA_API_ENDPOINT |
Override the API base URL (default: https://api.daita-tech.io) |
DAITA_OUTPUT |
Default output format: json, text, or table |
DAITA_NO_SPINNER |
Set to any value to disable progress spinners |
Development
git clone https://github.com/daita-tech/daita-cli
cd daita-cli
pip install -e ".[dev]"
pytest
License
Apache 2.0 — see LICENSE.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file daita_cli-0.2.0.tar.gz.
File metadata
- Download URL: daita_cli-0.2.0.tar.gz
- Upload date:
- Size: 59.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
867540b2c0f90822a340f3d5e9e5db5ef24109944b63a2c4bb1d2825698c18d9
|
|
| MD5 |
c94e28404e12dcf89ee317f513928288
|
|
| BLAKE2b-256 |
a513bb95a55f0f808f41b50b6fdc7b7778beb1108acf66b36ef43f1cdbdbe0dd
|
File details
Details for the file daita_cli-0.2.0-py3-none-any.whl.
File metadata
- Download URL: daita_cli-0.2.0-py3-none-any.whl
- Upload date:
- Size: 62.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
da00119cc2a3dd37136f265769fed4d1c3f160064bd47b8598239a10c0437ebf
|
|
| MD5 |
05ffe229025466003e46c6166a9f0e0c
|
|
| BLAKE2b-256 |
543aa9ea2db2e9c7b6e191cac586454069bc9c0b8ca5620670dd28282a1fa37b
|