MemWalConfig
Used by:
MemWal.create(config)withMemWal(model, options)
| Field | Required | Notes |
|---|---|---|
key | yes | Delegate private key in hex |
accountId | yes | MemWalAccount object ID on Sui |
serverUrl | no | Relayer URL. Default: http://localhost:8000 |
namespace | no | Default memory boundary. Default: "default" |
MemWalManualConfig
Used by:
MemWalManual.create(config)
| Field | Required | Notes |
|---|---|---|
key | yes | Delegate private key in hex |
serverUrl | no | Relayer URL |
embeddingApiKey | yes | OpenAI/OpenRouter-compatible embedding key |
embeddingApiBase | no | Default: https://api.openai.com/v1 |
embeddingModel | no | Default: text-embedding-3-small |
packageId | yes | MemWal package ID on Sui |
accountId | yes | MemWalAccount object ID |
namespace | no | Default namespace |
| Field | Required | Notes |
|---|---|---|
suiPrivateKey | one of two | Use for local signing |
walletSigner | one of two | Use a connected browser wallet instead |
suiClient | no | Optional pre-configured Sui client |
| Field | Required | Notes |
|---|---|---|
suiNetwork | no | testnet or mainnet. Default: mainnet |
sealKeyServers | no | Override built-in SEAL key server object IDs for the selected network |
walrusEpochs | no | Default: 50 |
walrusAggregatorUrl | no | Walrus download endpoint. Defaults follow suiNetwork |
walrusPublisherUrl | no | Walrus upload endpoint. Defaults follow suiNetwork |
WithMemWalOptions
withMemWal(model, options) accepts all MemWalConfig fields plus:
| Field | Required | Notes |
|---|---|---|
maxMemories | no | Default: 5 |
autoSave | no | Default: true |
minRelevance | no | Default: 0.3 |
debug | no | Default: false |
Rules That Matter
namespacedefaults to"default"when omitted.MemWalis the default relayer-handled path.MemWalManualis the manual client path, but it still uses the relayer for registration, search, and restore.withMemWalbuilds on top ofMemWal, so it uses the same relayer-backed config shape.MemWalManualnow defaults tomainnetnetwork settings unless you passsuiNetwork: "testnet".sealKeyServerslets the client override the built-in SEAL key server list for the selected network.