CLI

How to install and run the command-line client, every flag and slash command, and where it keeps config, history and MCP servers.

The CLI is the same agent in a terminal. It is the surface to use over SSH, in a tmux session, or on a machine where you do not want a desktop app — and its slash commands are the fastest way to reach account data without opening a settings page.

Install npm install -g freebuff
Run freebuff from the project folder
Requires Node 16 or newer · macOS, Linux, Windows · x64 or arm64
Config ~/.config/manicode, or FREEBUFF_CONFIG_DIR
History <config>/projects/<project>/chats/<id>/

Installing

The published package is freebuff, installed globally and started without arguments from inside the project you want to work on:

npm install -g freebuff
cd ~/code/my-project
freebuff

The package declares Node >=16 and supports macOS, Linux and Windows on x64 and arm64. The agent works on the folder you start it in, so starting it one directory too high is the most common way to get an agent that cannot find the project.

On an older Intel Mac, a crash with SIGILL at startup means the CPU does not implement instructions the default build assumes; install the baseline build described in the package README instead of retrying.

Flags

The CLI takes a short list of flags. It is an interactive client: it does not accept an initial prompt as an argument, and it is not a scriptable JSON mode.

FlagWhat it does
freebuff loginSigns in and stores the session for later runs.
--continue [conversation-id]Resumes the previous conversation, or the one you name.
--cwd <directory>Sets the working directory instead of using the current one.
--trust-agentsLoads the repository's .agents config and mcp.json without asking whether to trust them.
-v, --versionPrints the version.
-h, --helpPrints usage.

--trust-agents is about trusting files that are already in the repository — agent configs and MCP server definitions. It is not a general "stop asking me" switch, and it does not make an untrusted checkout safe: a repository you have not read can define servers and environment variables that run with your permissions.

Slash commands

These are the commands in the client's registry. Aliases are listed with the command they stand for; /skill:<name> appears when a skill adds its own command.

CommandWhat it does
/helpKey hints and command help.
/diagnosticsLocal resource use and the processes started by terminal tools.
/dashboardUsage dashboard. Aliases: /usage, /stats, /streak.
/modelPicks the model for the next message.
/reasoningPicks the reasoning level for the next message.
/planWorks out a plan before anything is changed.
/reviewReviews the changes in the code.
/compactCompresses the conversation into a summary.
/todoShows the current task list.
/queueEdits messages waiting to be sent.
/newStarts a fresh conversation. Aliases: /clear, /reset.
/historyLists and reopens earlier conversations.
/copyCopies the conversation.
/exportExports the conversation.
/bashSwitches to running terminal commands.
/interviewCollects requirements by asking questions.
/byokBrings your own provider keys.
/theme:toggleSwitches between light and dark.
/dealsShows current offers.
/ads:reportReports a problem with an advert.
/feedbackSends feedback.
/end-sessionEnds the current session.
/logout, /exitSigns out, or leaves the client.

A few commands that exist elsewhere are deliberately absent from this registry: /init, /image and /publish. If a guide tells you to type one of them in the CLI, it is describing a different client.

Configuration

The client reads its configuration from ~/.config/manicode. To move it — onto an encrypted volume, or into a container — set FREEBUFF_CONFIG_DIR to an absolute path:

export FREEBUFF_CONFIG_DIR=/home/you/.config/freebuff-cli

A relative path is rejected as an error rather than resolved against the current directory, which keeps two shells from silently using different configs.

Conversation history

Conversations are stored per project under the config directory: projects/<project-folder-name>/chats/<id>/. /history scans the most recent 500 chat directories. A chat whose files cannot be read is flagged as unreadable and left alone instead of being partially restored — that is a signal that something on disk is damaged, not a prompt to start writing files into the history.

MCP servers in the CLI

The client looks for .agents/mcp.json in the current directory, its parent and your home directory. Files are merged in that order, and when two files define a server with the same name, the later entry replaces the earlier one — which means a server defined in your home config overrides the one committed to the repository.

A file that does not parse, or that names an environment variable which is not set, is skipped as a whole rather than half-loaded; run with verbose output to see the reason. Desktop reads a shared ~/.agents/mcp.json and its own ~/.freebuff/mcp.json instead, and applies its own allowlist to inherited environment variables — see MCP servers for the config format itself.

CLI or Desktop

CLIDesktop
Works over SSHYesNo
Diff and preview panesNo — changes are in your files and your editorYes
TerminalThe one you already haveBuilt in, Git Bash or $SHELL
Account views/dashboardSettings screens

Both run against the same project folder and the same account, so a chat started in one is not tied to the other. For the hosted surface with no machine at all, see Cloud workspaces.