Can I use Environment Varialbe for Host Agent configuration items?

You can use Environment Variables in plugin configs by following this syntax:

config:
  plugin:
    all:
      config_item: ${ENV_VARIABLE}