@marcoalmeida Just install direnv as instructed here: https://direnv.net/docs/installation.html
Then complete the shell hook setup:
https://direnv.net/docs/hook.html
After you restart your shell (or when your agent starts a new shell session), it should auto-load the env vars to use Local’s PHP and WP-CLI when you CD to the site root.
The full guide here for Local is worth reading:
https://community.localwp.com/t/using-direnv-with-local/52246
For others following along, note that direnv is macOS/Linux only.