Agent configuration reference

Where the ZeusLock agent reads its settings on Windows, macOS and Linux, which source wins, every key that works, the keys with no effect, and how the licence key is protected.

Where the ZeusLock agent reads its settings, which source wins, and every key that works in agent 1.0.46 and later. What is anonymised or blocked is not set on the computer: it lives in the dashboard (Policies), and the agents pick up changes within about 5 minutes.

Where the agent reads its configuration

SystemPolicy (read first)JSON file (one computer)
WindowsHKLM\SOFTWARE\Policies\ZeusLockC:\ProgramData\ZeusLockDLP\config.json
macOS/Library/Managed Preferences/com.zeuslock.agent.plist (profile, domain com.zeuslock.agent)/Library/Application Support/ZeusLockDLP/config.json
Linux/etc/zeuslock/agent.conf (KEY=VALUE)/etc/zeuslock-dlp/config.json
Written byGPO, MDM profile, Ansible or the deployment scriptsthe configuration command of Install without GPO or MDM
  • The policy wins when it holds a LicenseKey. Otherwise the agent uses the JSON file.
  • Neither: the agent shows Agent not configured.
  • The agent reads the policy again at most once a minute. After a change, restart the agent (or the computer) to be sure it uses the new values.

A tester without admin rights can put the same JSON in zeuslock-config.json in the agent's data folder (Windows %APPDATA%\ZeusLock DLP Agent\, macOS ~/Library/Application Support/ZeusLock DLP Agent/, Linux ~/.config/ZeusLock DLP Agent/). It is read only when neither file above exists. Not for fleets.

Managed and unmanaged computers

ManagedNot managed
WhenThe policy holds ServerUrl or LicenseKeyConfigured by the JSON file only
Quit in the tray menuNoYes
Agent killed or crashedStarted again by the watchdog; ManagedUncleanStop decides what the network does meanwhileThe network comes back by itself within about 3 minutes, unprotected until the agent starts again

The two required keys

KeyValueExample
ServerUrlYour ZeusLock API addresshttps://api.zeuslock.ai (your own server: https://<your API host>)
LicenseKeyAn organisation API key from the dashboard page API Keyszl_YOUR_ORGANISATION_KEY

The server finds your organisation from the key. Nothing else is needed.

Optional keys

Read from says where the agent looks: "policy" means the policy only. The JSON file supplies only ServerUrl, LicenseKey and the four proxy keys.

KeyValuesDefaultRead fromWhat it does
UiLanguagefr, en, es, denot setpolicyLanguage of everything the agent shows (window, dialogs, tray, notifications, block messages written into AI tools). Users cannot change it. See below.
BlockFilesOnAlerton / offnot setpolicyForces the dashboard setting Block file uploads on alert detections (Settings → Protection) on or off on these computers.
NetworkMonitoringon / offonpolicyOff switches all inspection off: no local proxy, nothing checked. Use it only to pause protection on a group of computers.
ShadowAiDiscoveryon / offonpolicyLocal switch for Shadow AI discovery (metadata only). It runs only when it is also on in the dashboard. See Shadow AI.
ShadowAiDiscoveryExtraDomainslistemptypolicyExtra exact domains (your own AI gateways) for Shadow AI discovery. Comma, semicolon or newline separated.
ShadowAiDiscoveryExtraWildcardDomainslistemptypolicyThe same, for whole domains and their subdomains.
ShadowAiDiscoveryExtraHostPatternslistemptypolicyThe same, as host patterns.
ManagedUncleanStopprotect, restore-networkprotectpolicyManaged computers only: what happens when the agent is ended without its own cleanup. See below.
GroupKeya word, e.g. financenot setpolicyPuts the computer in the group whose override_key matcher has the same word. See Assign Policies to Teams with Groups.
UpstreamProxyauto, off, http://host:port, http://user:password@host:portautopolicy, then JSONYour corporate proxy. See Use the agent behind a corporate proxy.
TrustSystemCaon / offonpolicy, then JSONTrust the operating system's certificate store for the agent's outbound TLS (needed behind a TLS-inspecting proxy).
ExtraCaFilepathnonepolicy, then JSONPEM file of extra certificate authorities to trust.
ManageSystemProxyon / offonpolicy, then JSONOff: the agent never changes the system proxy; your PAC must send AI traffic to 127.0.0.1:9876.
AllowContentLoggingon / offoffpolicyTest computers only. Lets the testing logs record prompt text, file text and file names. No effect while testing logs are off.

Agent language (UiLanguage)

The agent uses the first of these that is set:

  1. The policy key UiLanguage.
  2. The dashboard setting Settings → Protection → Agent language.
  3. The user's choice in the agent window.
  4. The computer's language.
  5. English.

When a managed agent is ended (ManagedUncleanStop)

  • protect (default): the agent is started again, and browsers have no internet until it runs. Nothing goes out unchecked.
  • restore-network: like an unmanaged computer, the network comes back after a few minutes, unprotected until the agent starts again.
  • On a managed Mac or Linux desktop with protect, running --cleanup by hand starts the agent instead of resetting the network. Windows always resets.

Keys with no effect

The Windows ADMX template and older templates list these keys. The agent reads none of them: setting them changes nothing. Leave them out.

