diff --git a/agentic_security/app.py b/agentic_security/app.py
index 1cf0ef3..c7ca1db 100644
--- a/agentic_security/app.py
+++ b/agentic_security/app.py
@@ -1,3 +1,4 @@
+import os
import random
from asyncio import Event, Queue
from datetime import datetime
@@ -38,6 +39,8 @@ stop_event = Event() # Added stop_event to cancel the scan
FEATURE_PROXY = False
+DISABLE_TELEMETRY = os.getenv("DISABLE_TELEMETRY", False)
+
@app.get("/")
async def root():
@@ -51,6 +54,14 @@ async def main_js():
return FileResponse(f"{agentic_security_path}/static/main.js")
+@app.get("/telemetry.js")
+async def telemetry_js():
+ agentic_security_path = Path(__file__).parent
+ if DISABLE_TELEMETRY:
+ return FileResponse(f"{agentic_security_path}/static/telemetry_disabled.js")
+ return FileResponse(f"{agentic_security_path}/static/telemetry.js")
+
+
@app.get("/favicon.ico")
async def favicon():
agentic_security_path = Path(__file__).parent
diff --git a/agentic_security/static/index.html b/agentic_security/static/index.html
index 04c4627..9c5489e 100644
--- a/agentic_security/static/index.html
+++ b/agentic_security/static/index.html
@@ -485,13 +485,9 @@
+
-