How to setup Bee CLI (@beeai/cli) on your Ubuntu 24.04 A developer documented setting up Bee's command-line interface (@beeai/cli) on Ubuntu 24.04, installing it via npm or mise and wiring it to GNOME Keyring through the Secret Service D-Bus API so the CLI can store credentials. The setup includes a user-level systemd keyring service, enabling lingering, and authenticating with `bee login --qr`, after which conversation data can be pulled from the terminal with commands like `bee conversations list` and `bee conversations get --json` for use in other tools, including AI harnesses. After attending an AWS re:Invent session AMZ202-R about Bee, I became very interested in it as a note-taking product that I could use through a CLI. Bee is a wearable note-taking device and service that records conversations and makes them available in the Bee app. Bee also provides a command-line interface, @beeai/cli https://docs.bee.computer/docs , for accessing that data from a terminal. That makes it possible to bring Bee conversations into other tools—including AI harnesses. Here’s how I set up Bee CLI on Ubuntu 24.04. Install the CLI with npm: npm install -g @beeai/cli Or use mise: mise use -g npm:@beeai/cli The CLI needs access to a Secret Service keyring to store credentials. On Ubuntu, I used GNOME Keyring. Install GNOME Keyring and the command-line tools for Secret Service: sudo apt install -y gnome-keyring libsecret-tools Start a temporary D-Bus session: dbus-run-session -- bash Inside that shell, unlock GNOME Keyring. Replace the example with your own keyring password; don’t use the example value below: PW='your-keyring-password' 1st letter space is avoiding history printf '%s' "$PW" | gnome-keyring-daemon --unlock --components=secrets unset PW Store a test value and retrieve it: printf '%s' 'test-value' | secret-tool store --label='Test' app keyring-test secret-tool lookup app keyring-test The lookup should print: test-value I also checked that the keyring files had been created: ls ~/.local/share/keyrings/ Then exit the temporary D-Bus session: exit After logging in again, connect to the user D-Bus and unlock GNOME Keyring: export DBUS SESSION BUS ADDRESS="unix:path=$XDG RUNTIME DIR/bus" PW='your-keyring-password' 1st letter space is avoiding history printf '%s' "$PW" | gnome-keyring-daemon --foreground --unlock --components=secrets & unset PW Confirm that the Secret Service login collection is available: busctl --user tree org.freedesktop.secrets | grep /login$ I saw this path in the output: /org/freedesktop/secrets/collection/login To start GNOME Keyring as a user systemd service, create keyring.service : cat << ' EOT ' | SYSTEMD EDITOR=tee systemctl --user edit --full --force keyring.service Unit Description=GNOME Keyring Secret Service Requires=dbus.socket After=dbus.socket Service Type=dbus BusName=org.freedesktop.secrets Environment=DBUS SESSION BUS ADDRESS=unix:path=%t/bus ExecStart=/usr/bin/gnome-keyring-daemon --foreground --unlock --components=secrets StandardInput=file:%h/.config/gnome-keyring/password Restart=on-failure Install WantedBy=default.target EOT This service reads the keyring password from ~/.config/gnome-keyring/password . That file contains a secret, so keep it private and restrict access to it. Stop any already-running keyring daemon, then enable and start the service: pkill -u "$ id -u " -x gnome-keyring-d || true systemctl --user enable --now keyring.service Test Secret Service again: secret-tool lookup app keyring-test The expected output is still: test-value To keep user services running when you’re not logged in, enable lingering and reboot: sudo loginctl enable-linger "$USER" sudo systemctl reboot After the reboot, log in to Bee: bee login --qr Check that the CLI can access your profile: bee me My profile output included my timezone and name. bee status is also available to check the CLI’s authentication status. Bee CLI can retrieve conversation data from the terminal. For example: bee conversations list bee conversations get