> ## Documentation Index
> Fetch the complete documentation index at: https://docs.usetokenless.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Tokenless CLI

> Install tkl, sign in through the dashboard, and run coding agents through Tokenless.

`tkl` configures supported coding agents to use Tokenless without manually
creating or exporting an API key.

## Install

```sh theme={"dark"}
curl -fsSL https://api.usetokenless.com/install.sh | sh
```

The installer supports macOS and Linux on Intel and Apple Silicon/ARM machines.

## Sign in

```sh theme={"dark"}
tkl login
```

This opens the [Tokenless dashboard](https://dashboard.usetokenless.com/access)
to approve the device and stores the resulting session locally.

## Run an agent

<CodeGroup>
  ```sh Claude Code theme={"dark"}
  tkl claude
  ```

  ```sh Codex theme={"dark"}
  tkl codex
  ```

  ```sh Pi theme={"dark"}
  tkl pi
  ```

  ```sh OpenCode theme={"dark"}
  tkl opencode
  ```
</CodeGroup>

`tkl claude` uses Tokenless's Anthropic-compatible route; `tkl codex` uses its
OpenAI-compatible route. `tkl pi` and `tkl opencode` use the OpenAI-compatible
route too. Arguments after the agent name pass through unchanged:

```sh theme={"dark"}
tkl claude --resume
tkl codex --help
```

## Choose a routing mode

By default, `tkl` uses the `tokenless-pro` mode. Put routing flags before the
agent command:

```sh theme={"dark"}
tkl --max claude
tkl --policy ultra_saver codex
```

Run `tkl --help` for all commands and options.
