Skip to main content

Nozie

Your code, always running. Nozie fixes itself.

Nozie is a lightweight monitoring probe for Docker containers. Drop it into any project — it watches your containers, detects errors in logs, and sends them to the Nozie backend where AI analysis and automatic GitHub fix PRs happen.

No AI keys or GitHub tokens needed on your server. The agent is just a thin probe.

Install

pip install nozie

Quick Start

import time
from nozie import NozieAgent

NozieAgent(api_key="nz_k_...").start()

# Keep your process alive
while True:
    time.sleep(1)

Docker

Add a dedicated container to your docker-compose.yml:

services:
  nozie-agent:
    image: python:3.11-slim
    command: python main.py
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock  # required
    environment:
      - NOZIE_API_KEY=nz_k_...

Or build your own image:

FROM python:3.11-slim
RUN pip install nozie
COPY main.py .
CMD ["python", "main.py"]
# main.py
import time
from nozie import NozieAgent

NozieAgent(api_key="nz_k_...").start()

while True:
    time.sleep(1)

Configuration

Parameter Default Description
api_key required Your Nozie API key from the dashboard
container None Specific container name to monitor. None = all containers
stats_interval 30 Seconds between heartbeat stats reports
error_cooldown 60 Minimum seconds between error reports per container

How It Works

  1. Agent connects to the local Docker daemon via socket
  2. Streams logs from all running containers (or a specific one)
  3. Detects ERROR, Exception, Traceback, FATAL keywords
  4. Sends the last 50 log lines to the Nozie backend
  5. Backend runs AI analysis and opens a GitHub PR with the fix

The agent runs entirely in background daemon threads — it never blocks your application.

Requirements

  • Python >= 3.8
  • Docker socket access (/var/run/docker.sock)

License

MIT

Release files for nozie 0.3.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for nozie 0.3.3
File Size Uploaded
nozie-0.3.3.tar.gz 36.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for nozie 0.3.3
File Interpreter ABI Platform
nozie-0.3.3-py3-none-any.whl Python 3 none any Details

Total release size: 74.7 kB

Release files / nozie-0.3.3.tar.gz

Download URL nozie-0.3.3.tar.gz
Size 36.8 kB
Tags Source
SHA-256 checksum
How to use checksums
b916e2cb6e67eac48ae0960adb45121bd5c9457569119f90f83a8e7d031e5497
BLAKE2b-256 checksum
How to use checksums
d5a5abc7b3a5a8c9024e20969f406d9a0625b31f3926e35f1b24bb02393e0c02
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.6

Release files / nozie-0.3.3-py3-none-any.whl

Download URL nozie-0.3.3-py3-none-any.whl
Size 37.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ff33d66d44be651e0f1d177c6a4bfa2fa6a15fb636b26b4b355f2dbd51ceb8e5
BLAKE2b-256 checksum
How to use checksums
02bc1b268453ccb6c88de576a31128273a3345dcae7046028532039c4f583a7e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.6

Release history Release notifications | RSS feed

0.3.6

2 release files

0.3.5

2 release files

0.3.4

2 release files

This release

0.3.3 This release

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page