Autofit
Autofit by Prior Labs is a Claude Code plugin that helps you build strong models
for tabular prediction problems, such as churn, demand, delivery times,
conversion or pricing.
It builds on TabPFN, a foundation model for tabular
data, and runs the whole modeling loop for you: setting up the problem and its
validation, a baseline, experiments to beat it, an ensemble, and a final model
you can predict with.
The documentation is at docs.priorlabs.ai/autofit.
Quick start
Requirements
- macOS or Linux. Windows is not supported natively; on Windows, use
WSL2 and install Claude
Code, uv and Autofit inside it.
- Claude Code, logged in. The sidebar and the
approval card use Claude Code's plugin UI, which is in early access and can
change between releases; Autofit is tested with Claude Code 2.1.328.
- 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 Prior Labs account for the TabPFN API, at
platform.priorlabs.ai. You sign in from
Claude Code after the install, or set
TABPFN_TOKEN to an
API key.
Before you install
- Use Claude Code 2.1.328 or newer in a terminal. Run
claude update if
yours is older. Claude Code in VS Code does not run plugins.
- Turn on auto mode (shift+tab until the footer says "auto mode on").
Without it, Claude Code asks you to approve each step of the setup.
Install with a prompt
Paste this into Claude Code:
Set up the Autofit plugin from github.com/PriorLabs/autofit for me. First check that uv is 0.11 or newer and Claude Code is 2.1.328 or newer; if one is missing or older, tell me how to install or update it and stop. Then run `claude plugin marketplace add PriorLabs/autofit` and `claude plugin install autofit@priorlabs` in the shell. When both succeed, tell me to type /reload-plugins, then /af login to sign in to TabPFN (Autofit first installs itself in about a minute, and the sign-in starts once it is done), then /af doctor.
Then type the three commands Claude names; the steps below explain each one.
Install by hand
Add the marketplace and install the plugin in Claude Code:
/plugin marketplace add PriorLabs/autofit
/plugin install autofit@priorlabs
Reload plugins:
/reload-plugins
Autofit then installs itself, which takes about a minute: the line under the
prompt says "installing Autofit" until it is done, and its tools connect then,
without a restart. You can go on meanwhile.
Sign in to the TabPFN API:
/af login
While Autofit still installs, /af login says so and starts the sign-in once
the install is done. Your browser opens with a code filled in: check that it
matches the one Claude Code shows, and approve. Over SSH nothing opens: open the link on any device and
enter the code. If you skip this step, Claude signs you in the first time you ask
it to run Autofit. The sign-in lasts 30 days; /af login again renews it,
without a restart. With an API key from
platform.priorlabs.ai instead,
set TABPFN_TOKEN in the shell you start Claude Code from.
Then run:
/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. Run it once the
install is done; before that it says to wait. The plugin also runs these checks
at the start of each session and shows a line under the prompt when something
needs changing.
First run
Open Claude Code in the folder with your data and ask:
Run Autofit on churn.csv and predict churn.
In fullscreen layout in a wide window, the sidebar opens with the run, or type /af.
Update
New versions come as releases,
each with notes on what changed. To update, run in a shell:
claude plugin marketplace update priorlabs && claude plugin update autofit@priorlabs
Then restart Claude Code. Autofit installs the new version at the first start:
usually in a few seconds, up to about a minute when uv downloads its
dependencies again. Claude Code sessions and Autofit runs that were already
going keep the version they started with until they end.
A session's model loads only with the Autofit code and packages that saved it.
When a release changes them, its notes say so, and predict and score refuse
sessions saved before it; start a new session on the same data then.