Skip to main content

tai42-cli

License: Apache 2.0

The tai command-line client for operating a tai42 server over its HTTP API. It ships the tai console script: thin, typed clients over the server's /api/* surface — the same routes the Studio calls — for tools, presets, agents, extensions, connectors, hooks, channels, storage, keys, scopes, roles, configuration, and the rest of the operator surface. Human-readable tables by default; raw JSON under --json for scripting. Typed package (py.typed).

Position in the ecosystem

TAI is an open-source runtime for MCP tools, agents, and workflows. tai42-cli is the terminal client half of the tai command: it talks to a running server over HTTP and depends only on the interface contract, so it installs and runs on its own without the server package.

tai42-contract  <--  tai42-cli
(interfaces)      (the remote client)

Installing the server package adds its own local and runtime commands (serve, db, doctor, catalog, openapi, backend, metrics, offline config/manifest validation) to the same tai command through an entry-point group, so one binary covers both remote and local operation when both are installed.

Install

Requires Python 3.13+. Install from PyPI:

uv add tai42-cli

Or as a standalone tool:

uv tool install tai42-cli

Usage

Point the client at a server and authenticate. The server URL resolves from the --server flag, then TAI_SERVER_URL, then ~/.config/tai/config.toml, then a local default. The API key resolves from --api-key-stdin, then TAI_API_KEY, then the config file, then an interactive prompt (there is deliberately no --api-key VALUE flag — a value on the command line leaks through ps and shell history). The HTTP read window resolves from --timeout SECONDS, then TAI_CLI_TIMEOUT_SECONDS, then a 120s default sized for fleet-broadcast config writes; values must be positive and finite.

export TAI_SERVER_URL=https://your-server.example
export TAI_API_KEY=sk-...

tai tools list
tai tools list --json
tai config env get
tai version

Install shell completion:

tai completion install bash > /etc/bash_completion.d/tai

Development

uv venv --python 3.13
uv pip install --no-sources --editable ".[dev]"
uv run --no-sync ruff check .
uv run --no-sync ruff format --check .
uv run --no-sync pyright
uv run --no-sync pytest --cov --cov-report=term-missing

Documentation

The whole platform — concepts, guides, and the generated reference — lives in the unified documentation site:

License

Apache-2.0. See LICENSE and NOTICE.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tai42_cli-3.6.0.tar.gz (73.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tai42_cli-3.6.0-py3-none-any.whl (107.9 kB view details)

Uploaded Python 3

File details

Details for the file tai42_cli-3.6.0.tar.gz.

File metadata

  • Download URL: tai42_cli-3.6.0.tar.gz
  • Upload date:
  • Size: 73.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for tai42_cli-3.6.0.tar.gz
Algorithm Hash digest
SHA256 f4409aaad1a6489f2328a6451397b8bc8afec50692514ba75b4eeea8655a9231
MD5 5300aa43fd55e40e8de31a6485b9a824
BLAKE2b-256 ea834528ea7acbb1d859d375fc6f386bbb83d2a4aef21ba7f3c7f605f515a0b0

See more details on using hashes here.

File details

Details for the file tai42_cli-3.6.0-py3-none-any.whl.

File metadata

  • Download URL: tai42_cli-3.6.0-py3-none-any.whl
  • Upload date:
  • Size: 107.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for tai42_cli-3.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7472bb4833a43b3af5834eb4e5b914a6d50497cb62373e9406627815a897d10f
MD5 795bff5f97253ff982fe72cc525b3cfa
BLAKE2b-256 1180cc4079736247e0268a59f95dbd10701f2f7f270be997caa2ed0f0517b6c0

See more details on using hashes here.

Release history Release notifications | RSS feed

5.1.0

2 files

5.0.0

2 files

4.6.1

2 files

4.6.0

2 files

4.5.1

2 files

4.5.0

2 files

4.4.0

2 files

4.3.0

2 files

4.2.0

2 files

4.1.0

2 files

4.0.0

2 files

This release

3.6.0 This release

2 files

3.5.0

2 files

3.4.0

2 files

3.3.1

2 files

3.2.0

2 files

3.1.2

2 files

3.1.1

2 files

3.0.0

2 files

2.0.0

2 files

1.3.0

2 files

1.2.0

2 files

1.1.1

2 files

1.1.0

2 files

1.0.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page