# Teleharness

> Connect the Telegram AI assistant to the llmbox API in Teleharness — Custom (OpenAI-compatible) under Model, plus main and fast models.

Teleharness is the macOS app where you set up the AI assistant in Telegram: its
model, computer access, plugins, memory and chat permissions. The assistant
itself lives in a separate Telegram tab. Connect the llmbox API in Teleharness
as your own OpenAI-compatible account and pick the model by its ID from the
[catalog](https://llmbox.cc/en/models). For an overview and model pricing, see
[Telegram AI assistant on llmbox](/en/tools/teleharness).

> The assistant and Teleharness are in an experimental Telegram build for macOS,
> so menu labels may change before release.

## Quick start

1. Create an API key in the llmbox cabinet.
2. In Teleharness, open **Model**.
3. In the **AI accounts** list, click **Add** next to
   **Custom (OpenAI-compatible)**.
4. API address: https://llmbox.cc/v1
5. API key — your key from the cabinet.
6. Model — an ID from the [model catalog](https://llmbox.cc/en/models), e.g. `openai/gpt-6.1-sol`.

You can add several accounts and switch between them with one click. Switching
the account restarts the agent; a new model applies right away.

## Main and fast model

The **Model** section has two model settings:

- **Model** — the assistant's main model, e.g. `openai/gpt-6.1-sol` or
  `deepseek/deepseek-v4-pro`.
- **Fast model** — answers quick questions and agents set to fast. By default
  it is the main model; to save money, pick a cheaper one, e.g.
  `deepseek/deepseek-v4.1-flash`.

The **Automatic speed** toggle sends short questions to the fast model with
less thinking and bigger jobs to the main model.

## Check your key

Before connecting, check the address and key with one command:

```bash
curl https://llmbox.cc/v1/chat/completions \
  -H "Authorization: Bearer $LLMBOX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "openai/gpt-6.1-sol", "messages": [{"role": "user", "content": "ping"}]}'
```

If the model answers, the same values will work in Teleharness.

## How it works

- The assistant sends requests to `/v1/chat/completions` with your key; the
  model, tokens and cost of every request show up in the cabinet.
- Searching chats and working with files and Mac apps are the assistant's
  tools: the gateway passes them to the model as is, so pick a model with tool
  calling.
- Each assistant step is a separate request that carries the conversation
  history, so complex tasks use noticeably more input tokens than a quick
  question.
- According to Teleharness, keys stay in the Mac's Keychain and the assistant's
  virtual machine never sees them. Set a spending limit for the key in the
  cabinet.

## Troubleshooting

| Symptom | Cause and fix |
| --- | --- |
| `401 invalid_api_key` | The key was pasted with a space or revoked — check it in the cabinet. |
| `404 model_not_found` | The model ID has a typo — compare with `GET /v1/models`. |
| The assistant answers but does not search chats or work with files | The model lacks tool calling — pick another one from the catalog. |
| Quick questions cost too much | Set a cheaper model as **Fast model**. |
