Set proxy and user agent with external libraries?

Proxies can be configured under Window > Katalon Studio Preferences > Katalon > Proxy:

I’ve never messed with user agents, but it looks like it can be handled through desired capabilities: