Configuration reference
Stash reads one TOML file for each mount. The parser refuses unknown keys and
values of the wrong type, and names the closest known key. Use
stash configure to edit a file with a wizard, or write it yourself. For the
commands, see the command reference.
Editor support
Section titled “Editor support”schema/stash.schema.json is the JSON
Schema of the file. The unit suite makes it from the types that read the file.
An editor that uses Taplo, such as the Even Better TOML extension for VS Code,
checks and completes a config when the first line names the schema, relative
to the file:
#:schema ./schema/stash.schema.jsonmount_point = "/tmp/stash"The schema checks keys, types, and most rules between keys. Stash also checks the rules that a schema cannot state, for example that each prefetch reads one of the namespaces of its source.
Minimal read-only config
Section titled “Minimal read-only config”mount_point = "/tmp/stash"
[sources.team-memory]kind = "agentcore-memory"arn = "arn:aws:bedrock-agentcore:us-east-1:123456789012:memory/example-memory-0123456789"auth = { sigv4 = {} }This config shows an AgentCore Memory with no write-back, and signs with the AWS credentials of the host. See the read-only, writable, and full examples. The full example has each kind and most keys.
Top-level keys
Section titled “Top-level keys”| Key | Type | Required | Default | Description |
|---|---|---|---|---|
version | integer | no | 1 | The version of the config shape. Stash reads only its own version: another value fails at its line. |
mount_point | string | outside AgentCore Runtime | none | The folder of the mount. See the rules below. AgentCore Runtime ignores it. |
sources | table | no | none | Up to 25 sources, by name. |
refresh_interval_seconds | integer | no | 0 | See the cache. |
expiry_interval_seconds | integer | no | 0 | See the cache. |
cache_max_bytes | integer | no | 1073741824 (1 GiB) | See the cache. |
telemetry | table | no | metrics file only | See [telemetry.export]. |
harnesses | list of strings | no | [] | The harnesses that attach installs into: claude, codex, or kiro, each at most once. With none, attach exits 1. kiro is the Kiro v3 engine. |
extraction | table | no | off | See Note requests. |
mount_point rules, outside AgentCore Runtime:
- It is an absolute POSIX path, with no
~and no template variable. Stash does not expand~or resolve a relative path. - It cannot be inside, or hold,
STASH_DATA_ROOTor the mount point of another mount. - If it exists, it is an empty folder, or a folder of this mount.
stash update cannot change mount_point, cache_max_bytes, or [telemetry]
(stash update).
The cache
Section titled “The cache”refresh_interval_seconds = 1800expiry_interval_seconds = 86400cache_max_bytes = 1073741824| Key | Meaning |
|---|---|
refresh_interval_seconds | Seconds after a fetch when Stash fetches the record again and writes the file again. 0 turns it off: a file changes only when a search or the hydration returns it again. Only a source that can get one record by its ID refreshes. A tool result never refreshes. |
expiry_interval_seconds | Seconds after the last write or read of a file when the file leaves the mount. 0 turns it off. A listing, the hydration, a search, a tool call, or a read in an agent turn starts the clock again. A refresh does not. It applies to each source and to tool results. |
cache_max_bytes | The most bytes that the files of the sources and the tool results hold on disk. When it is full, the least recently used files leave until the cache holds at most 80%, or less when a large new file needs the room. A tool result file over 25% of it (256 MiB by default) is not written. The minimum is 10000000 (10 MB). |
Each source can set its own refresh_interval_seconds and
expiry_interval_seconds, also 0 to turn one off under a top-level value.
The platform clock must be able to add each interval to now.
Stash finds the reads of the agent in the tool calls of each turn that a
harness reports. It can miss a read, so set an expiry longer than the time
between two reads of a file. After a restart, both clocks start from the last
write of the file. An agent finds a file that left again with a search, and a
tool result with a new call. To remove files now, use
stash compact.
[telemetry.export]
Section titled “[telemetry.export]”Each mount writes its metrics to mounts/NAME/metrics/metrics.jsonl in the
data root, as OTLP JSON lines.
Stash compacts the file each day and keeps 14 days. This table also sends the
metrics and the traces to an OpenTelemetry collector, at
{endpoint}/v1/metrics and {endpoint}/v1/traces.
[telemetry.export]endpoint = "https://collector.example.com:4318"timeout_seconds = 10auth = { bearer = { env = "OTLP_TOKEN" } }signals = ["metrics", "traces"]| Key | Type | Required | Default | Description |
|---|---|---|---|---|
endpoint | string | yes | none | The base URL of an OTLP/HTTP collector: https, or http on the loopback. |
timeout_seconds | integer | no | 10 | The time limit of one post, from 1 to 120. |
auth | table | no | { none = {} } | The header of each post. See below. |
signals | list of strings | no | ["metrics", "traces"] | metrics, traces, or both, each once. |
auth | Header |
|---|---|
{ none = {} } | none |
{ bearer = { env = "VAR" } } or { bearer = { file = "/path" } } | Authorization: Bearer <secret> |
{ header = { name = "x-api-key", env = "VAR" } } or { header = { name = "x-api-key", file = "/path" } } | name: <secret> |
env and file follow the rules of secret values. A post
whose secret cannot be read is not sent, and the daemon log says so once. The
metrics file still gets each snapshot.
Each search and tool_call is one trace, with the spans operation (the
root), call (one source), api, and request (one request to a service). A
span holds only stash.mount, stash.operation, stash.source.kind,
stash.source.name, stash.source.operation, and stash.outcome. A span
whose outcome is not ok or unsent has the status Error.
| Metric | Unit | Attributes | Counts |
|---|---|---|---|
stash.operation.requests | {request} | stash.operation, stash.response.class | Operations: search and tool_call. |
stash.operation.duration | s | the same | How long they took. |
stash.backend.requests | {request} | stash.source.kind, stash.source.name, stash.source.operation, stash.response.class | Requests to a service, by API. |
stash.backend.duration | s | the same | How long they took. |
stash.content.retrieved | By | stash.operation, stash.source.kind, stash.source.name | What a source returned. |
stash.content.surfaced | By | the same | What the answer showed of it. |
stash.content.estimated_tokens_deferred | {token} | the same | The estimated tokens that the answer left out. |
stash.content.agent_read | By | stash.source.kind, stash.source.name | The estimated bytes of source files that the agent read. Each tool call that reads a file adds the whole file. The estimate can miss a read or count one that did not happen. |
A tool result with isError counts as 2xx for its backend request, because
the server answered. Its tool_call, or the search of a Gateway source, gets
the class of the failure: a text format that Stash knows gives its kind, so a
bad query is 4xx, and any other text is 5xx
(why).
Sources
Section titled “Sources”Each source is one table, [sources.NAME]. Its kind says what it reads. The
source shows at KIND/NAME/ below the mount point, with a folder for each part
of the kind: [sources.web] of kind gateway.web-search is at
gateway/web-search/web/.
| Kind | Reads |
|---|---|
agentcore-memory | An AgentCore Memory, directly or through a Gateway. |
mcp | The tools of an MCP server. |
plugin | A store that a program serves over the plugin protocol. |
gateway.web-search | The web, through the WebSearch tool of a Gateway. |
gateway.bedrock-knowledge-bases | A Bedrock knowledge base, through the Retrieve tool of a Gateway. |
gateway.aws-context | An AWS Context knowledge graph, through the AgenticRetrieve tool of a Gateway. |
A name has 1 to 255 bytes of ASCII letters, digits, -, _, and .. It is
not ., .., or local. Two sources of one kind whose names differ only in
case, such as Team and team, do not start: a file system that ignores case,
such as the default one on macOS, makes their folders one. An unknown kind is an error that names the closest
kind. The local store is not one of the 25 sources.
Each kind takes these keys:
| Key | Type | Required | Default | Description |
|---|---|---|---|---|
kind | string | yes | none | The kind. |
description | string | no | empty | The description in the _sources/NAME.md page. |
refresh_interval_seconds | integer | no | the top-level value | See the cache. |
expiry_interval_seconds | integer | no | the top-level value | See the cache. |
A key that the kind does not have is an error with the line and path of the
key, for example line 14, sources.team.arm, and the closest key.
Shared keys
Section titled “Shared keys”Endpoint auth
Section titled “Endpoint auth”auth holds exactly one of sigv4, bearer, or none. With no auth, a
source sends no credential, as with none. A Gateway with AWS_IAM or
CUSTOM_JWT inbound auth then refuses each request, and the error says to add
auth.
auth = { sigv4 = {} }auth = { sigv4 = { profile = "my-profile" } }auth = { bearer = { env = "STASH_GATEWAY_TOKEN" } }auth = { bearer = { file = "/home/me/.config/stash/gateway-token" } }auth = { none = {} }| Key | Type | Description |
|---|---|---|
auth.sigv4.profile | string | The AWS profile to sign with. Absent: the default chain of the host. See AWS credentials. |
auth.bearer.env or auth.bearer.file | string | Exactly one: the secret value of the token. Stash sends Authorization: Bearer <token> with each request. |
Secret values
Section titled “Secret values”The config holds the name of a variable or the path of a file, never the secret.
| Form | Rule |
|---|---|
env = "VAR" | A nonempty name. The value comes from the environment of the daemon, which is fixed when it starts. A new value needs stash daemon stop and a new start. Use it for a secret that lives as long as the daemon, as in a container or a CI job. |
file = "/path" | An absolute path with no ~. Stash reads the file for each request, and removes the spaces and line ends around the value. A missing or empty file fails that request. Use it for a token that expires. Write the file atomically (to a temporary file, then rename), and give it mode 600. |
Gateway endpoint
Section titled “Gateway endpoint”The keys of each Gateway source.
| Key | Type | Required | Default | Description |
|---|---|---|---|---|
gateway_url | string | yes | none | The URL of the Gateway, with a path. |
region | string | conditional | from the host | The signing region. SigV4 only. A custom host name with SigV4 needs it. |
auth | table | no | none | Endpoint auth. |
headers | table | no | {} | See Gateway endpoint headers. |
An AgentCore Gateway serves MCP at /mcp, so a URL with no path, such as
https://<id>.gateway.bedrock-agentcore.us-east-1.amazonaws.com, is refused.
The error gives the URL with /mcp. A mount whose stored config has such a URL
fails when the daemon restores it. Fix the URL, and run stash create again.
Gateway endpoint headers
Section titled “Gateway endpoint headers”headers adds headers to each request, for example an identity token that a
Gateway target passes on with allowedRequestHeaders:
headers = { X-ID-Token = { file = "/run/stash/id-token" }, X-Tenant = { env = "TENANT_ID" } }Each key is a header name. Each value is a table with exactly one
secret value, env or file. SigV4 signs each header.
Names are not case-sensitive, so two names that differ only in case are refused. Stash also refuses the names that the request sets itself:
authorization(useauth);accept,user-agent,mcp-session-id, andmcp-protocol-version;- each name that starts with
x-amz-orproxy-; host, the content headers, and the hop-by-hop headers.
AWS credentials
Section titled “AWS credentials”sigv4 | Signs with |
|---|---|
{ profile = "x" } | Profile x only: its static keys, credential_process, a role that it assumes (role_arn with source_profile or credential_source), web identity, or SSO. Never AWS_ACCESS_KEY_ID or instance metadata. A profile that is missing from the AWS config files fails each request, and the error names it. |
{} | The default chain of the host: environment keys, the profile files, web identity, the container credentials endpoint, then instance metadata. On AgentCore Runtime, this is the execution role. |
To assume a role, name a profile that assumes it. For example, on AgentCore
Runtime, ship this file, and set AWS_CONFIG_FILE to its path:
[profile reader]role_arn = arn:aws:iam::123456789012:role/stash-readercredential_source = EcsContainerThe daemon gets a credential once, and again when it is less than five minutes
from expiry. If a refresh fails, the daemon keeps a credential that has not
expired. Static and environment keys do not refresh. For a daemon that runs for
hours, use SSO, assume-role, credential_process, or an instance role. The
daemon gets its environment once, from the command that starts it
(The daemon).
When a source refuses a write-back, for example because a credential expired,
the daemon tries again with backoff. Then it moves the write to the
terminal/ folder of its writer. stash redrive
sends it again.
Local program environment
Section titled “Local program environment”An mcp source with command and a plugin source run a program as your
user. The program gets only these variables of the daemon, when it has them:
PATH, HOME, USER, LOGNAME, SHELL, TERM, LANG, TMPDIR,
HTTP_PROXY, HTTPS_PROXY, and NO_PROXY (also in lowercase). So it does
not get the AWS keys or the tokens of the daemon. It can still read each file
that you can read: run only a program that you trust.
Give it each other variable in env:
| Value | The program gets |
|---|---|
"text" | The text. Use it for a setting, not a secret. |
{ from_env = "NAME" } | The variable NAME of the daemon, fixed when the daemon starts. |
{ file = "/path" } | The contents of the file, trimmed. An absolute path with no ~. |
{ command = ["program", "arg"] } | What the program prints, trimmed, such as a secret from a password manager. A program that fails, prints nothing, or runs more than 30 seconds stops the start, and the error does not show its output. |
Stash reads each value when it starts the program. A new value reaches the program at its next start. A variable that is not set, or a file that cannot be read, stops the start, and the error names the variable.
Write-back
Section titled “Write-back”Write-back is off unless a source has a write table. Each table turns on one
write, and each works without the other:
[sources.team-memory]kind = "agentcore-memory"arn = "arn:aws:bedrock-agentcore:us-east-1:123456789012:memory/example-memory-0123456789"auth = { sigv4 = {} }write.trajectory.actor = "alice" # write each turn back, as alicewrite.notes.namespace = "/notes/alice/" # keep a copy of each note here| Key | Kinds | Description |
|---|---|---|
write.trajectory.actor | agentcore-memory | Sends each turn and tool call of the agent, as this actor. |
write.notes.namespace | agentcore-memory | Keeps a copy of each note of the local store in this namespace. |
write.trajectory = {} | plugin | Sends each turn to the plugin. |
No other kind writes back. Each value can be a literal or a template. More than
one source can write back, and each gets each turn. To change a write table
of a mount, run stash update.
A notes namespace is one or more parts of letters, digits, -, _, and :,
each after a /, then a last /, for example /notes/alice/. A part does not
start or end with :, or hold ::. It has at most 1,024 characters.
The source keeps one record for each note, and each new text of the note updates
it. The record has the metadata stash_key = "STORE_ID:SESSION/SLUG", or
"STORE_ID:SLUG" for a note with no session. The mount that saved the note
shows it only as its file in local/memories/. Another mount shows the copy as
any record.
Each user prompt is a USER turn, and each reply is an ASSISTANT turn, in
plain text. Thinking blocks and empty messages are not sent. Each tool request
and result is a TOOL turn, as one JSON object:
{"type":"tool_use","name":"Bash","input":{"command":"ls"}}{"type":"tool_result","name":"Bash","is_error":false,"output":"Cargo.toml\ncrates"}A tool result holds all of the text that the tool returned, for example the
whole text of a file that the agent read. Claude Code results drop images and
tool references. A Codex result has no is_error. A turn over 100,000 bytes
goes in more than one piece. Write back only to a memory that may hold the
files and the command output of the session.
agentcore-memory
Section titled “agentcore-memory”[sources.team-memory]kind = "agentcore-memory"description = "Team long-term memory"arn = "arn:aws:bedrock-agentcore:us-east-1:123456789012:memory/example-memory-0123456789"write.trajectory.actor = "alice"namespaces = ["/actor/alice/*"]auth = { sigv4 = { profile = "my-profile" } }| Key | Type | Required | Default | Description |
|---|---|---|---|---|
arn | string | yes | none | arn:aws:bedrock-agentcore:REGION:ACCOUNT:memory/MEMORY_ID. |
namespaces | list of strings | no | ["/*"] | See Memory namespaces. |
prefetch | list of tables | no | recent records | See Memory prefetch. |
write | table | no | none | See Write-back. |
endpoint | string | conditional | the AWS SDK endpoint | The URL of each call: https, or http on the loopback. Required with bearer or none. |
region | string | no | see below | The region of the calls. Only with sigv4. |
auth | table | conditional | none | Endpoint auth. The Memory API needs sigv4. |
headers | table | no | {} | Headers. Only with bearer or none. |
The region is region; else the region that the endpoint host names, such as
us-east-1 in bedrock-agentcore.us-east-1.amazonaws.com; else us-east-1
for a loopback host; else the region of arn.
sigv4uses the AWS SDK. With noendpoint, the SDK uses the endpoint of the region: the regional endpoint,AWS_ENDPOINT_URL_BEDROCK_AGENTCORE,AWS_ENDPOINT_URL, or theendpoint_urlof the profile.bearerandnonesend each call over HTTP toendpoint.
Stash refuses a call to the Memory API without sigv4: no endpoint, or an
endpoint with the host bedrock-agentcore.<region>.amazonaws.com.
A memory through the agentcore-memory connector target of a Gateway takes the
Gateway URL, then the target name:
[sources.org-memory]kind = "agentcore-memory"arn = "arn:aws:bedrock-agentcore:us-east-1:123456789012:memory/org-memory-9876543210"endpoint = "https://example.gateway.bedrock-agentcore.us-east-1.amazonaws.com/mcp/org-memory"auth = { bearer = { env = "STASH_GATEWAY_TOKEN" } }A memory through a VPC endpoint signs with SigV4:
endpoint = "https://vpce-0123456789abcdef0.bedrock-agentcore.us-east-1.vpce.amazonaws.com"auth = { sigv4 = {} }Memory namespaces
Section titled “Memory namespaces”namespaces limits what one memory source shows and searches.
namespaces = ["/actor/alice/notes/*", "/actor/alice/facts/*"]- A list has one to five entries.
- An entry that ends in
/*is a subtree. One without/*is one namespace. A wildcard is allowed only as the last/*. The leading/is optional. - Entries do not overlap:
/actor/alice/*overlaps/actor/alice/facts/*.
A search at the folder of the source, or a /* search above a namespace,
searches each namespace below it, and keeps the best --top-k hits. With the
example,
--path '/agentcore-memory/team-memory/actor/alice/*' searches both entries.
A path outside each entry, such as /agentcore-memory/team-memory/actor/bob/*,
fails, and the error names the namespaces.
Memory prefetch
Section titled “Memory prefetch”prefetch selects the records to load when a mount starts. With no prefetch,
Stash lists the records of the last seven days in each namespace, up to 25.
prefetch = [] turns off the listings. Stash still runs its built-in profile
queries.
[[sources.team-memory.prefetch]]from = "/actor/alice/facts/*"query = "deployment patterns"limit = 5where = [ { field = "createdAt", op = "gt", value = "now-30d" },]| Key | Type | Required | Default | Description |
|---|---|---|---|---|
from | string | yes | none | The namespace scope. It must be in one of namespaces. |
query | string | no | none: a listing | A semantic query. |
limit | integer | no | no limit for a listing, 10 for a query | The most records, at least 1. |
where | list of tables | no | none | Server-side filters. |
where key | Values |
|---|---|
field | createdAt |
op | gt, gte, lt, lte, eq |
value | An RFC 3339 time, or now-Nd, now-Nh, or now-Nm with N a positive whole number. Stash resolves a window at each mount start. |
Gateway sources
Section titled “Gateway sources”A gateway.CONNECTOR source uses one AgentCore Gateway connector target. When
the source starts, Stash lists the tools of the target. Each tool is a file
under _tools/, and stash tool call can call
it.
[sources.web-search]kind = "gateway.web-search"description = "Live web search"gateway_url = "https://example.gateway.bedrock-agentcore.us-east-1.amazonaws.com/mcp"target = "web-search-tool"auth = { sigv4 = { profile = "my-profile" } }Each connector takes the keys of a Gateway endpoint, and these:
| Key | Type | Required | Default | Description |
|---|---|---|---|---|
target | string | yes | none | The connector target, with no whitespace, /, ?, or #. |
protocol_version | string | no | 2025-11-25 | The MCP version that the client sends. Set it only when the target needs one. |
| Kind | Own keys |
|---|---|
gateway.web-search | fetch_pages (boolean, default true): fetch each https page that a result cites, and write it as markdown in the file of the hit. If a fetch fails, the file holds the passages of the search. |
gateway.bedrock-knowledge-bases | None. The target names the knowledge base and sets the number of results. |
gateway.aws-context | context_graph_id (string, required): the knowledge graph to search. The target must take the USER and ASSISTANT roles in AgenticRetrieve. |
An mcp source uses a Model Context Protocol (MCP) server: a remote server at
url over Streamable HTTP, or a local server that Stash runs as command over
stdin and stdout. When the source starts, Stash lists the tools. Each tool is a
file under mcp/NAME/_tools/ that holds its JSON schema.
[sources.issues]kind = "mcp"description = "Issue tracker tools"url = "https://mcp.example.com/mcp"auth = { bearer = { env = "ISSUES_MCP_TOKEN" } }
[sources.github]kind = "mcp"description = "GitHub tools"command = "npx"args = ["-y", "@modelcontextprotocol/server-github"]env = { GITHUB_PERSONAL_ACCESS_TOKEN = { file = "/home/me/.config/stash/gh-token" }, LOG_LEVEL = "info" }| Key | Type | Required | Default | Description |
|---|---|---|---|---|
url | string | one of url and command | none | The MCP endpoint of a remote server: https, or http on the loopback. |
command | string | one of url and command | none | The program of a local server, such as uvx or npx. |
args | list of strings | no | [] | The arguments of command. |
env | table | no | {} | command only. See Local program environment. |
auth | table | no | none | url only. Endpoint auth. sigv4 signs for the bedrock-agentcore service, for a server on AgentCore. |
region | string | conditional | from the host | url with sigv4 only, as for a Gateway endpoint. |
headers | table | no | {} | url only. Headers. |
protocol_version | string | no | 2025-11-25 | The MCP version that the client asks for. |
A command and args are the ones that the README of a server gives for
other MCP clients. Stash starts the program when the mount starts, and stops it
when the mount stops. Each source runs its own copy, with the data root as its
working folder. Its stderr goes to the daemon log. If it exits, the next
request starts it again. A stash tool call in flight is not sent again.
A local server can add tools after its first list. If it says that it sends
notifications/tools/list_changed, Stash lists the tools again after each
one, until none comes for 3 seconds, or 15 seconds after the first list. So
the source starts at least 3 seconds later. A tool added after that shows at
the next mount start. A url server gets one list.
The source has tools only. It cannot list records, search, or write back. If
the server cannot list its tools, only this source fails, and its
_sources/NAME.md page gives the reason.
plugin
Section titled “plugin”A plugin source reads a store that a plugin program serves over the
plugin protocol. Stash starts the program when the mount starts,
and stops it when the mount stops.
[sources.memories]kind = "plugin"description = "Alice's long-term memories in mem0"plugin = "mem0"settings = { user_id = "alice" }env = { MEM0_API_KEY = { command = ["op", "read", "op://me/mem0/api-key"] } }write.trajectory = {}| Key | Type | Required | Default | Description |
|---|---|---|---|---|
plugin | string | yes | none | The plugin name, of a-z, 0-9, -, and _. Stash runs stash-source-<plugin> from the PATH of the daemon. |
command | list of strings | no | [] | The program and its arguments to run instead, such as ["python3", "plugin.py"]. |
settings | table | no | {} | The keys of the plugin. Stash gives them to the plugin as they are. |
env | table | no | {} | See Local program environment. |
write.trajectory | table | no | none | {}: send each turn to the plugin. The plugin settings say where. |
Stash reads env again at each start of the plugin. A plugin starts again
after it exits, and after it does not answer in 30 seconds. write.trajectory
needs a plugin that ingests. Otherwise only this source fails to start.
The local store
Section titled “The local store”Each mount has a local store, with no config and no AWS account. Each note is
one read-only file, MOUNT_POINT/local/memories/SESSION/SLUG.md, or
MOUNT_POINT/local/memories/SLUG.md with no session. The file is the only
copy. Stash writes it at each save, and does not track it after that. The
cache does not count notes, and a note never refreshes or expires.
stash note save gives the rules of a note.
The first start of the store writes a random ID to
STASH_DATA_ROOT/mounts/NAME/store-id. The key of each copy of a note starts
with it, so two hosts with the same mount name keep apart.
MOUNT_POINT/local/scratchpad/ is the one folder of the mount that the agent
writes in. Stash does not track its files. stash delete --remove-data
removes the notes and the scratchpad with the mount point.
Note requests
Section titled “Note requests”[extraction]enabled = true| Key | Type | Required | Default | Description |
|---|---|---|---|---|
enabled | boolean | no | false | The hooks ask the agent for a note when one is due. |
With [extraction], the mount has the notes folder local/memories/,
stash note save and the save_note tool of stash mcp work, and the
steering tells the agent how to take notes.
Note requests says when a note is due. To turn it
on or off for a mount, run stash update. The
notes stay.
User-Agent
Section titled “User-Agent”- The AWS SDK adds
app/stash-VERSIONto itsUser-Agent. - Other HTTP calls to a source send
User-Agent: stash/VERSION (OS).
Template variables
Section titled “Template variables”Use ${NAME} for a value that is not known when you create the mount.
mount_point = "/mnt/team-memory"
[sources.memory]kind = "agentcore-memory"arn = "arn:aws:bedrock-agentcore:us-east-1:123456789012:memory/example-memory-0123456789"auth = { sigv4 = {} }write.trajectory.actor = "${actorId}"namespaces = ["/support/${region}/${actorId}/*"]- A name has ASCII letters, digits,
_, and-. - A config has at most ten distinct variables.
- A variable can be in a TOML string key or value, but not in
mount_point. - A value is text. It cannot be empty, or hold control characters or line breaks.
create stores the config, and the mount waits in pending_config_resolution.
create checks only the TOML, the variables, and the mount point. Give the
values with stash bind:
stash bind team-memory --set actorId=alice --set region=us-east-1When the last variable has a value, Stash checks the whole config. If the check
fails, bind refuses the value and writes nothing. When the config uses
${sessionId}, create --session-id ID gives its value.