> For the complete documentation index, see [llms.txt](https://docs.telys.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.telys.ai/cli/overview.md).

# Overview

The telys command tree — login, version, runtime, serve, mcp, and mem — with global behavior and links to every subcommand reference.

`telys` signs you in, installs and verifies the signed runtime, serves a collection over a socket, runs the MCP server, and drives a local memory store from the shell. `pipx install telys` (or `pip install telys`) installs it as the `telys` console script (`telys = telys.cli:main`).

Every subcommand runs on your machine. The CLI is a thin front end over the `telys` SDK; the vector engine is the signed native runtime, loaded lazily.

## Synopsis

```
telys                                  # prints help, exits 0
telys login    [--token] [--plan] [--no-install] [--no-browser]
telys version                          # "telys <ver> (format v<N>)"
telys runtime  {status | install | verify | update}
telys serve    --path PATH (--socket SOCKET | --host HOST --port PORT) [...]
telys mcp      [--path]                # stdio MCP server
telys mcp      {install | uninstall | status}
telys mem      {add | search | create | list | stats}
```

## Global behavior

* **Bare `telys` prints help and exits `0`.**
* **Exit codes are stable.** `0` success, `1` a defined "not ready" state (for example, the runtime is not installed), `2` usage error or not-yet-implemented command. See [Environment & exit codes](https://docs.telys.ai/cli/environment-and-exit-codes.md).
* **Configuration comes from the environment.** On-disk state lives under `$TELYS_HOME` (default `~/.telys`). Override the control-plane and download hosts with `$TELYS_ACCOUNTS_URL`, `$TELYS_API_URL`, and `$TELYS_PACKAGES_URL`; the full list is in [Environment & exit codes](https://docs.telys.ai/cli/environment-and-exit-codes.md).
* **Version.** `telys version` prints the installed distribution version and the on-disk format version.

```bash
telys            # help, exit 0
telys version    # e.g. telys 0.1.15 (format v1)
```

{% hint style="info" %}
Subcommands that touch a collection (`serve`, `mem`, the MCP server) need the signed runtime installed and activated. Check with `telys runtime status`, install with `telys login`, confirm the signature with `telys runtime verify`.
{% endhint %}

## Commands

| Command         | What it does                                                                        | Reference                                             |
| --------------- | ----------------------------------------------------------------------------------- | ----------------------------------------------------- |
| `telys login`   | Device-code sign-in; caches credentials and (by default) installs the runtime.      | [telys login](https://docs.telys.ai/cli/login.md)     |
| `telys version` | Print the installed version and on-disk format version.                             | [telys version](https://docs.telys.ai/cli/version.md) |
| `telys runtime` | Check, install, verify, or (stub) update the signed native runtime.                 | [telys runtime](https://docs.telys.ai/cli/runtime.md) |
| `telys serve`   | Serve a collection path over a Unix socket or TCP for `RemoteTelys`.                | [telys serve](https://docs.telys.ai/cli/serve.md)     |
| `telys mcp`     | Run the stdio MCP server, or install/uninstall/inspect its client config.           | [telys mcp](https://docs.telys.ai/cli/mcp.md)         |
| `telys mem`     | Advanced: add, search, create, list, and inspect a local collection from the shell. | [telys mem](https://docs.telys.ai/cli/mem.md)         |

### telys login

Browser device-code sign-in (RFC 8628). Caches credentials under `$TELYS_HOME` and, unless told otherwise, installs the signed runtime. Use `--token` for headless CI. See [telys login](https://docs.telys.ai/cli/login.md).

### telys version

Prints `telys <ver> (format v<N>)` — the installed distribution version (`0.0.0+source` in a source checkout) and the on-disk `FORMAT_VERSION`. See [telys version](https://docs.telys.ai/cli/version.md).

### telys runtime

Manages the signed native runtime: `status` (`0` ready / `1` not), `install` (offline `--file` or hosted download), and `verify` (offline signature check). `telys runtime update` is a stub that exits `2`. See [telys runtime](https://docs.telys.ai/cli/runtime.md).

### telys serve

Serves a collection directory over a trusted Unix socket or authenticated TCP for [RemoteTelys](https://docs.telys.ai/reference/remote-api.md). Pass `--socket` or both `--host` and `--port`; TCP requires an access token. See [telys serve](https://docs.telys.ai/cli/serve.md).

### telys mcp

Bare `telys mcp` runs the stdio MCP server. `install` writes launcher config for Claude, Cursor, Codex, Claude Desktop, or Qwen Code; `uninstall` and `status` manage it. See [telys mcp](https://docs.telys.ai/cli/mcp.md).

### telys mem

Advanced, scriptable wrapper over one local collection: `create`, `add`, `search`, `list`, and `stats`. For smoke tests and shell pipelines. See [telys mem](https://docs.telys.ai/cli/mem.md).

## See also

* [Environment & exit codes](https://docs.telys.ai/cli/environment-and-exit-codes.md) — every variable the CLI honors and what each exit code means.
* [Install Telys](https://docs.telys.ai/start-here/install.md) — get the `telys` command on your machine.
* [Sign in & activate a license](https://docs.telys.ai/start-here/sign-in.md) — the first command most people run after install.
