Memoh
Use RuToken models in Memoh, the self-hosted containerized AI agent platform with long-term memory.
Memoh is an open-source, self-hosted AI agent platform. Each bot runs in its own container with persistent memory and a dedicated filesystem, and can talk on Telegram, Discord, Lark (Feishu), QQ, Matrix, WeCom, WeChat, Email or the built-in Web UI. It also supports MCP tools, browser automation and scheduled tasks. Docs: docs.memoh.ai, source: GitHub.
Prerequisites
- An API key: open the console, go to API Keys and create a dedicated key (for example, named
Memoh). - Docker installed on the server that will run Memoh.
Installation
curl -fsSL https://memoh.sh | sudo sh
git clone --depth 1 https://github.com/memohai/Memoh.git
cd Memoh
cp conf/app.docker.toml config.toml
# Edit config.toml as needed
sudo docker compose up -d
Open http://localhost:8082 and sign in with the default credentials admin / admin123 (change them afterwards).
Configuration
1. Add a model provider
In the Memoh web dashboard, open the provider management page, add an OpenAI-compatible provider and fill in:
| Field | Value |
|---|---|
| Name | RuToken |
| API Base URL | https://rutoken.ai/v1 |
| API Key | sk-xxxx |
Click Save.
2. Import models
Open the model management page and click auto-import, or add the model IDs you need manually, exactly as shown in the Model Square.
3. Assign a model to a bot
Open the bot settings, find the model section, switch the default chat model to one of the models from the new provider and save.
Verify
Chat with the bot in the Web UI or any connected channel. A reply means the provider works; the request appears in the console under Usage Logs.
Troubleshooting
| Symptom | Fix |
|---|---|
401 / invalid API key |
Copy the full key again; check that it is enabled, not expired and has quota left. |
404 / not found |
The API Base URL must end with /v1. |
| Model not found | Use exact model IDs from the Model Square that the key is allowed to use. |
| Timeout from the container | Make sure the Memoh containers can reach https://rutoken.ai (DNS, firewall, proxy). |