multimodal/websites/tarko/docs/en/guide/cli/overview.mdx
The Tarko Agent CLI is a flexible framework built on top of the Agent Kernel (@tarko/agent). It provides a comprehensive command-line interface for deploying and running agents with ease, featuring built-in Web UI and powerful extensibility.
Install globally via npm:
npm install -g @tarko/agent-cli
Or use with npx for one-time execution:
npx @tarko/agent-cli run my-agent
# Start interactive Web UI (default)
tarko
# Run with built-in agents
tarko run agent-tars # Agent TARS
tarko run omni-tars # Omni-TARS
tarko run mcp-agent # MCP Agent
# Run with custom agent
tarko run ./my-agent.js
# Start headless API server
tarko serve
# Headless mode with direct input
tarko run --headless --input "Analyze current directory structure"
# Pipeline input
echo "Summarize this code" | tarko run --headless
tarko run) - Web UI for development and testingtarko serve) - Headless API server for productiontarko run --headless) - Silent execution for automationTarko CLI includes several ready-to-use agents:
agent-tars - Advanced task automation and reasoning systemomni-tars - Multi-modal agent with comprehensive capabilitiesmcp-agent - Model Context Protocol agent for tool integrationSupports multiple configuration formats with auto-discovery:
tarko.config.ts - TypeScript configurationtarko.config.yaml - YAML configurationtarko.config.json - JSON configurationFilter available tools and MCP servers via configuration:
tarko --tool.include "file_*,web_*" --tool.exclude "dangerous_*"
tarko --mcpServer.include "filesystem" --mcpServer.exclude "experimental_*"
通过 --debug 参数启用详细日志:
# 启用调试模式
tarko run --debug
# 使用环境变量
DEBUG=tarko:* tarko run
For detailed TypeScript definitions:
@tarko/agent-interface - Core agent interfaces@tarko/interface - Application layer interfaces@tarko/agent-cli - CLI framework interfaces