---
title: "Your first chat"
description: "Chat with your HolaClaw Server agent from the terminal, sign in to ChatGPT if you use a subscription, and pair the HolaClaw apps with your daemon."
updated: 2026-11-16
canonical: https://holaclaw.ai/docs/server/first-chat
---

This guide starts where every installation guide ends: HolaClaw Server initialised and the daemon running. It covers your first conversation, the ChatGPT sign-in, and pairing a device.

Commands are written as `holaclaw …`. Run them [the way your deployment does](/docs/server/choose-a-deployment#where-things-are), for example `docker exec -it holaclaw holaclaw chat` in the container.

## Step 1: Chat

```sh
holaclaw chat
```

It attaches to the running daemon. At a terminal it opens a full-screen interface, with the reply on the left and the trace of the run on the right. Press `ctrl+p` to list the slash commands, and `F1` to list every key.

To ask one question and print the answer:

```sh
$ holaclaw chat -m "Reply with exactly: hola"
·   0.6s model step 1 → default (deepseek/deepseek-v4.1-flash)
hola
```

## Step 2: Sign in to ChatGPT

Only if you chose a ChatGPT subscription (`--provider openai-codex`). The sign-in runs inside the daemon, which keeps the tokens and refreshes them:

```sh
holaclaw login codex
```

It prints a URL and a code:

```
Open https://auth.openai.com/codex/device and enter the code: XXXX-XXXXX
```

Open the URL on any device, sign in with your ChatGPT account, enter the code and approve. The command returns `codex: logged in`.

You do this once. If the tokens are ever revoked, run `holaclaw login codex` again. The Codex CLI is not needed, and the machine needs no browser.

> **Warning**
> This sign-in flow is unofficial. OpenAI does not document it for third-party clients and can change it at any time.

## Step 3: Pair a device

The HolaClaw apps sign in with a one-shot code. `init` prints the command with the owner's id, and `holaclaw identity list` shows it too:

```sh
holaclaw invite create --identity <owner id> --channel holaclaw
```

It prints the code. When the daemon knows the address devices reach it at, it also prints a `holaclaw://pair?server=…&code=…` link and a QR code of it.

That address is `server.public_url` (or `HOLACLAW_PUBLIC_URL`). Without it, the daemon uses `server.listen` when that names a host other devices can reach. A loopback or wildcard listen gives no link: enter the code and the server address in the app instead.

Set `public_url` when the daemon listens on loopback, or sits behind a port mapping or a TLS proxy. See [config.toml](/docs/server/config-toml#server).

## What happens next

- [Change the model or the provider](/docs/server/providers-and-models).
- Talk to the agent from Telegram, Slack, Google Chat or WhatsApp: see [channels.toml](/docs/server/channels-toml).
- Give the agent the tools of a remote MCP server: see [connectors.toml](/docs/server/connectors-toml).
- Let the agent drive a [browser](/docs/server/browser).
- Run it day to day: [backups](/docs/server/backups), [upgrades](/docs/server/upgrades) and [troubleshooting](/docs/server/troubleshooting).

