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.2.1.tar.gz (10.6 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.2.1-py3-none-any.whl (11.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for nozie-0.2.1.tar.gz
Algorithm Hash digest
SHA256 34369e32478534b2bf3b41026e5b8a9651e8085dbb42c4b13cb3ca4682a48d27
MD5 d50547c78546125de1a13c8e13bf0b75
BLAKE2b-256 434f5de634e9c7f124d952ce9caec91375ddcc4e8c2efe6c468c8fe5df73c9fa

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for nozie-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 eddacf8bcd7337316816a40561f29838344114065605364858ab60740a0b42eb
MD5 f1b63e348217d6ca98ea878b331104e4
BLAKE2b-256 e175c06edca31d215fa3ef6c22f5cb4b6f446d1cd001656af917d331ec544b22

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