# sandbox.filesystem.allowRead

> A list of paths that may be read inside a blocked area.

**Field:** Artificial Intelligence  
**Category:** Claude Code  
**Also known as:** allowRead

## Think of it like

It is like a locked hall with one door left open. The rest stays shut, that one room is free.

## Definition

sandbox.filesystem.allowRead is a settings key. It lets commands read some paths again, in a place that denyRead blocks. With both keys, commands can read just your project. A deny on one exact path still wins inside a wide allow. So does a deny with a wildcard.

## Example

Lucy wants commands to read her project and nothing else in her home folder. She blocks ~/ and opens . with allowRead.

## Example code

```json
{
  "sandbox": {
    "filesystem": {
      "denyRead": ["~/"],
      "allowRead": ["."]
    }
  }
}
```

Block the home folder, but let the project be read.

## Why it matters

It turns wide reads into narrow ones, and you do not have to list each secret.

## Common mistake

Opening a folder and thinking a blocked file in it opens too. A more exact deny still wins.

## Three principles

- **Re-opens reading.** Inside a deny.
- **Project-only reads.** With denyRead.
- **Specific deny wins.** Even inside.

## Related terms

- [sandbox.filesystem.denyRead](https://learn.benibix.com/term/ai/sandbox-deny-read-setting)
- [sandbox.filesystem.allowWrite](https://learn.benibix.com/term/ai/sandbox-allow-write-setting)

---

Source: https://learn.benibix.com/term/ai/sandbox-allow-read-setting
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-16
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
