Skip to main content

Turing CLI

turing-cli is the command-line tool for the Turing Platform. It exposes Agent Memory, document conversion, usage queries, and self-upgrade as scriptable terminal commands, making it suitable for local terminals, CI pipelines, and agent workflows.

turing-cli can be used together with agent skills. Relevant skills are available on SkillHub, or you can configure your own skills according to the conventions of your agent or IDE.

SkillPaired CLI capabilityLink
Turing LTMturing-cli memory login / install / doctor / recall / remember — share one personal memory across local agentsTuring CLI · SkillHub: Turing LTM · Docs
Turing Operationsturing-cli operations search / dashboards / grouped-usage — query usage, costs, tokens, and one- or two-dimensional breakdownsSkillHub: Turing Operations
Documentsturing-cli documents convert — convert PDF / Word / Excel / PowerPoint to Markdown for agent consumptionSkillHub: Documents

Capability Overview​

Sub-domainPurposeCommon commands
MemoryInstall the Portable Skill and share one personal memory across local agents with Recall / Rememberturing-cli memory
DocumentsConvert PDF / Word / Excel / PowerPoint to Markdownturing-cli documents convert
OperationsQuery Turing Platform usage, costs, tokens, models, and request detailsturing-cli operations
Upgrade & VersionCheck for updates, install new versions, view the current versionturing-cli upgrade

Installation​

macOS / Linux:

curl -fsSL https://live-public-aigc-resources.s3.cn-north-1.amazonaws.com.cn/turing/turing-cli/install.sh | bash
turing-cli version

Windows PowerShell:

irm https://live-public-aigc-resources.s3.cn-north-1.amazonaws.com.cn/turing/turing-cli/install.ps1 | iex
turing-cli version

Configuring the API Key​

The recommended approach is to write the key to ~/.turing-cli.yaml:

api_key: sk-...

You can also use an environment variable, which takes higher precedence:

export TURING_API_KEY="sk-..."

Override the API base URL only when temporarily connecting to a different environment:

export TURING_API_BASE="https://<other-env>/api/v1"

Quick Start​

turing-cli version
turing-cli memory doctor
turing-cli documents convert report.pdf
turing-cli operations search -q zhangsan
turing-cli operations dashboards --type username --value san.zhang
turing-cli operations grouped-usage --type username --value san.zhang --group-by service,day
turing-cli upgrade check

Command Structure​

turing-cli
├── memory
│ ├── login
│ ├── install
│ ├── doctor
│ ├── recall
│ └── remember
├── documents
│ └── convert
├── operations
│ ├── search
│ ├── dashboards
│ └── grouped-usage
├── upgrade
│ ├── check
│ └── apply
└── version

Global Flags​

Global flags can be placed before any subcommand:

turing-cli --config ./turing-cli.yaml operations search -q zhangsan
FlagDefaultDescription
--config FILE$HOME/.turing-cli.yamlPath to the configuration file
-v, --verbosefalseEnable verbose output
-h, --helpShow help for the current command

Troubleshooting​

SymptomResolution
command not found: turing-cliRe-run the installation script and verify that the install directory is in PATH
missing API KeySet ~/.turing-cli.yaml or the TURING_API_KEY environment variable
Network connection failureCheck your network, proxy settings, and access to the target environment
HTTP 403The current API Key does not have permission to query the target resource

Uninstallation​

macOS / Linux:

sudo rm /usr/local/bin/turing-cli

Windows: delete turing-cli.exe from %LOCALAPPDATA%\Programs\turing-cli and remove that directory from PATH.

Further Reading​