Configuration
Configure backends with .promd
Promptmd reads YAML config from .promd files.
Where config is loaded from
Configs are merged in this order (later overrides earlier):
~/.promd- Any
.promdfiles in parent directories ./.promd(current directory)
Minimal config
backend: opencodeYou can override config on the command line:
promd weather --backend subprocessOpenCode backend config
backend: opencode
opencode:
model: anthropic/claude-sonnet-4
attach: http://localhost:4096
thinking: false
# continueSession: true
# sessionId: abc123
# fork: true
# agent: my-agent
# variant: high
# format: default
# env:
# OPENCODE_SOMETHING: valueSubprocess backend config
backend: subprocess
subprocess:
command: python3
args:
- ./run_llm.py
# If true, promptmd writes the prompt to stdin.
# If false, the prompt is appended as the last CLI argument.
useStdin: false
# Optional
# cwd: ./somewhere
# env:
# MY_API_KEY: "..."