58API Help Center58API Help Center
User GuideAI ApplicationsAPI DocumentationHelp & Support

Memoh - Containerized AI Agent Platform

Memoh integration guide — Connect the self-hosted containerized AI agent platform to 58API, creating AI bots with long-term memory for Telegram, Discord, Lark, QQ, WeChat, and more.

Memoh is an open-source, self-hosted AI agent platform where each bot runs in its own isolated container with persistent memory and a dedicated filesystem. It supports 9 channels including Telegram, Discord, Lark (Feishu), QQ, Matrix, WeCom, WeChat, Email, and a built-in Web UI, along with MCP tool calling, browser automation, scheduled tasks, and other rich agent capabilities.

Key Features

  • Containerized Isolation: Each bot runs in its own containerd container with a dedicated filesystem and network, supporting snapshots and data import/export
  • Memory Engine: LLM-driven fact extraction, hybrid retrieval (dense + sparse + BM25), 24-hour context loading, memory compaction and rebuild
  • Multi-Channel Support: Telegram, Discord, Lark (Feishu), QQ, Matrix, WeCom, WeChat, Email, Web UI
  • MCP Support: Full MCP protocol support (HTTP / SSE / Stdio / OAuth), with independent MCP connection management per bot
  • Browser Automation: Built-in headless browser powered by Playwright, supporting web browsing, form filling, screenshots, and more
  • Web Dashboard: Modern management interface built with Vue 3 + Tailwind CSS, featuring streaming chat, tool call visualization, file management, and more

Quick Installation

Memoh is deployed via Docker. One-click install (requires Docker):

curl -fsSL https://memoh.sh | sh

Run it as a regular user and do not add sudo (the installer exits with an error when run as root; it uses sudo for docker commands on its own only when Docker requires it). If pulling images is slow in mainland China, use: curl -fsSL https://memoh.sh | USE_CN_MIRROR=true sh

Or install manually:

git clone --depth 1 --recurse-submodules --shallow-submodules https://github.com/felinics/Memoh.git
cd Memoh
cp conf/app.docker.toml config.toml
# Edit config.toml: be sure to change admin.password and auth.jwt_secret
export MEMOH_INTERNAL_RPC_SHARED_SECRET="$(openssl rand -hex 32)"   # Save this value; recreating the containers later requires the same value
docker compose up -d

If your user is not in the docker group, use sudo -E docker compose up -d (-E keeps the variable exported above; plain sudo drops it and startup fails). If you changed postgres.password in config.toml, also run export POSTGRES_PASSWORD=the-same-password first.

After startup, visit http://localhost:8082. One-click install: the username is admin and the password is the random password shown during installation (the installer prints Admin login: admin / ... at the end, so note it down). Manual install: the default is admin / admin123; change it in config.toml first.

58API Integration

Memoh supports any OpenAI-compatible model provider, allowing you to use 58API to centrally manage and access various AI model services.

Configuration Steps

Obtain a 58API API Key

After registering and logging in to 58API, click "Console" at the top, open "API Keys" in the left sidebar, and click "Create API Key" in the upper-right corner. Choosing the auto group is recommended. Then click "Create".

Once created, click the copy button to copy the generated API Key.

copy-api-key

Add a Model Provider in Memoh

After logging in to Memoh, open Models in the sidebar, click Add Provider, then search for and select 58API in the template list (Client Type: OpenAI Completions; if it is not in the list, it has already been added, so open the existing 58API provider on the left). Fill in:

  • Base URL: Replace the template's example address with https://api.58api.net/v1 (it must include /v1)
  • API Key: Paste the API Key copied from 58API

Click Save Changes, optionally click Test Connection to check connectivity, and make sure the Enable toggle in the upper-right corner is on.

switch-to-58API-provider

The screenshot shows an older interface; follow the steps above. The Enable toggle is off in the screenshot, so make sure to turn it on.

Import and Enable Models

Click Import Models and select the models you need (for example gpt-6.1-sol, claude-sonnet-5-5, deepseek-v4.1-flash). Note: bulk-imported models are disabled by default. Turn on the enable toggle for each model you want in the model list, otherwise the bot settings will show No models available.

Configure a Model for Your Bot

Go to Bot settings → General, select the 58API model you just enabled under Chat Model, and save.

set_chat_model

The screenshot shows an older interface: if the Chat Model dropdown shows No models available, the imported models are not enabled yet. Turn on their enable toggle in the model list first.

You have now successfully configured 58API as the model provider for Memoh. You can chat with AI bots through any of Memoh's channels (Telegram, Discord, Lark, etc.), and all requests will be routed through 58API.