Skip to content

Configuration

Config File

Settings live in ~/.mddir.yml. Run mddir config to open it in your editor.

If the file doesn't exist, it's created with default values when you first run mddir config.

Options

OptionDefaultDescription
base_dir~/.mddirWhere collections are stored
port7768Web UI server port
editor$EDITOR or viEditor used by mddir config
user_agentChrome UA stringUser-Agent header sent with all HTTP requests

Example Config

yaml
base_dir: ~/.mddir
port: 7768
editor: vim
user_agent: "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36"

Environment Variables

VariableUsed by
$EDITORFallback editor for mddir config (if not set in config file)

Notes

  • The user_agent defaults to a standard Chrome browser string. Many sites block generic bot User-Agents or serve degraded content, so a real browser UA avoids unnecessary friction.
  • If $EDITOR is not set and no editor is configured, mddir falls back to vi.

Released under the MIT License.