> ## Documentation Index
> Fetch the complete documentation index at: https://metacognition-fdc534de-master.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Install the SDK

> Install tex-sdk, verify the import, and pin a safe version range.

## Requirements

* Python 3.9 or newer
* `pip`, `uv`, or `poetry`

If you have not made a live **`remember`** and **`recall`** call yet, start with the [Quickstart](/quickstart).

## Install

<CodeGroup>
  ```bash pip theme={null}
  pip install tex-sdk
  ```

  ```bash uv theme={null}
  uv add tex-sdk
  ```

  ```bash poetry theme={null}
  poetry add tex-sdk
  ```
</CodeGroup>

<Note>
  PyPI lists the package as **`tex-sdk`**. You **`import tex`** in Python:

  ```python theme={null}
  from tex import Tex
  ```
</Note>

## Check version

```bash theme={null}
python -c "import tex; print(tex.__version__)"
# 1.1.0
```

## Pin versions

```text requirements.txt theme={null}
tex-sdk>=1.1.0,<2
```

For PEP 621 `pyproject.toml`, add `"tex-sdk>=1.1.0,<2"` under `[project].dependencies`.

For Poetry, use `tex-sdk = "^1.1.0"` under `[tool.poetry.dependencies]`.

## HTTP/2 and proxies

The SDK uses `httpx[http2]`. If your proxy strips HTTP/2, disable it when you construct the client:

```python theme={null}
tex = Tex(api_key=..., http2=False)
```

## Types

Type stubs ship with the package (`py.typed`). Mypy and Pyright pick them up automatically. You do not need a separate `types-` package.

```python theme={null}
from tex import Tex, RecallResponse

tex: Tex = Tex(...)
hits: RecallResponse = tex.recall(q="...", session_id="...")
reveal_type(hits.confidence)   # float
```

<Card title="Next: configure the client" icon="gears" href="/sdk/client">
  Environment variables, timeouts, and lifecycle hooks.
</Card>
