Create a local Stash mount, save a note, and let Claude Code read it as context. This path needs no AWS account or remote source.

## Before you start

You need:

-   Linux (x86\_64 or arm64, glibc 2.17 or later), or macOS on Apple silicon;
-   [Claude Code](/docs/user-guide/stash/integrations/claude-code/index.md); and
-   a project directory where Stash can add the Claude Code integration files.

Run the commands from that project directory.

## 1\. Install Stash

```bash
curl -fsSL https://github.com/strands-agents/stash/releases/latest/download/install.sh | sh
```

The script installs `stash` at `~/.local/bin/stash`. Check that your shell can find it:

```bash
stash --version
```

If your shell cannot find `stash`, add the install directory to `PATH`:

```bash
export PATH="$HOME/.local/bin:$PATH"
```

You can also install Stash with npm or with Python:

```bash
npm install -g @strands-agents/stash
pipx install strands-stash          # or: uv tool install strands-stash
```

Each command installs the same `stash` binary. Use a global install, as above. Do not run Stash with `npx` or `uvx`, and do not install it into the `node_modules` or the virtual environment of a project. `stash attach` writes the path of the binary into your hooks, and these places can move or delete the binary.

## 2\. Configure a local mount

Create `stash.toml`:

```toml
mount_point = "/tmp/ops-context"
harnesses = ["claude"]

[extraction]
enabled = true
```

The `mount_point` must be an absolute path that is empty or does not exist. The `[extraction]` table turns on local notes.

## 3\. Create and attach the mount

```bash
stash create ops --config stash.toml --attach
```

The command starts the local Stash daemon and creates the `ops` mount. It also connects this project to the mount by adding:

-   a marked instruction block to `CLAUDE.md`;
-   hooks to `.claude/settings.local.json`; and
-   the `stash` MCP server to `.mcp.json`.

Stash preserves content and config entries that it does not own.

`stash create` returns before the mount is ready. Check its state:

```bash
stash status ops
```

Repeat the command until it shows `state: ready`. Do not continue while it shows `starting`. If it shows `state: failed`, use the displayed error to fix the config, then remove the failed mount and its data before you create it again:

```bash
stash delete ops --yes --remove-data
stash create ops --config stash.toml --attach
```

## 4\. Save context for the agent

Save a note about the running incident:

```bash
stash note save ops --topic "inc-4412 mitigation" <<'EOF'
INC-4412: checkout latency rose after deploy 2026-11-20.3.

## Key facts
- Checkout p99 latency rose from 300 ms to 1.4 s after the deploy.
- Rolling back the deploy returned p99 latency to 300 ms.

## Decisions
- Keep the deploy rolled back while the team checks the connection pool change.
EOF
```

Stash writes the note under `local/memories/`. Check the source page and the saved note:

```bash
cat /tmp/ops-context/_sources/local.md
cat /tmp/ops-context/local/memories/inc-4412-mitigation.md
```

## 5\. Ask Claude Code to use the mount

Start Claude Code in the same project directory:

```bash
claude
```

Approve the workspace MCP server if Claude Code asks.

Ask:

```text
Read the Stash source pages and the saved note. What happened in INC-4412,
and what should the next responder do?
```

Claude Code follows the steering in `CLAUDE.md`, reads the mounted files, and answers from the note. The note stays available to later sessions.

## 6\. Clean up

Exit Claude Code, then remove the mount and its files:

```bash
stash delete ops --yes --remove-data
```

The command also removes the Stash steering, hook, and MCP entries from the attached workspace.

## What you built

You built a local context workspace that Claude Code reads with its existing file tools. Stash kept the full note outside the model context until the agent needed it.

## Next steps

-   [Strands Agents](/docs/user-guide/stash/integrations/strands-agents/index.md): use the same mount from a Python or TypeScript agent.
-   [AgentCore Memory source](/docs/user-guide/stash/sources/agentcore-memory/index.md): add durable memory that can hydrate later sessions and receive write-back.
-   [Connect sources](/docs/user-guide/stash/guides/connect-sources/index.md): add knowledge bases, web search, AWS Context, MCP servers, and plugins.
-   [How Stash works](/docs/user-guide/stash/how-it-works/index.md): learn how the daemon, mount, sources, hydration, and write-back fit together.
-   [Supported harnesses and frameworks](/docs/user-guide/stash/integrations/harnesses/index.md): connect Codex, Kiro, or another agent to the same mount.