#OPENCLAW_EXTRA_MOUNTS

1 messages · Page 1 of 1 (latest)

cerulean moth
#

how to mount multiple point

placid graniteBOT
#

To help others find answers, you can mark your question as solved via Right click solution message -> Apps -> ✅ Mark Solution

indigo merlinBOT
#

If you mean Docker extra mounts: you can mount multiple host folders by putting a comma-separated list into OPENCLAW_EXTRA_MOUNTS (no spaces/newlines), then re-run docker-setup.sh:

export OPENCLAW_EXTRA_MOUNTS="$HOME/.codex:/home/node/.codex:ro,$HOME/github:/home/node/github:rw"
./docker-setup.sh

That generates docker-compose.extra.yml. When you run compose, include it:

docker compose -f docker-compose.yml -f docker-compose.extra.yml up -d openclaw-gateway

Docs: https://docs.openclaw.ai/install/docker#extra-mounts


#

If you mean sandbox bind mounts (non-Docker install / sandbox containers): use config:

  • agents.defaults.sandbox.docker.binds: ["host:container:mode", ...]
  • optional per-agent agents.list[].sandbox.docker.binds (merged)

Example:

{
  agents: {
    defaults: {
      sandbox: {
        docker: {
          binds: ["/home/user/source:/source:ro", "/var/data/myapp:/data:ro"],
        },
      },
cerulean moth
#

give me an example about mount mutt config file

indigo merlinBOT
#

Here’s a concrete Docker OPENCLAW_EXTRA_MOUNTS example that mounts your mutt config file into the OpenClaw containers.

Mount ~/.muttrc (single file, read-only)

export OPENCLAW_EXTRA_MOUNTS="$HOME/.muttrc:/home/node/.muttrc:ro"
./docker-setup.sh

Then run compose with the generated extra file:

docker compose -f docker-compose.yml -f docker-compose.extra.yml up -d openclaw-gateway

Mount both ~/.muttrc and ~/.mutt/ (common setup)

#
export OPENCLAW_EXTRA_MOUNTS="$HOME/.muttrc:/home/node/.muttrc:ro,$HOME/.mutt:/home/node/.mutt:ro"
./docker-setup.sh

Notes:

  • No spaces in the list; mounts are comma-separated.
  • Use :ro unless you really need write access.
  • Be careful: mutt configs often include sensitive stuff (SMTP creds, tokens). Prefer mounting a sanitized config if possible.

Docs: https://docs.openclaw.ai/install/docker#extra-mounts

cerulean moth
#

muttrc ?

indigo merlinBOT
#

muttrc is just the configuration file name for the Mutt / NeoMutt email client.

Common locations people use:

  • ~/.muttrc (classic default)
  • ~/.mutt/muttrc (config folder style)
  • ~/.config/mutt/muttrc (XDG-style, more common with neomutt on some distros)

So in the mount examples, I used ~/.muttrc because it’s the most common. If your config lives somewhere else, mount that path instead, e.g.:

export OPENCLAW_EXTRA_MOUNTS="$HOME/.config/mutt/muttrc:/home/node/.config/mutt/muttrc:ro"
./docker-setup.sh

Tip: you can quickly see which one you have with:

#
ls -la ~/.muttrc ~/.mutt/muttrc ~/.config/mutt/muttrc 2>/dev/null
cerulean moth
#

create simple config file for me to place there

indigo merlinBOT
#

Here’s a minimal, safe muttrc you can drop in ~/.muttrc (or ~/.config/mutt/muttrc). It doesn’t include any passwords — it’s mainly to prove the mount works and gives you sane defaults.

File: ~/.muttrc

# Minimal Mutt/NeoMutt config (no credentials)

set realname = "Your Name"
set from     = "you@example.com"
set use_from = yes

set charset  = "utf-8"
set editor   = "nano"
set pager_stop = yes
set quit     = yes
set wait_key = yes
#
# Local mail storage (Maildir)
set mbox_type = Maildir
set folder    = "~/Mail"
set spoolfile = "+INBOX"
set record    = "+Sent"
set postponed = "+Drafts"
set trash     = "+Trash"

# Sorting
set sort = reverse-date
set sort_aux = last-date-received

If you want the folders to exist locally: