Skip to content

Settings

Agent configuration is done from the Agent interface itself, not by editing files by hand. This page documents what options there are, where they are stored internally, and how to retrieve them if you need to clone or migrate settings.

It is the only thing that needs to be configured for the Agent to work. This is done on the “Connect this computer” screen the first time you open the Agent:

  • Zoan Cloud URL — the URL of your tenant portal (e.g. https://acme.cloud.zoansoftware.com).
  • Machine Key — the key generated when creating the agent from the portal.

See Windows Installation → Connect the Agent to Zoan Cloud for the detailed procedure.

Agent Configuration screen with fields to edit URL and Machine Key.

After the first registration, you can:

  • Disconnect and Reconnect — from the footer of the main screen there is a Disconnect button that clears the settings and returns to the home screen.
  • Change Instance — if you want to move the Agent to a different Zoan Cloud (e.g. from “Test” to “Production”), disconnect it and reconnect it with the new URL and Machine Key.
  • Regenerate the Machine Key — if you lose it or suspect compromise, you regenerate the agent’s key from the portal. The previous key is immediately invalidated. Then you update the Agent with the new key.

The Agent persists the configuration in:

C:\ProgramData\Zoan\Agent\agente.json

It is a JSON file with this structure:

{
"nexusUrl": "https://acme.cloud.zoansoftware.com",
"machineKey": "85f33cc1-f019-f0c1-50f1-97...",
"agentId": "a1b2c3d4-5678-90ef-...",
"environmentId": "e1f2g3h4-...",
"logLevel": "info"
}

By default the Agent writes logs with level info. There are four levels available:

NivelWhat records
debugMaximum detail: every bridge call, every heartbeat, every internal step. Useful for diagnosis — produces a lot of volume.
infoSignificant events: registration, executions started and finished, errors. Recommended in production.
warnJust warnings and errors.
errorJust mistakes.

To change the level, edit agente.json (with the Agent closed) and modify "logLevel", or use the Advanced Settings option from the system tray menu (coming soon).

Other directories and files that the Agent uses:

C:\ProgramData\Zoan\
├── Agent\
│ ├── agente.json ← configuración (la que ves arriba)
│ └── logs\
│ ├── service.log ← logs del servicio Windows (modo desatendido)
│ └── ui.log ← logs de la UI (modo atendido)
├── Packages\ ← paquetes de actividades instalados (.zpkg)
│ ├── Zoan.Packages.Browser.1.0.0\
│ ├── Zoan.Packages.Excel.1.0.0\
│ └── ...
└── Automations\ ← proyectos descargados de Zoan Cloud para ejecutar (.zoan)
└── <execution-id>\

For special cases (CI/CD environments, containers, provisioning scripts), the Agent can read configuration from environment variables instead of agente.json:

VariableEquivalente JSON
ZOAN_NEXUS_URLnexusUrl
ZOAN_MACHINE_KEYmachineKey
ZOAN_LOG_LEVELlogLevel

If the variables are set when the Agent starts, they have priority over the file. Useful for automating the provisioning of many agents with a configuration tool (Ansible, Group Policy, etc.).