Skip to main content

On-Prem Configuration

The on-prem wizard wires sensible defaults, but every value is editable. This page is the reference for where each setting lives, what controls it, and how to change it after install.

Configuration Surfaces

On-prem reads from three places. They are evaluated in this order — later sources override earlier ones:
  1. Environment variables (or a project .env) — highest precedence.
  2. ~/.memanto/on-prem/state.json — set by the on-prem onboarding wizard.
  3. Built-in defaults in Memanto’s Settings model.
The shared ~/.memanto/config.yaml is owned by the cloud backend; the on-prem wizard does not write into it. The only config.yaml key on-prem touches is backend: on-prem (so subsequent CLI runs know which backend to dispatch to).

Environment Variables

These are the on-prem-relevant variables in Settings. Defaults shown.

Setting Env Vars

For a single command:
In a project .env (loaded automatically):
Globally for your shell (Linux/macOS):
On Windows PowerShell:

On-Prem State File

~/.memanto/on-prem/state.json is the source of truth for on-prem configuration. It is written by the wizard and read by both the CLI and the embedded server. Example contents:
You can edit this file by hand. After saving, restart memanto serve (or run any CLI command) to reload.

Moorcheh Server Config

~/.moorcheh/config.json is owned by the moorcheh-client package. The Memanto wizard writes the full embedding + LLM block there before calling moorcheh up, so the on-prem server has both ready on first boot. Schema:
To switch the on-prem server to a different provider after install:
  1. Stop the stack: moorcheh down.
  2. Edit ~/.moorcheh/config.json (or use moorcheh configure interactively).
  3. Restart: moorcheh up.
  4. Update ~/.memanto/on-prem/state.json to match (embedding_provider, llm_model, etc.) — Memanto reads its model id from there.

Provider Reference

  • Embedding model: nomic-embed-text (default; ~270 MB).
  • LLM model: qwen2.5 (default; ~4.7 GB) — change with any ollama pull-able model.
  • API key: none.
  • Where it runs: sibling Docker container started by moorcheh up.

OpenAI

  • Embedding model: text-embedding-3-small (default; cheaper) or text-embedding-3-large.
  • LLM model: gpt-4o-mini (default), gpt-4o, etc.
  • API key: required; stored in ~/.moorcheh/config.json under embedding.api_key / llm.api_key.

Cohere

  • Embedding model: embed-english-v3.0 (default) or embed-multilingual-v3.0.
  • LLM model: command-r-plus-08-2024 (default).
  • API key: required.

Answer & Recall Tuning

These knobs work identically on cloud and on-prem.

Timeouts

Ollama cold-starts can be slow on first call after moorcheh up. Memanto sets the on-prem client’s read timeout to 300 seconds by default so an initial answer.generate doesn’t fail with a ReadTimeout. Override:
After the first call the model stays resident in Ollama’s RAM and subsequent calls return in under seconds.

Disk Locations Recap

Next Steps