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
- Agent connects to the local Docker daemon via socket
- Streams logs from all running containers (or a specific one)
- Detects
ERROR,Exception,Traceback,FATALkeywords - Sends the last 50 log lines to the Nozie backend
- 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
Metadata
Release files for nozie 0.3.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| nozie-0.3.6.tar.gz | 38.0 kB | Without provenance | Details for nozie-0.3.6.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| nozie-0.3.6-py3-none-any.whl | Python 3 | none | any | Details for nozie-0.3.6-py3-none-any.whl |
Total release size: 77.2 kB
Release files / nozie-0.3.6.tar.gz
| Download URL | nozie-0.3.6.tar.gz |
|---|---|
| Size | 38.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
eb00f24e6b0ab03fcfc4a2d93929fbc2c746d0b25d2c7e1f6bc231b447b4ef77
|
|
BLAKE2b-256 checksum How to use checksums |
8b1fd16820d93a035550c3fa73def76bb275a198cde25294ea0074b7222833e5
|
| 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.6-py3-none-any.whl
| Download URL | nozie-0.3.6-py3-none-any.whl |
|---|---|
| Size | 39.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
528fefa24c2bc2f9cea021b30bab8a969cd579e2a3fc7a88cb48d40f5d1bfdae
|
|
BLAKE2b-256 checksum How to use checksums |
e5e6395beb5252ce0aa3e4591d9522e0c2a55f7054a6c684fe24a1e66ee11404
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.6
|
Security for nozie 0.3.6
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.