$_sudoterm
Reference

Configuration

All configuration lives in ~/.sudoterm/config.json (chmod 600). Restart the daemon (sudoterm restart) after edits.

Example

{
  "version": "1.0.0",
  "port": 7681,
  "host": "127.0.0.1",
  "subdomain": "my-vps",
  "logLevel": "info",
  "shell": "/bin/bash",
  "tmuxSessionName": "sudoterm",
  "ai": {
    "provider": "anthropic",
    "model": "claude-sonnet-4-5"
  }
}

Keys

KeyDefaultDescription
port7681Local port the daemon listens on
host127.0.0.1Bind address — keep loopback unless you know what you're doing
subdomainnullSet automatically by sudoterm subdomain change
logLevelinfodebug / info / warn / error
shell$SHELLShell to spawn for terminal sessions
tmuxSessionNamesudotermtmux session prefix
ai.provideranthropicDefault provider for new conversations
ai.modelclaude-sonnet-4-5Default model

CLI editing

Instead of opening the JSON in an editor:

sudoterm config                              # print current config
sudoterm config get ai.model                 # read one key
sudoterm config set ai.model claude-opus-4-1 # write one key (restart to apply)
sudoterm config path                         # print path

Files in ~/.sudoterm/

FilePurposeMode
config.jsonDaemon config644
data.dbSQLite — users, sessions, notes, AI keys (encrypted)600
master.key32-byte master key for AES-256-GCM600
tunnel.jsonCloudflare Tunnel credentials600
notes/<noteId>/Note image uploads700
← Installationsudoterm CLI →