Deploy the agent to your fleet
Step-by-step guides to roll Kuntur out to many computers with the tools you already use, without contacting us. Every command on this page matches what the current installers accept.
Try it on one computer first
Before rolling out, see what AI is on one Windows, macOS or Linux computer. No admin rights, no account; the report stays on the machine. Step by step, with the SHA-256 check · what the scanner does.
Windows (PowerShell):
irm https://app.kuntur.io/scan.ps1 | iex
macOS or Linux (Terminal):
curl -fsSL https://app.kuntur.io/scan.sh | sh
Before you start
Sign in to the console and open Deploy agents (Desplegar agentes in the sidebar). You will find two kinds of credentials there:
- Enrollment token (recommended). In Enrollment tokens, create a token with a label, an optional expiry (days) and an optional maximum number of uses. The console shows the
<TENANT_ID>and the<ENROLLMENT_TOKEN>once, with ready-to-copy commands. Copy it then: it is not shown again. Revoking a token only blocks new enrollments; computers already enrolled keep reporting. - Enrollment key (legacy). One general key per organization (
<ENROLLMENT_KEY>), shown at the top of the page. It still works everywhere, including the ADMX templates and the generated policy files, but it cannot be revoked per group. You can rotate it; rotating breaks old install commands but does not disconnect enrolled agents.
Policy files with a token. In Deploy agents → Mass deployment, choose an enrollment token under Credential in policy files (or General key (legacy)) and paste its value: the generated .reg, .mobileconfig and managed.json then carry TenantID + EnrollToken. The token is sent to the server in the request body, checked against its stored hash, and never logged. A revoked, expired or used-up token cannot be used to generate files, and a device that receives one by policy will not enroll.
Precedence. If a device receives both a token and the general key (for example an old GPO plus a new one), the agent uses the token and does not send the key.
Each agent uses the token or key only once, on first start, to obtain its own credential. On Windows the agent deletes the enrollment token from the registry after enrolling.
Server URL. The cloud service is https://app.kuntur.io, and release builds of the agent have it built in, so the MSI only needs TENANT_ID and ENROLL_TOKEN. If you run Kuntur self-hosted, add KUNTUR_SERVER=<YOUR_SERVER_URL> to MSI commands and replace https://app.kuntur.io in the script URLs below; the console already shows the right URL for your server.
Packages. The Deploy agents page lists the files your server publishes under /downloads/: the Windows MSI (kuntur-agent-<version>-x64.msi), the ADMX templates (kuntur-admx-<version>.zip), DEB and RPM packages, and standalone binaries. Anything that is not published is labelled as such there.
Network. Endpoints only need outbound HTTPS to the server URL (/api/v1/agent/* and /downloads/*).
Code signing, honestly. The Windows MSI and agent binaries are not signed with Authenticode yet. Windows SmartScreen may warn when someone runs the installer by hand, and some EDR or application-control policies may require you to allow the file by hash or path (C:\Program Files\Kuntur\kuntur-agent.exe). Silent installs from Intune, GPO or an RMM do not show the SmartScreen prompt. The macOS package and binary can be signed and notarized by the build, but are not signed unless the build was configured to do so; see the macOS notes below. Release binaries come with Sigstore (cosign) signatures and SHA-256 checksums on GitHub.
Roll out in rings. Start with IT and Security, then a small percentage, then everyone. Use a different token label and a tag such as ring=1 per ring so you can see and stop each stage.
Windows with Microsoft Intune
Best when you want Intune to report install state and handle uninstall.
- Download the MSI from Deploy agents and wrap it with Microsoft's Win32 Content Prep Tool (
IntuneWinAppUtil.exe) into a.intunewinfile. - In Intune: Apps → Windows → Add → Windows app (Win32) and upload the
.intunewin. - Install command:
msiexec /i kuntur-agent-<version>-x64.msi /qn TENANT_ID=<TENANT_ID> ENROLL_TOKEN=<ENROLLMENT_TOKEN> KUNTUR_TAGS="dept=engineering,ring=1"
KUNTUR_TAGSis optional. - Uninstall command:
msiexec /x {<PRODUCT_CODE>} /qn. Intune fills in the product code of an MSI in a Win32 app; the code changes with every build, so take it from the version you upload. If uninstall protection is on, see Bulk uninstall. - Install behavior: System. Detection rule: MSI (product code), or File
C:\Program Files\Kuntur\kuntur-agent.exeexists. - Assign as Required to a device group.
Configuration comes from an Intune policy instead of the install command, so you can change it later without reinstalling. Policy values win over MSI values.
- Devices → Configuration → Create → Templates → Imported Administrative templates: import
Kuntur.admxanden-US/Kuntur.admlfromkuntur-admx-<version>.zip. - Create a profile from that template and set Server URL, Tenant ID (
<TENANT_ID>), Enrollment token (<ENROLLMENT_TOKEN>) and Tags. Legacy alternative: Enrollment key (<ENROLLMENT_KEY>) instead of tenant + token. Optional: Collect web usage, Proxy URL, CA file. Assign it to the device group. - Apps → Windows → Add → Line-of-business app, upload the MSI with no arguments, and assign it as Required to the same group.
Tenant ID + enrollment token is the recommended option: revoke the token to stop new enrollments for that group without touching other groups. Import the current ADMX/ADML (re-import if you loaded an older copy) to see the Tenant ID and Enrollment token settings.
Quickest option, no packaging. Intune does not track install state or uninstall for scripts.
- Devices → Scripts and remediations → Platform scripts → Add → Windows 10 and later.
- Upload a
.ps1with:& ([scriptblock]::Create((irm https://app.kuntur.io/install.ps1))) -TenantId <TENANT_ID> -Token <ENROLLMENT_TOKEN> -Tags "dept=engineering,ring=1"
- Settings: Run this script using the logged on credentials = No (runs as SYSTEM, which the installer needs), Run script in 64 bit PowerShell Host = Yes (otherwise it installs under the 32-bit Program Files folder).
- Assign to a device group.
The script downloads kuntur-agent-windows-<arch>.exe to C:\Program Files\Kuntur and installs the kuntur-agent service. The token is passed through environment variables, not the command line of the agent process.
Windows with Group Policy (Active Directory)
- Copy
Kuntur.admxto\\<domain>\SYSVOL\<domain>\Policies\PolicyDefinitions\anden-US\Kuntur.admlto itsen-USsubfolder. - In a GPO linked to the target OU: Computer Configuration → Policies → Administrative Templates → Kuntur. Set the server URL, Tenant ID (
<TENANT_ID>), Enrollment token (<ENROLLMENT_TOKEN>, recommended) and the tags. Legacy: set Enrollment key (<ENROLLMENT_KEY>) instead of tenant + token. - Put the MSI on a share readable by domain computers, e.g.
\\fileserver\kuntur\kuntur-agent-<version>-x64.msi. - Computer Configuration → Policies → Software Settings → Software installation → New → Package, choose the MSI from the UNC path, deployment method Assigned.
- Computers install the agent at the next restart (or after
gpupdate /forceand a restart).
Without ADMX you can import the Policy .reg file generated in Deploy agents (it writes the same values under HKLM\SOFTWARE\Policies\Kuntur\Agent), for example with Group Policy Preferences. Choose an enrollment token before downloading it and the file writes TenantID and EnrollToken; with General key (legacy) it writes EnrollmentKey.
Windows manually or with an RMM
MSI (recommended for RMM, SCCM/MECM, PDQ and similar)
Run as SYSTEM or an administrator:
msiexec /i kuntur-agent-<version>-x64.msi /qn TENANT_ID=<TENANT_ID> ENROLL_TOKEN=<ENROLLMENT_TOKEN>
Optional properties: KUNTUR_TAGS="dept=engineering,ring=1", and KUNTUR_SERVER=<YOUR_SERVER_URL> for self-hosted servers. With the organization key instead of a token: KUNTUR_KEY=<ENROLLMENT_KEY>.
PowerShell one-liner
In PowerShell as Administrator (or from an RMM running as SYSTEM):
& ([scriptblock]::Create((irm https://app.kuntur.io/install.ps1))) -TenantId <TENANT_ID> -Token <ENROLLMENT_TOKEN>
Optional: -Tags "dept=engineering,ring=1". With the organization key: -Key <ENROLLMENT_KEY>. The script handles x64 and ARM64. Use the MSI when your tool needs to track or remove the install later.
macOS with Kandji, Jamf or Intune
Two pieces: a configuration profile (server, tenant ID + enrollment token or the legacy key, tags) and the package or install script. Assign the profile before the package.
Package availability and signing. The universal kuntur-agent-<version>.pkg is built on macOS and is only listed in Deploy agents if your server publishes it. If it is not listed, use the install script method below. The package and binary are signed and notarized only when the build has Developer ID credentials configured; an unsigned package may be rejected by Gatekeeper when opened by hand, and the optional Full Disk Access (PPPC) payload needs a signed binary.
- In Deploy agents, type your tags, choose an enrollment token under Credential in policy files (recommended; or General key (legacy)) and download Profile .mobileconfig. It already contains the server URL,
TenantID+EnrollToken(orEnrollmentKey) and the tags. - Library → Add new → Custom Profile, upload the
.mobileconfig, assign it to a Blueprint. - Library → Add new → Custom Script (runs as root), same Blueprint, with the script from Install script.
- Once Deploy agents lists a
.pkg, you can use Library → Add new → Custom App with it instead of step 3. Its postinstall loads thekuntur-agentlaunch daemon.
- Download Profile .mobileconfig from Deploy agents, with an enrollment token selected (recommended) or the general key (legacy).
- Computers → Configuration Profiles → Upload the
.mobileconfigand scope it to a smart or static group. - Create a Policy with a Script payload holding the script from Install script, trigger Recurring check-in (or Enrollment complete), frequency Once per computer, same scope.
- Once Deploy agents lists a
.pkg, you can upload it in Settings → Packages and use it in the policy instead of the script.
- Download Profile .mobileconfig from Deploy agents.
- Devices → macOS → Configuration → Create → Templates → Custom, deployment channel Device channel, upload the
.mobileconfig, assign to a device group. - Devices → macOS → Scripts → Add, run as root (Run script as signed-in user = No), with the script from Install script, assigned to the same group.
- Once Deploy agents lists a
.pkg, you can use Apps → macOS → Add → macOS app (PKG) with it instead of the script.
Install script (any MDM, or by hand)
Runs as root, downloads the agent for the Mac's architecture to /usr/local/bin/kuntur-agent and installs it as a launch daemon. The token goes through the environment, not the process list:
curl -fsSL https://app.kuntur.io/install.sh | sudo env KUNTUR_TENANT_ID=<TENANT_ID> KUNTUR_ENROLL_TOKEN=<ENROLLMENT_TOKEN> sh
In an MDM script that already runs as root you can drop sudo. To add tags: ... sh -s -- --tags dept=engineering,ring=1. With the organization key: curl -fsSL https://app.kuntur.io/install.sh | sudo sh -s -- --key <ENROLLMENT_KEY>.
Full Disk Access (optional). Needed only to read Safari history. Deploy a PPPC profile granting SystemPolicyAllFiles to /usr/local/bin/kuntur-agent; this requires the binary to be signed with a Developer ID (see the template deploy/macos/kuntur.mobileconfig.template in the repository).
Linux with a script or Ansible
Script (one server or any configuration tool)
curl -fsSL https://app.kuntur.io/install.sh | sudo env KUNTUR_TENANT_ID=<TENANT_ID> KUNTUR_ENROLL_TOKEN=<ENROLLMENT_TOKEN> sh
Supports amd64 and arm64. Tags: append -s -- --tags dept=engineering,ring=1 after sh.
Package + policy file
Download the DEB or RPM and managed.json (generated with your tags and the selected enrollment token, or the general key as legacy) from Deploy agents:
sudo install -D -m 600 managed.json /etc/kuntur/managed.json sudo apt install ./kuntur-agent_<version>_amd64.deb # or: sudo dnf install ./kuntur-agent-<version>-1.x86_64.rpm
The package enables the kuntur-agent systemd unit and starts it once /etc/kuntur/managed.json exists.
Ansible
The repository includes deploy/ansible/kuntur-agent.yml. It writes /etc/kuntur/managed.json (mode 600), installs the DEB or RPM from your server's /downloads/ and enables the service:
ansible-playbook -i inventory kuntur-agent.yml \ -e kuntur_server=https://app.kuntur.io \ -e kuntur_tenant_id=<TENANT_ID> -e kuntur_enroll_token=<ENROLLMENT_TOKEN>
Keep kuntur_enroll_token in Ansible Vault. Legacy alternative: -e kuntur_key=<ENROLLMENT_KEY> instead of tenant + token; if both are set, the agent uses the token.
Set tags per group in group_vars, e.g. kuntur_tags: ["dept=engineering", "ring=1"]. The playbook defaults kuntur_collect_web_usage to false (servers rarely have a browser) and pins kuntur_version; set it to the version your server publishes.
Verify the computer appeared
- In the console, open Endpoints. A new computer usually shows up within one or two minutes after the agent starts, with its hostname, OS, agent version, tags and last report time.
- In Deploy agents → Enrollment tokens, the Uses column of the token goes up with each enrolled computer.
- On the computer itself, check the service and the effective configuration (each value shows the source it came from):
# Windows (PowerShell as Administrator) & "C:\Program Files\Kuntur\kuntur-agent.exe" status & "C:\Program Files\Kuntur\kuntur-agent.exe" config # macOS / Linux (script install: /usr/local/bin, DEB/RPM: /usr/bin) sudo kuntur-agent status sudo kuntur-agent config
Not showing up? Check outbound HTTPS to the server URL, that the token is not revoked, expired or out of uses, and that the plan has endpoints left. If a proxy or TLS inspection is in the way, set Proxy URL and CA file by policy.
Bulk uninstall
Remove the agent from the same tool that deployed it:
| Deployed with | Uninstall |
|---|---|
| Intune Win32 / LOB app | Change the assignment to Uninstall (runs msiexec /x {<PRODUCT_CODE>} /qn) |
| GPO software installation | Remove the package with Immediately uninstall the software from users and computers |
| RMM / SCCM | msiexec /x {<PRODUCT_CODE>} /qn or msiexec /x kuntur-agent-<version>-x64.msi /qn |
| install.ps1 | & "C:\Program Files\Kuntur\kuntur-agent.exe" uninstall |
| macOS (pkg or script) | sudo sh uninstall.sh (deploy/macos/uninstall.sh; use it as the uninstall script in Kandji or a Jamf policy) |
| Linux DEB/RPM, Ansible | sudo apt remove kuntur-agent / sudo dnf remove kuntur-agent |
| install.sh | sudo kuntur-agent uninstall |
Uninstalling stops future reports. Data already sent stays in the console until your retention settings or a deletion request remove it.
If the tenant has uninstall protection
Uninstall protection is off by default. An administrator can turn it on in Deploy agents → Uninstall protection; agents apply it at their next report. From then on, removing the agent requires a token:
- a per-device token, shown on each computer's page in Endpoints, or
- an optional tenant-wide token (enable Allow a single tenant token), meant for bulk removal from Intune, GPO or an RMM. It can be rotated; computers pick up the new value at their next report.
Without a valid token the uninstall fails and the agent keeps running. Pass the token like this:
# Windows (MSI; Intune uninstall command, RMM, SCCM)
msiexec /x {<PRODUCT_CODE>} /qn UNINSTALL_TOKEN=<UNINSTALL_TOKEN>
# macOS
sudo env KUNTUR_UNINSTALL_TOKEN=<UNINSTALL_TOKEN> sh uninstall.sh
# Linux packages
sudo env KUNTUR_UNINSTALL_TOKEN=<UNINSTALL_TOKEN> apt remove kuntur-agent
# Any OS, agent installed by script
sudo env KUNTUR_UNINSTALL_TOKEN=<UNINSTALL_TOKEN> kuntur-agent uninstallOn Windows, set the Intune Win32 app's uninstall command to include UNINSTALL_TOKEN before you switch the assignment to Uninstall. A GPO software removal cannot pass properties, so with protection on, either turn protection off first (agents apply it at their next report) or uninstall with msiexec from a script or RMM. Upgrades and repairs never ask for the token.
Uninstall protection stops casual removal by users. It does not stop a determined local administrator.