AgentEnabled, BlockingEnabled, AutoUpdate, ClipboardMonitoring, ScreenshotMonitoring, FileMonitoring, LogLevel, HeartbeatInterval, RulesSyncInterval, OrganizationName.

There is no automatic update: new versions come as a new installer from the dashboard. To pause protection, set NetworkMonitoring off.

Value formats

The key names are the same everywhere. Only the encoding differs.

Windows registry (HKLM\SOFTWARE\Policies\ZeusLock)

Text values are REG_SZ. On/off values are REG_DWORD: 1 = on, 0 = off.

ServerUrl    REG_SZ     https://api.zeuslock.ai
LicenseKey   REG_SZ     zl_YOUR_ORGANISATION_KEY
UiLanguage   REG_SZ     fr

macOS profile (domain com.zeuslock.agent)

A configuration profile (.mobileconfig) whose payload sets the keys. On/off values are <true/> / <false/> (1 / 0 also work). Template: com.zeuslock.agent.mobileconfig.

<key>ServerUrl</key>
<string>https://api.zeuslock.ai</string>
<key>LicenseKey</key>
<string>zl_YOUR_ORGANISATION_KEY</string>
<key>UiLanguage</key>
<string>fr</string>

Linux (/etc/zeuslock/agent.conf)

KEY=VALUE, one per line. # and ; start comments. Quotes are optional. On/off values are true / false. Template: agent.conf.

ServerUrl=https://api.zeuslock.ai
LicenseKey=zl_YOUR_ORGANISATION_KEY
UiLanguage=fr

JSON file (all systems)

UTF-8, with or without a byte-order mark. The old names apiUrl / apiKey are still read for ServerUrl / LicenseKey; use the new names. On Windows, write the file without a byte-order mark, as the dashboard command does ([System.IO.File]::WriteAllText(..., (New-Object System.Text.UTF8Encoding($false)))).

{
  "ServerUrl": "https://api.zeuslock.ai",
  "LicenseKey": "zl_YOUR_ORGANISATION_KEY"
}

Who can read the licence key

The agent runs in each user's session, not as root or SYSTEM, so the signed-in user must be able to read the key. The scripts of the public deployment repository set these permissions:

Where the key isPermissionsWho can read it
Windows HKLM\SOFTWARE\Policies\ZeusLock and C:\ProgramData\ZeusLockDLP\Inheritance removed; SYSTEM and Administrators full control; INTERACTIVE readSigned-in users, administrators, SYSTEM
macOS /Library/Application Support/ZeusLockDLP/config.json0640 root:staff, folder 0750Local and mobile user accounts (group staff), root
macOS profileWritten by macOSLocal accounts, like every managed preference
Linux /etc/zeuslock/agent.conf (and the JSON file)0640 root:zeuslock, folder 0750Members of group zeuslock (your desktop users), root
  • A user who runs the agent can read the key. If a key leaks: create a new key on the API Keys page, deploy it, then Revoke the old one.
  • Linux: a user added later must join the group (sudo usermod -aG zeuslock USERNAME) and sign in again. Until then the agent shows Configuration not readable - ask your administrator.
  • Windows GPO: a startup script in SYSVOL is readable by every domain user. Keep the key out of it, and keep it in Ansible Vault with Ansible.
  • If you deliver the configuration another way, apply the same permissions. The agent never changes them.

Testing logs

The detailed logs agent.log and requests.jsonl are written only while an empty file testing-logs.on exists in the agent's data folder. Prompt text is recorded only as a length and a fingerprint, unless the policy sets AllowContentLogging on (test computers only). How to switch them on: Verify and troubleshoot the agent.

Move a computer to another organisation

  1. Change LicenseKey (and ServerUrl if needed) where you set it.
  2. Quit the agent.
  3. Delete the agent's cached registration: config.json in its data folder (Windows %APPDATA%\ZeusLock DLP Agent\, macOS ~/Library/Application Support/ZeusLock DLP Agent/, Linux ~/.config/ZeusLock DLP Agent/).
  4. Start the agent again.

Expected: the ZeusLock icon shows the new organisation's name.

Known limits

  • The JSON file carries only ServerUrl, LicenseKey and the four proxy keys. Every other key works only from the policy.
  • The agent does not report a department, so a group's department matcher never matches. Use GroupKey instead.
  • No automatic update: each new version is a new installer from the dashboard.

If something fails

ProblemFix
Agent not configuredNo LicenseKey in the policy or the JSON file. GPO: gpupdate /force; MDM: push the profile again; Linux: run the playbook again. Then restart the agent.
Configuration not readable - ask your administratorThe user cannot read the file. Linux: sudo usermod -aG zeuslock USERNAME, then sign out and in. macOS JSON file: 0640 root:staff. Windows: run Install-ZeusLockAgent.ps1 again (the key needs INTERACTIVE read).
A key in the JSON file has no effectOnly ServerUrl, LicenseKey and the four proxy keys are read there. Set the key in the policy.
JSON file ignoredInvalid JSON (smart quotes, missing comma). Run the dashboard command again exactly; do not edit the file in a word processor.
The agent shows the wrong organisationAn older registration is cached. Follow "Move a computer to another organisation" above.

See also: Use the agent behind a corporate proxy · Verify and troubleshoot the agent