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.
npm install -g freebuffRun
freebuff from the project folderRequires Node 16 or newer · macOS, Linux, Windows · x64 or arm64
Config
~/.config/manicode, or FREEBUFF_CONFIG_DIRHistory
<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.
| Flag | What it does |
|---|---|
freebuff login | Signs 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-agents | Loads the repository's .agents config and mcp.json without asking whether to trust them. |
-v, --version | Prints the version. |
-h, --help | Prints 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.
| Command | What it does |
|---|---|
/help | Key hints and command help. |
/diagnostics | Local resource use and the processes started by terminal tools. |
/dashboard | Usage dashboard. Aliases: /usage, /stats, /streak. |
/model | Picks the model for the next message. |
/reasoning | Picks the reasoning level for the next message. |
/plan | Works out a plan before anything is changed. |
/review | Reviews the changes in the code. |
/compact | Compresses the conversation into a summary. |
/todo | Shows the current task list. |
/queue | Edits messages waiting to be sent. |
/new | Starts a fresh conversation. Aliases: /clear, /reset. |
/history | Lists and reopens earlier conversations. |
/copy | Copies the conversation. |
/export | Exports the conversation. |
/bash | Switches to running terminal commands. |
/interview | Collects requirements by asking questions. |
/byok | Brings your own provider keys. |
/theme:toggle | Switches between light and dark. |
/deals | Shows current offers. |
/ads:report | Reports a problem with an advert. |
/feedback | Sends feedback. |
/end-session | Ends the current session. |
/logout, /exit | Signs 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
| CLI | Desktop | |
|---|---|---|
| Works over SSH | Yes | No |
| Diff and preview panes | No — changes are in your files and your editor | Yes |
| Terminal | The one you already have | Built in, Git Bash or $SHELL |
| Account views | /dashboard | Settings 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.