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.1.tar.gz (26.8 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.1-py3-none-any.whl (27.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: nozie-0.3.1.tar.gz
  • Upload date:
  • Size: 26.8 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.1.tar.gz
Algorithm Hash digest
SHA256 d4b410e8986dfb856f31870e688176e5a50ff8ff5570cc3af69c81605dd90470
MD5 3375f6255cd1019f73d9085d426e35e9
BLAKE2b-256 eef9262992b57abc49133d9e2328e47fdcdb851fafe54a0bc5c5d7739f37c1e1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: nozie-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 27.7 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ce11518f34ebd3495349de2b47892bff63c5c048b554b0af67518d19bf0b1dc0
MD5 c182ec20c8e7b86341d0ff16a95eb391
BLAKE2b-256 cafce8616718a2dd8c1a7dcd10f3f93ee1d639830e0281d16894a6a7f942581f

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