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

# AI Settings

> Switch the AI assistant on, follow the monthly AI allowance, add your own provider key, and review AI usage

## Overview

The **AI** tab under **Administration** is where the workspace's AI features are
set up. It has up to four sections: **AI assistant** with the **LeadToBill AI
allowance**, **Your own AI model**, **Usage this month**, and **Connected AI clients
(MCP)**. **Expand all** and **Collapse all** beside the title open or close every
section at once.

> [card] [Open AI settings](https://app.leadtobill.com/settings/ai)
>
> Go to Administration → AI in LeadToBill.

**Not available to Timekeepers.** Administration opens for Collaborators,
Controllers, and Admins. What each of them can change on this tab is marked below;
see [Roles](https://docs.leadtobill.com/guides/roles.md) for the roles themselves.

## What it controls

* **Whether the [AI assistant](https://docs.leadtobill.com/features/ai-assistant.md) is available** in this
  workspace.
* **Which AI model the assistant uses** — the one LeadToBill includes, or a model
  from your own provider account, for yourself or for the whole workspace.
* **How much of the included monthly AI allowance is used**, for the workspace and
  for you.
* **How much AI the workspace has used this month**, by model.
* **Whether members may connect external AI clients** — covered on
  [Connected AI clients](https://docs.leadtobill.com/settings/connected-clients.md).

## Options

### AI assistant

**Admins only.** The switch before the section's name turns the assistant on or off
for the whole workspace. Switching it on asks first — **Switch on the AI
assistant?** — and repeats how data is handled: what is sent to the model is limited
to what each request needs, and nothing is used for training. Switching it off
takes effect at once.

Everyone else sees no switch. While the assistant is off they read **The AI
assistant is switched off for this workspace. Ask an admin.**

While the assistant is off, the sections **Your own AI model** and **Usage this
month** are hidden.

### LeadToBill AI allowance

Shown inside the **AI assistant** section while the assistant is on. It is the AI
usage included with LeadToBill each month:

* **Team pool** — the workspace's allowance. It grows with every active member.
  **Controllers and Admins only**: they see how much of the pool is used and the
  number of active members. Collaborators see the team pool only when it is
  **Running low** or at **Limit reached**.
* **Your share** — your own part of the pool, which depends on your role. A role
  can also have no cap, shown as **No cap for your role**.

Each bar carries a state: **OK**, **Running low**, **Limit reached**, or **No cap**.
Below them, **Resets on** names the date the allowance starts again.

When you or the workspace use an own key, the bars are replaced by **Your chats run
on your own key — the allowance does not apply.** or **The workspace runs on its
own key — the allowance does not apply.**

### Your own AI model

Connect a key from your own AI provider account. Usage on it is billed by your
provider and does not count against the allowance.

**1. Add a configuration**

Select **Add configuration** at the end of the section's heading. **New AI model
configuration** opens.

**2. Choose who it applies to**

**Controllers and Admins only.** Under **Applies to**, choose **Whole workspace
— everyone uses this key** or **Just me — only I use this key**. Collaborators
are not asked: their key is always a personal one. The choice is made when the
configuration is created.

**3. Enter the provider details**

Give the configuration a **Name**, choose the **Provider**, and enter the
**Model** — the provider's usual model is filled in, and you can type another.
Enter your **API key**.

The remaining fields depend on the provider; one a provider does not use is
shown disabled:

* **Endpoint** — required for some providers, optional or fixed for others.
  It must be an `https` address.
* **Version** — only for providers that take one.
* **Max output tokens** — leave empty unless your model requires a lower limit.
  A very low value makes the assistant stop mid-reply.
* **Reasoning effort** — **Provider default** unless you choose otherwise.
* **Authentication** — for a provider that accepts either, choose **API key**
  or **Bearer token**.

**4. Activate and save**

Keep **Active** switched on to use the key. Only one key can be active for the
whole workspace and one per person: saving a configuration as active
deactivates the one that was active before. Select **Save**.

Each configuration is listed with its name, provider, and model, marked **Whole
workspace** or **Personal**, and **Inactive** when it is not in use. Everyone on
the tab sees the workspace configurations; a personal configuration is visible to
its owner alone. Editing and deleting a workspace configuration is for
**Controllers and Admins only**.

A saved key is not shown again. When you edit a configuration, the key field shows
asterisks; **Leave blank to keep the current one**, or type a new key to replace it.

**Delete** removes a configuration after a confirmation — **Delete configuration?**
— and cannot be undone.

### Usage this month

Requests and tokens across all AI use in the workspace: **Requests**, **Input
tokens**, and **Output tokens** as totals, and the same figures **By model**. Each
model row is marked **Platform key**, **Workspace key**, or **Your personal key**;
the personal keys of other members are combined into one row.

### Connected AI clients (MCP)

The last section lets members connect an AI client such as Claude or ChatGPT to the
workspace. It is described on [Connected AI clients](https://docs.leadtobill.com/settings/connected-clients.md).

## Effects on other features

* **AI assistant.** While the switch is off, the [assistant panel](https://docs.leadtobill.com/features/ai-assistant.md)
  shows **AI assistant is not enabled** to everyone; Admins can also switch it on
  from there.
* **Which key the assistant uses.** Your active personal key comes first and is
  used for your own chats. Otherwise the active workspace key is used, for everyone
  in the workspace — Timekeepers included. Without either, the assistant runs on
  the model LeadToBill includes and draws on the allowance.
* **When the allowance is used up.** The assistant answers with a notice instead of
  working on the request until the allowance resets at the start of the next month —
  or until an own key is active.
* **Where requests go.** Requests on your own key are sent to and billed by the
  provider under your agreement with them, not under LeadToBill's.
* **When an own key stops working.** The assistant says so in the chat — for
  example that the key was refused, reached its provider limit, or the endpoint
  could not be reached — and points to this tab. Members who cannot edit the
  workspace key are told to ask a Controller or Admin.

## FAQ

**Who can switch the AI assistant on or off?**
Admins only. Everyone else sees a hint to ask an Admin.

**Who can add a key for the whole workspace?**
Controllers and Admins. Collaborators can add a personal key that only their own
chats use.

**Can I see a key again after saving it?**
No. The field shows asterisks. Leave it blank to keep the stored key, or enter a new
one to replace it.

**Does usage on my own key count against the allowance?**
No. It is billed by your provider, and the allowance bars are replaced by a note
that the allowance does not apply.

**Why can't I see Your own AI model or Usage this month?**
Both sections are shown only while the AI assistant is switched on.

**Why does the assistant stop mid-reply with my own model?**
Check **Max output tokens** on the configuration. Leave it empty unless your model
requires a lower limit.

**When does the allowance reset?**
At the start of each month; the date is shown under the bars as **Resets on**.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.