Skip to main content

Requirements

  • macOS or Linux. Windows is not supported natively: use WSL2 and install Claude Code, uv and Autofit inside it.
  • 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 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.
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.
1

Add the marketplace and install

In Claude Code, run:
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

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

It checks your token, Claude Code, its version and login, and the layout the sidebar needs, and prints the fix next to anything missing.
To use an API key instead of the browser sign-in, create one at platform.priorlabs.ai 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.

Uninstall

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.