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
Release files for nozie 0.3.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| nozie-0.3.4.tar.gz | 37.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| nozie-0.3.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 75.5 kB
Release files / nozie-0.3.4.tar.gz
| Download URL | nozie-0.3.4.tar.gz |
|---|---|
| Size | 37.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b614860f05a96e1fa45436c6a8a43c3690933de838264cb98da6f8dceddf6ca7
|
|
BLAKE2b-256 checksum How to use checksums |
a7849ba21c176b4a1252cc8e49e8df2157446ea72d1d4f78c040a4aca918dfd1
|
| 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.4-py3-none-any.whl
| Download URL | nozie-0.3.4-py3-none-any.whl |
|---|---|
| Size | 38.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5e13921e7b6136e920a7a99a71708c67e9d0a4be85be8a80b1f1542cbf7943cc
|
|
BLAKE2b-256 checksum How to use checksums |
b0638094252c84ab0a2a53d1068511997c5bffbdbb9be2331f2fc4ae078d63e9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.6
|