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:- Environment variables (or a project
.env) — highest precedence. ~/.memanto/on-prem/state.json— set by the on-prem onboarding wizard.- Built-in defaults in Memanto’s
Settingsmodel.
~/.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 inSettings. Defaults shown.
Setting Env Vars
For a single command:.env (loaded automatically):
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:
- Stop the stack:
moorcheh down. - Edit
~/.moorcheh/config.json(or usemoorcheh configureinteractively). - Restart:
moorcheh up. - Update
~/.memanto/on-prem/state.jsonto match (embedding_provider,llm_model, etc.) — Memanto reads its model id from there.
Provider Reference
Ollama (Local, Recommended for Air-Gap)
- Embedding model:
nomic-embed-text(default; ~270 MB). - LLM model:
qwen2.5(default; ~4.7 GB) — change with anyollama 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) ortext-embedding-3-large. - LLM model:
gpt-4o-mini(default),gpt-4o, etc. - API key: required; stored in
~/.moorcheh/config.jsonunderembedding.api_key/llm.api_key.
Cohere
- Embedding model:
embed-english-v3.0(default) orembed-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 aftermoorcheh 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:
Disk Locations Recap
Next Steps
- Backend Switching — toggle between cloud and on-prem without losing state.
- Self-Hosting Memanto Server — run
memanto serveunder Docker/Compose/systemd. - Kubernetes Deployment — manifests for a clustered on-prem deployment.
- Security & Operations — production hardening checklist.