Skip to content
AgentTx

Configuration

Every server flag and environment variable, with defaults.

1 min readSynced from mainUpdated Sep 15, 2026

Every setting can be passed as a command-line flag or an environment variable. Flags take precedence.

Terminal
agenttx --listen-addr 0.0.0.0:50051 --sync-writes --log-format json
# or
AGENTTX_LISTEN_ADDR=0.0.0.0:50051 AGENTTX_SYNC_WRITES=true agenttx

Server

FlagEnvironment variableDefaultDescription
--listen-addrAGENTTX_LISTEN_ADDR127.0.0.1:50051gRPC bind address
--log-formatAGENTTX_LOG_FORMATtexttext or json; level via RUST_LOG

Storage

FlagEnvironment variableDefaultDescription
--data-dirAGENTTX_DATA_DIRdata/rocksdbRocksDB directory
--sync-writesAGENTTX_SYNC_WRITESfalsefsync the WAL on every write
--fs-rootAGENTTX_FS_ROOTdata/sandboxsandbox for fs.* tools
--outbox-pathAGENTTX_OUTBOX_PATHdata/outbox.jsonlcommitted non-reversible effects

Rollback policy

FlagEnvironment variableDefaultDescription
--max-local-depthAGENTTX_MAX_LOCAL_DEPTH2local backtrack depth D (0–16)
--max-global-resetsAGENTTX_MAX_GLOBAL_RESETS1resets before abort (0–16)
--replay-budget-factorAGENTTX_REPLAY_BUDGET_FACTOR2.0c in c·N·⌈log₂(N+1)⌉

Clients can override these per transaction. See Rollback strategies.

Execution

FlagEnvironment variableDefaultDescription
--step-timeout-msAGENTTX_STEP_TIMEOUT_MS30000per-tool deadline
--tx-idle-timeout-secsAGENTTX_TX_IDLE_TIMEOUT_SECS900abort idle transactions; 0 disables
--compensation-retriesAGENTTX_COMPENSATION_RETRIES3attempts per undo action
--max-constraintsAGENTTX_MAX_CONSTRAINTS32aggregated hints kept (oldest evicted first)

Validation

The server refuses to start on invalid combinations: a zero timeout, zero compensation retries, zero max constraints, or policy values out of range.