You can run shell commands directly in Opencode using !.
!ls -la
The output of the command is added to the conversation as a tool result.
Shell commands can also be run from custom OpenCode commands, which helps make those a bit more prescriptive and powerful.