# CLI Parameter: --pid
Filter `clr ps` output to show only sessions matching the specified process IDs.
Accepts a comma-separated list of numeric PIDs. Non-matching sessions are silently
omitted. Applies after the `--mode` filter (both filters are anded together).
- **Type:** comma-separated string (numeric PIDs)
- **Default:** — (no filter — all sessions shown)
- **Command:** [`ps`](../command/06_ps.md)
```sh
clr ps --pid 1234567 # show only session with PID 1234567
clr ps --pid 1234567,2345678 # show only these two PIDs
clr ps --pid 1234567 --inspect # inspect full attributes of specific session
CLR_PS_PID=1234567 clr ps # env-var equivalent
```
**Behavior:**
- PID filter is applied after the `--mode` filter — sessions must satisfy both filters.
- PIDs that are valid numerics but not active `claude` processes are silently absent from output.
- Non-numeric values in `--pid` cause `clr ps` to exit 1 with an error message.
- If no specified PIDs match any active session, the normal empty-state message is shown.
- `--pid` does not affect the Queued CLR Processes table — that table is always shown in full.
**Environment variable:** `CLR_PS_PID` — comma-separated PIDs used as default when `--pid` is absent.
CLI `--pid` overrides `CLR_PS_PID` when both are present.
### Referenced Parameter Groups
| 5 | [Session Listing](../param_group/05_session_listing.md) | Full | `--mode`, `--columns`, `--wide`, `--inspect` |
### Referenced Commands
| 6 | [`ps`](../command/06_ps.md) | — (no PID filter) | Filters active sessions table to specified PIDs only |
### Referenced User Stories
| 26 | [026_session_listing.md](../user_story/026_session_listing.md) | Developer / CI operator |