# OpenClaw workspace folder: find the files your agent uses

Canonical: https://cwyn.com/pages/openclaw-guide-find-agent-workspace-folder.html
Last updated: 2026-11-19T05:18:26-05:00

OpenClaw operations guide

Short answer. Locate the active OpenClaw workspace on the Gateway host and confirm which copy of AGENTS.md your selected agent reads when several folders look alike. You edit AGENTS.md on your laptop, then open the agent’s Files tab and see the old text.

Last updated November 19, 2026

The [OpenClaw Complete Setup Pack](https://cwyn.com/pages/pack-openclaw-complete-setup-pack.html) is an optional paid kit ($14.95). It includes editable workspace files and a rollback checklist for the folder you identify here.

OpenClaw Complete Setup Pack $14.95

Start an OpenClaw workspace with editable instructions, local Gateway and tool presets, and checklists for pairing, memory, costs and rollback.

By CWYN · Reviewed November 19, 2026 against OpenClaw 2026.11.5

You edit `AGENTS.md` on your laptop, then open the agent’s Files tab and see the old text. Before editing the other copy too, find three things: the host running the Gateway, the agent you selected and the workspace assigned to it.

## 1. Locate the host that owns the files

Check which Gateway your dashboard uses. For a local filesystem workspace, a Gateway on a VPS reads files on the VPS. A Gateway in a container sees paths inside the container. If you edit files on the host, check which host directory is mounted at that container path.

## 2. Look up the agent’s workspace

On that host, using the same profile as the Gateway, run `openclaw agents list`. Find the agent ID from your chat and read its workspace path. The agent state directory holds separate runtime data. For the ordinary default profile the workspace starts at `~/.openclaw/workspace`, but the path shown for your agent is the one to inspect. See the [workspace layout](https://docs.openclaw.ai/concepts/agent-workspace).

## 3. Account for a second workspace directory

Check the selected agent’s `agents.entries.<id>.workspace` setting. An explicit path pins that agent’s workspace. A sole unpinned agent inherits the default. With an explicit multi-agent roster, a configured `agents.defaults.workspace` can be the parent of separate agent folders. This explains how a file at the root and another under the agent ID can both exist.

## 4. Compare one known file in the dashboard

In Settings, select the intended agent, open Files and view `AGENTS.md`. Compare a distinctive existing sentence with the copy at the resolved path. If the file list is stale, refresh it before editing. With a remote Gateway you can do this check on the dashboard even when the directory is absent from your laptop.

## 5. Use the verified folder for the next edit

Open the matched directory in your editor and bookmark it with the agent ID and Gateway profile. For your next intended change, save one edit there and confirm it appears when you refresh the same file in the agent’s Files view. Leave any older folder intact until you have checked it for unique work. If the dashboard shows the right file but a sandboxed tool cannot read it, check that tool’s workspace access separately.

[Get your free CWYN Score](https://cwyn.com/score)

## Related guides

- [OpenClaw AGENTS.md truncated: check which instructions reach the model](https://cwyn.com/pages/openclaw-guide-agents-md-truncated.html)
- [OpenClaw sandbox cannot access a file: trace the workspace boundary](https://cwyn.com/pages/openclaw-guide-sandbox-file-access.html)
- [Add a second OpenClaw agent with its own workspace](https://cwyn.com/pages/openclaw-guide-add-second-agent-workspace.html)
- [OpenClaw memory not saving: why Memory Wiki notes go missing](https://cwyn.com/pages/openclaw-guide-memory-wiki-not-saving.html)

## Next steps

- [All 135 OpenClaw guides](https://cwyn.com/guides/openclaw/)
- [OpenClaw setup walkthrough](https://cwyn.com/setup/openclaw/)
- [Check your OpenClaw AGENTS.md](https://cwyn.com/score/setup-file-checker/?profile=openclaw)
- [OpenClaw Complete Setup Pack ($14.95)](https://cwyn.com/pages/pack-openclaw-complete-setup-pack.html)
