# parse_shell_allow_list

> **Function** in `deepagents_cli`

📖 [View in docs](https://reference.langchain.com/python/deepagents-cli/config/parse_shell_allow_list)

Parse shell allow-list from string.

## Signature

```python
parse_shell_allow_list(
    allow_list_str: str | None,
) -> list[str] | None
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `allow_list_str` | `str \| None` | Yes | Comma-separated list of commands, `'recommended'` for safe defaults, or `'all'` to allow any command.  `'all'` must be the sole value — it is not recognized inside a comma-separated list (unlike `'recommended'`).  Can also include `'recommended'` in the list to merge with custom commands. |

## Returns

`list[str] | None`

List of allowed commands, `SHELL_ALLOW_ALL` if `'all'` was specified,
or `None` if no allow-list configured.

---

[View source on GitHub](https://github.com/langchain-ai/deepagents/blob/1ae053f347679e58562d2b81eb6d6e6e9bbf0b07/libs/cli/deepagents_cli/config.py#L700)