Troubleshoot installation
Everything on this page happens before you have done any work in Fito: the session will not start, the commands are not there, a package is too old, or the login will not finish. Problems that appear while you are working a case or authoring content are on their own pages, linked at the end.
Before you begin
Section titled “Before you begin”A healthy install looks like this, and each part has its own section on this page:
- Exactly one Fito install, from npm.
pi listshowsnpm:fito-tui, and no clone of the Fito repository. pi-subagents0.68.0 or newer, for the twelve commands that use a worker persona.- A Fito package the Fito server still accepts.
- On Windows, Git for Windows, which brings Git Bash, and pi started from
Windows Terminal, PowerShell or
cmd.
No /fito- command is offered
Section titled “No /fito- command is offered”Type /fito- in the session. If the completion list offers nothing, Fito is not
loaded.
-
Leave the session.
-
Check that the install recorded:
Terminal window pi listIf the list does not show
npm:fito-tui, install Fito, as in Install and prerequisites. -
If the list shows it, run
pi configand turn Fito’s resources on again.pi configturns a package off without removing it. -
Start pi again and type
/fito-a second time.
Confirm it worked: the list offers /fito-login.
pi refuses to start: Tool "fito_knowledge_fetch" conflicts with …
Section titled “pi refuses to start: Tool "fito_knowledge_fetch" conflicts with …”The session does not start at all, and the error names two absolute paths and no remedy.
pi loads Fito twice. The usual cause is a clone install of Fito beside the npm install, because earlier versions of the install page installed Fito from a clone. pi treats a duplicate tool registration as a fatal extension-load error, and raises it before it checks your credentials. The session dies rather than starting degraded.
One of the two paths in the error is in your clone of the Fito repository. That is the install to remove. The steps are in Move off a clone install.
Unknown tool: subagent, or /run is not recognised
Section titled “Unknown tool: subagent, or /run is not recognised”pi-subagents is not installed. Twelve Fito commands hand their work to a worker
persona and reach it through that package — the tutor and the rubric scoring
among them.
pi install npm:pi-subagentsThen restart pi.
The same cause has a quieter symptom: Fito’s worker personas are declared for
pi-subagents in the package manifest, so without that package nothing loads
them. The session says so at startup.
Fito needs pi-subagents 0.68.0 or newer
Section titled “Fito needs pi-subagents 0.68.0 or newer”Your pi-subagents is older than the version Fito’s worker personas need. Fito
checks it as pi starts, and shows:
Fito needs pi-subagents 0.68.0 or newer. Run: `pi update --extensions`To update it, run this in your shell, then start pi again:
pi update --extensionsConfirm it worked: the message does not appear when pi starts.
Your Fito TUI … is too old
Section titled “Your Fito TUI … is too old”The Fito server accepts a Fito package only from a minimum version up. Fito asks the server as pi starts, and the server also refuses each command that an older package sends. The message names your version and the server’s minimum, for example:
Your Fito TUI 0.2.1 is too old. The minimum is 0.3.0. Update it with: `pi update --extensions`To update, run this in your shell, then start pi again:
pi update --extensionsIf the message comes back, Fito is probably a clone install, which
pi update skips. Move off it, as in
Move off a clone install.
Fito needs Bash, which pi did not find
Section titled “Fito needs Bash, which pi did not find”This message appears on Windows only. Fito’s commands run in pi’s Bash, and the
scoring runs each rubric command with sh, so Fito needs a Bash on Windows too.
Fito checks it as pi starts, and shows:
Fito needs Bash, which pi did not find. Set `shellPath` in pi's settings.json to a bash.exe, or install Git for Windows, which brings Git Bash: https://git-scm.com/download/winTo repair it, install Git for Windows, then
start pi again. If you keep Bash somewhere else, set shellPath in pi’s
settings.json to that bash.exe instead.
Confirm it worked: the message does not appear when pi starts.
pi misbehaves in the Git Bash app window
Section titled “pi misbehaves in the Git Bash app window”pi opens, then text such as ;0;rgb:0000/0000/0000 appears in its input box,
or an editor opens that you did not ask for. In the Git Bash app window, pi reads
the terminal’s answers to its own questions as typed text.
Close that window, and start pi from Windows Terminal, PowerShell or cmd
instead. pi still runs Git Bash by itself whenever it needs it.
The login page opens on the wrong Fito
Section titled “The login page opens on the wrong Fito”/fito-login opens a browser at the address in FITO_URL. When that variable
is unset, it opens the hosted Fito, at https://fito.codes. So the login page
opens on the wrong Fito when FITO_URL names another Fito, or when it is unset
and you meant a local one.
pi’s footer names the Fito the TUI talks to. While pi runs, its last line shows the Fito version you installed, the API address every Fito call uses, and the account you are logged in as on that Fito:
▂▄▆ Fito <version> · API https://fito.codes/api · logged in as <username>Without a login on that Fito, the line ends not logged in. The account comes
from your saved login, and the line changes as soon as a login or logout
command ends.
The address in front of /api is the one /fito-login opens. To see where it
comes from, check the variable in the shell you start pi from:
echo "$FITO_URL"In PowerShell, run $env:FITO_URL. In cmd, run echo %FITO_URL%.
Set it to the Fito you mean, or unset it for the hosted Fito, then start pi again. The full list is on TUI configuration.
The login never completes
Section titled “The login never completes”/fito-login waits five minutes for the browser to hand the tokens back, then
gives up. Nothing is broken by a timeout — run it again.
| What you see | What to do |
|---|---|
| The browser does not open | The terminal prints the URL. Open it yourself |
| You signed in, and the terminal is still waiting | Return to the tab; it tells you when the handoff is done |
| The page says The Fito CLI is not logged in | Your sign-in worked, and the page could not reach the terminal: the browser blocked the call, or the command stopped waiting. Allow Apps on device for the Fito site in your browser’s site settings, then run /fito-login again. Or run /fito-login-by-device |
| No browser can reach this machine — over SSH, or in a VM | Run /fito-login-by-device, and approve the code in a browser anywhere |
| It timed out | Run /fito-login again |
✗ The code expired. Run /fito-login-by-device again. |
Run it again, and approve the new code within ten minutes |
Confirm a login worked:
✓ Logged in. Credentials saved to ~/.fito/credentials-fito.codes (mode 0600).On Windows, the line names no mode.
If a later command still asks you to log in, check that FITO_URL names the
Fito you logged in to: each Fito has its own login. If it does, the credentials
file may be half-written — a malformed file is read as not logged in rather
than as an error. Run /fito-login again to rewrite it.
Still stuck
Section titled “Still stuck”Collect these before asking for help. Together they identify every cause on this page:
- The output of
pi list. - The folder you started the pi session in.
- The exact first error line, including any paths it names.
- Whether
FITO_URLis set, and to what. - The Fito line in pi’s footer, with the version, the API address and the account.
What’s next
Section titled “What’s next”- Troubleshoot casework — opening, the tutor, evaluating and submitting.
- Troubleshoot authoring — the knowledge pipeline and case authoring.