Install
npm installs the binary for your platform from its own package, @brave/bravebot-<platform>-<arch>,
and runs no install script, so --ignore-scripts does not affect it. --omit=optional leaves that
package out, and then bravebot exits saying the binary is missing. macOS, Linux and Windows are
supported, on both x86_64 and arm64. To build from source instead, see
Development.
On macOS and Linux there is an install script, for a machine with no npm on it:
curl -fsSL https://raw.githubusercontent.com/brave/bravebot/main/install.sh | sh
It fetches the newest release for your platform, checks it against the published checksum, and
writes nothing if the two differ. It puts the binary in /usr/local/bin, asking for sudo only if
that directory is not yours to write to. INSTALL_DIR puts it somewhere else:
curl -fsSL https://raw.githubusercontent.com/brave/bravebot/main/install.sh \
| INSTALL_DIR="$HOME/.local/bin" sh
On Linux the script also checks the signature on the checksum, which needs gpg. Without gpg it
refuses before downloading anything, so install GnuPG first (apt install gpg on Debian or Ubuntu).
Where you cannot, BRAVEBOT_ALLOW_MISSING_GPG=1 on the sh side of the pipe installs on the
checksum alone, which does not show who published the binary:
curl -fsSL https://raw.githubusercontent.com/brave/bravebot/main/install.sh | BRAVEBOT_ALLOW_MISSING_GPG=1 sh
An install made this way needs the variable again at each update made while the machine has no
gpg, since the update line bravebot prints does not carry it.
To install a release other than the newest, give the script a version after -s. It takes three
numbers, with or without a leading v, and checks that release exactly as it checks the newest:
curl -fsSL https://raw.githubusercontent.com/brave/bravebot/main/install.sh | sh -s 1.2.3
A version with no release fails at the download and says which one. Running the line without a version installs the newest again.
Running the line again is how an install made this way is updated. The script records where it put
the binary, so a second run with no directory named replaces that one rather than leaving two on
your PATH.
Debian, Ubuntu and Fedora packages
bravebot is a package of its own, in an apt repository at
https://bravebot-apt-release.s3.brave.com and a dnf repository at
https://bravebot-rpm-release.s3.brave.com. Both are signed with the release key whose
fingerprint is 13F28F0405C49B0B232DBA1BC1E827646A2DE416, and the client checks that signature
before it installs anything. The package puts the binary at /usr/bin/bravebot and requires glibc
2.30 or newer.
The packages are meant for the releases that have glibc 2.30 or newer and that their vendor still supports: Debian 12 and 13, Ubuntu 22.04, 24.04 and 26.04, and a Fedora release that still receives updates. Both repositories carry amd64 and arm64 (x86_64 and aarch64 for dnf). The served files and the package requirements were read from the repositories, and the steps below have not yet been run on each of these releases (#3466).
A minimal image, such as a container, has none of curl, gpg and ca-certificates for apt, and
no sudo. Install them first (apt install curl gpg ca-certificates as root) and leave sudo out.
For apt, fetch the key to the place the source names, check its fingerprint, then add the source:
sudo curl -fsSL -o /usr/share/keyrings/bravebot-archive-keyring.gpg \
https://bravebot-apt-release.s3.brave.com/bravebot-archive-keyring.gpg
gpg --show-keys --with-fingerprint /usr/share/keyrings/bravebot-archive-keyring.gpg
sudo curl -fsSL -o /etc/apt/sources.list.d/bravebot.sources \
https://bravebot-apt-release.s3.brave.com/bravebot.sources
sudo apt update
sudo apt install bravebot
The fingerprint gpg prints has to be the one above.
For dnf:
sudo curl -fsSL -o /etc/yum.repos.d/bravebot.repo \
https://bravebot-rpm-release.s3.brave.com/bravebot.repo
sudo dnf install bravebot
The first install asks whether to import the key, and shows its fingerprint. Accept only the one
above. The repository file sets gpgcheck=1, so dnf checks the signature on each package against
that key.
A package installed this way is updated with sudo apt update && sudo apt upgrade bravebot or
sudo dnf upgrade bravebot. The startup notice gives the same line for a copy one of them
installed.
On Windows there is a PowerShell script, for a machine with no Node on it. It needs no Administrator:
irm https://raw.githubusercontent.com/brave/bravebot/main/install.ps1 | iex
It fetches the newest release for the architecture your PowerShell reports, checks it against the
published checksum, and checks that the binary's Authenticode signature is valid and was made by Brave Software, Inc.. It writes nothing if either check fails. It puts bravebot.exe in
%LOCALAPPDATA%\Programs\bravebot, and INSTALL_DIR puts it somewhere else:
$env:INSTALL_DIR = "$HOME\bin"; irm https://raw.githubusercontent.com/brave/bravebot/main/install.ps1 | iex
It adds the directory to the end of your user PATH, keeping every other entry as it was, and to
the PowerShell session it ran in, so bravebot runs by name there at once and in terminals you open
afterwards. A directory already on your PATH is not added again. To keep your PATH as it is, set
BRAVEBOT_NO_MODIFY_PATH to anything before the line, and the script names the directory for you to
add yourself:
$env:BRAVEBOT_NO_MODIFY_PATH = "1"; irm https://raw.githubusercontent.com/brave/bravebot/main/install.ps1 | iex
To install a release other than the newest, run the script as a script block and give it a version.
It takes three numbers, with or without a leading v, and checks that release exactly as it checks
the newest:
& ([scriptblock]::Create((irm https://raw.githubusercontent.com/brave/bravebot/main/install.ps1))) 1.2.3
Running the first line again is how an install made this way is updated. The script records where it
put the binary in .bravebot\installed-by-powershell under your profile directory, so a second run
with no directory named replaces that one. Windows may not let a bravebot.exe that is running be
replaced. The script then installs nothing and says so: close every session of it and run the line
again. The script needs PowerShell on Windows, since the signature check is
Get-AuthenticodeSignature, and in any other PowerShell it installs nothing.
Check a download by hand
The installers check the binary before they write it, and refuse when it does not verify. The one
exception is install.sh on Linux with no gpg and BRAVEBOT_ALLOW_MISSING_GPG=1 set, which
checks only the checksum. To check a release yourself, download the asset for your platform from
the releases page, then:
On macOS, the binary has to be signed by Brave's Developer ID team (KL8N8XSYF4) and accepted by
Gatekeeper. Both commands print nothing when they succeed:
codesign --verify --deep --strict \
-R '=anchor apple generic and certificate leaf[subject.OU] = "KL8N8XSYF4"' bravebot-darwin-arm64
spctl -a -t install bravebot-darwin-arm64
On Windows, in PowerShell, Status has to be Valid and the signer Brave Software, Inc.:
Get-AuthenticodeSignature .\bravebot-windows-amd64.exe |
Format-List Status, @{ n = 'Signer'; e = { $_.SignerCertificate.GetNameInfo('SimpleName', $false) } }
On Linux the binary carries no signature. Its .sha256 file is signed, and the signature has to
be from the key whose fingerprint is 13F28F0405C49B0B232DBA1BC1E827646A2DE416. The installers carry
that key themselves; the same key is published at
https://brave-browser-downloads.s3.brave.com/keys/bravebot-release.asc. With the asset, its
.sha256 and its .sha256.asc in the current directory:
export GNUPGHOME="$(mktemp -d)"
curl -fsSL https://brave-browser-downloads.s3.brave.com/keys/bravebot-release.asc | gpg --import
gpg --fingerprint 13F28F0405C49B0B232DBA1BC1E827646A2DE416
gpg --verify bravebot-linux-amd64.sha256.asc bravebot-linux-amd64.sha256
echo "$(cat bravebot-linux-amd64.sha256) bravebot-linux-amd64" | sha256sum --check
gpg --verify has to say Good signature from a key with that fingerprint, and sha256sum has
to say OK.
Check the configuration
Configuration is baked into the released binary, so there is nothing to set up. Check what it will actually use:
bravebot doctor
configuration OK
endpoint https://ai-chat.bsg.brave.com/v1/chat/completions
premium https://ai-gateway-api.bsg.brave.com/v1/chat/completions, without a premium key, so requests go to the endpoint above
key id …
model automatic-bravebot (default)
key … (never transmitted)
state directory ~/.bravebot, from HOME
confinement …
network
trust roots built in (SSL_CERT_FILE, SSL_CERT_DIR names others)
proxy none (HTTPS_PROXY, HTTP_PROXY names one, in upper case or lower)
It names the state directory it resolved, or says there is none, why, and what is not kept without
one: with no state directory there are no settings of your own, no session to resume, no prompt
history and no skills. The network section names the trust roots in force, the proxy, and the hosts
it is not used for, which is the first place to look when every request fails with an unknown issuer.
A build with no model service configured does not start work at all. It says so and lists the ways to
set one up, each naming what to type or write, rather than running against an endpoint that will not
serve it. doctor says the same and fails. See
Configuration.
Staying current
A session that opens on a version something newer has replaced says so, once, under the trust
question, and gives the line that updates the copy you are running. The notice names the version you
are running rather than the newer one, which may have moved by the time you update: the npm command for an npm
install, the script again for a script install, the PowerShell script again for a PowerShell script
install, brew upgrade --cask bravebot for a copy a Homebrew cask installed, winget upgrade Brave.Bravebot for one WinGet installed, sudo apt update && sudo apt upgrade bravebot for one apt
installed and sudo dnf upgrade bravebot for one dnf installed. Homebrew and WinGet copies are
recognised by the directory the manager keeps them in. An apt or dnf copy is the binary at
/usr/bin/bravebot when the package manager's own files say it put it there: for apt, the list
dpkg keeps of the bravebot package, and for dnf, an rpm database and the bravebot.repo file from
the install steps above. A binary at that path that those files do not account for is told nothing,
and so is a build from source, since none of those lines would update one. A package can arrive after the release it follows, and
until it does the manager says there is nothing to upgrade.
Nothing about it waits. The notice comes from an answer an earlier launch wrote down, and the request that refreshes it, at most one an hour whether or not it learned anything, runs behind the session and is for the next one. So a first run says nothing, and a release is announced on the launch after the one that first asks for it.
Every way this can fail is silence: no network, a registry that will not answer, an answer of an unexpected shape. A registry that cannot be reached today does not withdraw a version it announced earlier, so the notice keeps showing until the registry answers with something else. A version that is not three numbers is never announced either, release candidates included. An incognito session still reads an answer an ordinary session left, and neither records one nor asks. A launch that cannot write the record of its last check, because there is no home directory or the state directory is not writable, does not ask the registry at all.
The desktop app has no command that updates it, so it is told through a link. When the check has
recorded a newer release, the sidebar shows a notice naming the version you are running, with a
Download link to the latest release page. Dismissing the notice hides it for as long as you run that version. Help ▸ Update Status… opens About, which says whether you are
up to date as of the day of the last check, or "Couldn't check recently" with that day when the last
answer is more than seven days old. A stale answer shows no notice in the sidebar. The same
updateCheck setting that turns off the terminal's line turns off the
check, and a project's settings file cannot.
Uninstall
Remove it the way it was installed.
An apt or dnf install goes with the package manager. ~/.bravebot is kept, as for every route:
sudo apt remove bravebot
sudo dnf remove bravebot
An npm install goes with npm:
npm uninstall -g @brave/bravebot
A script install is one binary, and the script wrote down where it put it:
cat ~/.bravebot/installed-by
That file holds the full path. It is /usr/local/bin/bravebot unless INSTALL_DIR named somewhere
else, and a machine with no home directory has no record to read. Remove that path, with sudo where
the directory is not yours to write to:
sudo rm /usr/local/bin/bravebot
A PowerShell script install is one binary as well, and the script wrote down where it put it:
Get-Content "$env:USERPROFILE\.bravebot\installed-by-powershell"
The file is under the directory HOME names where that is set, which is where bravebot keeps its
state directory too, so use $env:HOME in its place there. It holds the full path of bravebot.exe, which is under %LOCALAPPDATA%\Programs\bravebot
unless INSTALL_DIR named somewhere else. Remove bravebot.exe at that path, and the directory
that held it if nothing else is in it. The script added that directory to your user PATH unless
BRAVEBOT_NO_MODIFY_PATH was set, so remove that entry too.
No route touches ~/.bravebot. It holds your settings, prompt history, session records, themes,
MCP declarations and any stored sign-ins, so removing the binary leaves all of that for a later
install to find. To remove it too:
rm -rf ~/.bravebot
Two things are added by hand and are removed by hand: an eval "$(bravebot completion …)" or
eval "$(bravebot shell-init …)" line in ~/.bashrc, ~/.zshrc or ~/.config/fish/config.fish,
and ~/.config/fish/completions/bravebot.fish where a fish completion was written there. See
completion and shell-init.