Skip to main content

Your code, always running. Nozie fixes itself.

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nozie-0.3.0.tar.gz (26.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nozie-0.3.0-py3-none-any.whl (27.0 kB view details)

Uploaded Python 3

File details

Details for the file nozie-0.3.0.tar.gz.

File metadata

  • Download URL: nozie-0.3.0.tar.gz
  • Upload date:
  • Size: 26.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.6

File hashes

Hashes for nozie-0.3.0.tar.gz
Algorithm Hash digest
SHA256 d5cbc5c8c8c903edd222a5b352106926acbd923c64169d07e7326e1d2a97c42c
MD5 95f5cb71b5010bb8c96fe84de694ee8b
BLAKE2b-256 e829c175d615029e7a9f9496b244bd988b607de1995454e5ffdcd0b2de268545

See more details on using hashes here.

File details

Details for the file nozie-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: nozie-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 27.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.6

File hashes

Hashes for nozie-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b7807c0cfe0c20c693293497926a7b56226f7375a351fd41610f3e9a41fa2e93
MD5 f8318ccf1888621c6a0cf28876544d22
BLAKE2b-256 a0f25bae45cc730a676dcd8a75fe9ef3dc4f6540f708b976e3e501caa7b02325

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page