You can certainly do that in the clearml.conf file
Oh, it's a little strange the comment lines about it were in the agent section
The issue is most likely due to the fact you've put the environment section under the agent section, while it should be top-level, not under any section:
# Top-level environment section is in the form of...
@<1523701087100473344:profile|SuccessfulKoala55> here you go
That's since the control over whether to enable it or not are there - the example there simply illustrates how to use it
My agents are stared through systemd so maybe I should specify the env in the service file the clearml.conf
file looks like it has a section to do it properly (see 2nd point above)
however, can you share the file itself? just to make sure this is in the correct place in the file