# Input lock commands (/docs/v0.4/cli/input-lock)



Lock mode sends normal keys straight to the focused pane instead of resolving
koshi shortcuts.

<Callout>
  These verbs take `--remote <SERVER>` to act on a session on another machine.
  See [Remote commands](/docs/v0.4/cli/remote).
</Callout>

```bash
koshi lock
koshi unlock
koshi toggle-lock
```

Choose an attached terminal explicitly:

```bash
koshi lock --client <CLIENT_ID>
koshi unlock --client <CLIENT_ID>
koshi toggle-lock --client <CLIENT_ID>
```

Lock state belongs to the client, not the session. Other attached clients keep
their own mode, and each reads its own `keybinding.kdl`.

The keyboard equivalent is <kbd>\<C-l></kbd>. koshi reserves a working
unlock path when validating keybindings, so a bad locked-mode map is rejected
instead of trapping input.
