---
title: Install the CLI and sign in
description: Download the Python client from your instance and connect it with a personal token.
---

Install Python 3.12 or newer and make sure `~/.local/bin` is on your `PATH`. Replace the URL below with the one you use in your browser, including its port if needed.

```sh
mkdir -p ~/.local/bin
curl -fsSLo ~/.local/bin/glodrik https://glodrik.example.com:8443/api/cli/glodrik.pyz &&
  chmod +x ~/.local/bin/glodrik
```

Open your Glodrik account menu, select **API tokens**, and create a token. Supply it when the CLI prompts:

```sh
glodrik login --url https://glodrik.example.com:8443
glodrik whoami
```

For unattended use, provide `GLODRIK_URL` and `GLODRIK_TOKEN` through your environment. They override saved settings in `~/.config/glodrik/config.json`. To pass a token on standard input, use `glodrik login --token-stdin`. For private HTTPS trust, set `GLODRIK_CA_FILE` or pass `--ca-file` when signing in. The download also needs to trust that CA, for example with curl's `--cacert` option.
