Skip to content

Memoh CLI

The Memoh CLI (memoh) is a command-line tool for managing bots, channels, providers, models, schedules, and chatting with bots. It talks to a running Memoh server via its API.

Installation

The CLI is part of the Memoh monorepo. Install from source:

bash
git clone https://github.com/memohai/Memoh.git
cd Memoh
pnpm install

Run the CLI:

bash
cd packages/cli
pnpm start -- --help

To use memoh as a global command:

bash
cd packages/cli
pnpm build
pnpm link --global
memoh --help

Ensure your Memoh server is running (see Docker installation) and the API is reachable at the configured host/port (default: 127.0.0.1:8080).

Configuration

The CLI stores config in ~/.memoh/config.toml and auth token in ~/.memoh/token.json. Use memoh config to view and memoh config set to change host/port.

Commands

CommandDescription
loginLog in to the Memoh server
logoutLog out and clear token
whoamiShow current user
configShow or update CLI config (host, port)
providerList, create, delete LLM providers
modelList, create, delete models
botList, create, update, delete bots; chat; set model
channelList channels; get/set bot channel config; get/set user binding
scheduleList, create, update, toggle, delete bot schedules
chatInteractive chat with a bot (default command)
tuiTerminal UI chat session
versionShow CLI version

Most commands require authentication. Run memoh login first.

Published under AGPLv3