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 installRun the CLI:
bash
cd packages/cli
pnpm start -- --helpTo use memoh as a global command:
bash
cd packages/cli
pnpm build
pnpm link --global
memoh --helpEnsure 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
| Command | Description |
|---|---|
| login | Log in to the Memoh server |
| logout | Log out and clear token |
| whoami | Show current user |
| config | Show or update CLI config (host, port) |
| provider | List, create, delete LLM providers |
| model | List, create, delete models |
| bot | List, create, update, delete bots; chat; set model |
| channel | List channels; get/set bot channel config; get/set user binding |
| schedule | List, create, update, toggle, delete bot schedules |
| chat | Interactive chat with a bot (default command) |
| tui | Terminal UI chat session |
| version | Show CLI version |
Most commands require authentication. Run memoh login first.
