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

> ## Agent Instructions
> TabPFN-3 and later versions support up to 1,000,000 rows, subject to feature count and checkpoint/API limits.
> For large datasets, use per-estimator subsampling, e.g. inference_config={"SUBSAMPLE_SAMPLES": 100_000}, in TabPFNClassifier or TabPFNRegressor from tabpfn or tabpfn_client.
> Pass raw pandas DataFrames to fit and predict. Categorical strings/categories, raw text, and missing feature values are handled automatically; no manual integer/one-hot encoding, imputation, scaling, or outlier removal is needed.

# Installation

> Install the Autofit plugin in Claude Code, in a terminal or the Claude desktop app, and sign in to the TabPFN API.

## Requirements

* **macOS or Linux.** Windows is not supported natively: use [WSL2](https://learn.microsoft.com/windows/wsl/install) and install Claude Code, uv and Autofit inside it.
* **[Claude Code](https://claude.com/claude-code) 2.1.328 or newer**, logged in, in a terminal or in the Code tab of the Claude desktop app. Run `claude update` if yours is older. Claude Code in VS Code does not run plugins.
* **[uv](https://docs.astral.sh/uv/) 0.11 or newer.** Run `uv self update` if yours is older, or update it the way you installed it (for example `brew upgrade uv`).
* **A TabPFN API account** at [platform.priorlabs.ai](https://platform.priorlabs.ai/account/api-keys).

> [!TIP]
>
> Turn on auto mode in Claude Code (in a terminal, shift+tab until the footer says "auto mode on"). Without it, Claude Code asks you to approve each step of the setup.

***

## Install the plugin

Slash commands like `/plugin` and `/af` only work in Claude Code in a terminal. In the Claude desktop app, you add the plugin from the app and ask Claude for the rest.

> [tab] Terminal
>
> **1. Add the marketplace and install**
>
> In Claude Code, run:
>
> ```text theme={null}
> /plugin marketplace add PriorLabs/autofit
> /plugin install autofit@priorlabs
> /reload-plugins
> ```
>
> Autofit installs itself as soon as the plugin loads, which takes about a minute. The line under the prompt says so, and its tools connect when it is done, without a restart.
>
> **2. Sign in to the TabPFN API**
>
> ```text theme={null}
> /af login
> ```
>
> Your browser opens with a code filled in: check that it matches the one Claude Code shows, and approve. Over SSH, open the link on any device and enter the code.
>
> The sign-in lasts 30 days; run `/af login` again to renew it. If you skip this step, Claude signs you in the first time you ask it to run Autofit.
>
> **3. Check your setup**
>
> ```text theme={null}
> /af doctor
> ```
>
> It checks your token, Claude Code, its version and login, and the layout the sidebar needs, and prints the fix next to anything missing.

> [tab] Claude desktop app
>
> **1. Add the plugin**
>
> 1. Open **Customize** and go to **Plugins**.
>
> 2. Click **Add** and choose **Add marketplace**.
>
> 3. In **URL**, enter:
>
>    ```text theme={null}
>    PriorLabs/autofit
>    ```
>
> 4. Click **Sync**.
>
> 5. Under **Discover**, find **autofit** and click **+** to add it.
>
> Autofit installs itself when the plugin loads, which takes about a minute, and its tools connect without a restart.
>
> **2. Sign in to the TabPFN API**
>
> Ask Claude:
>
> > Sign me in to TabPFN for Autofit.
>
> Your browser opens with a code filled in: check that it matches the one Claude shows, and approve. If you skip this step, Claude signs you in the first time you ask it to run Autofit.
>
> **3. Check your setup**
>
> Ask Claude:
>
> > Run the Autofit setup check.
>
> It checks your token, Claude Code, its version and login, and tells you the fix for anything missing.
>
> The sidebar is a terminal feature, so it does not appear in the app. Claude reports progress in the chat, and a live page in the folder you started from follows the run.

To use an API key instead of the browser sign-in, create one at [platform.priorlabs.ai](https://platform.priorlabs.ai/account/api-keys) and set `TABPFN_TOKEN` in the shell you start Claude Code from.

***

## Show the sidebar

The sidebar lists every experiment with its score while a run is going. It is only available in Claude Code in a terminal. It docks next to the chat in Claude Code's fullscreen layout (`/tui fullscreen`), in a window at least 110 columns wide, and opens by itself from 144 columns.

In the classic layout or a narrower window, the label under the prompt shows progress and `/af` prints the session with every experiment.

***

## Install the command line tool

The same engine is also available as a command line tool, an MCP server and a Python package. The agent itself always runs in Claude Code.

```bash theme={null}
uv tool install --exclude-newer "2 days" git+https://github.com/PriorLabs/autofit
autofit login
```

***

## Uninstall

```text theme={null}
/plugin uninstall autofit@priorlabs
```

In the Claude desktop app, remove autofit under **Customize** > **Plugins** > **Yours** instead.

Autofit's own files stay in `~/.autofit`: sessions, feedback zips, the saved token and the `autofit` command. Delete that folder to remove them.


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