Getting Started
Installation

Installation

NAT can be installed via pip (Python package), Docker, or used directly in GitHub Actions without a local install.

System requirements

RequirementMinimumRecommended
Python3.93.11+
RAM512 MB2 GB
Disk200 MB1 GB
OSLinux, macOS, Windows (WSL2)Linux or macOS

Install via pip

pip install nat-engine installs the full NAT engine including the CLI, local report generation, and self-hosted server mode.

pip install nat-engine

Verify the installation

nat --version
# nat-engine 1.x.x

Upgrade to the latest version

pip install --upgrade nat-engine

Install a specific version

pip install nat-engine==1.2.0

Install in a virtual environment (recommended)

python -m venv .venv
source .venv/bin/activate   # macOS/Linux
# .venv\Scripts\activate    # Windows
pip install nat-engine

Install via Docker

docker pull natengine/nat:latest
docker run --rm natengine/nat:latest nat --version

See the Docker Deployment guide for production Docker setup.

Install via GitHub Actions

No local installation needed — use the official nat-action in your workflow:

- uses: bg-playground/nat-action@v1
  with:
    api-url: https://api.example.com
    api-key: ${{ secrets.NAT_API_KEY }}

See the CI/CD Integration guide for the full workflow reference.

Self-hosted server mode

After installing via pip, you can run NAT as a local server that exposes a REST API and dashboard:

Start the server

nat server start --port 8080

Open the dashboard

Navigate to http://localhost:8080 in your browser.

Configure via environment variables

VariableDescriptionDefault
NAT_PORTServer listen port8080
NAT_HOSTBind address127.0.0.1
NAT_DATA_DIRDirectory for scan data and reports~/.nat/data
NAT_LOG_LEVELLog verbosity (debug, info, warn, error)info
NAT_SECRET_KEYSecret used to sign session tokensAuto-generated

See the Self-Hosted Setup guide for a complete production deployment walkthrough.

Uninstall

pip uninstall nat-engine

To also remove stored data and configuration:

rm -rf ~/.nat

Next steps