Documentation
Everything you need to run PortGate
Install the agent, understand your score, route alerts, and fix the common snags. New here? Start with the quickstart.
Get started
Create an account, install the agent and read your first results.
- Quickstart: your first server in 5 minutes Create an account, add a server, paste one command on it, and read your first security score.
- Choose server, ai-proxy, or all One agent file. The --mode flag selects the server daemon, the local LLM proxy, or both.
- Install modes are additive Running the installer again with another mode adds that unit. It does not remove a mode you already installed.
- Installer and agent options Every flag install.sh and agent.py accept, what each mode installs, and where the files, schedules and logs go.
- How to read a finding A finding is a diff against the last approved baseline: a new listener, a changed hash, or a malware path.
Agent and install
Where the agent lives, what it needs and how to change it.
- What root is used for Server and malware mode read system paths. The AI proxy does not need root. The agent does not rewrite config or delete...
- Which token ability each mode needs Server ingest, AI telemetry, and malware scan are separate abilities. --mode all needs all three on the same token.
- Where config.json lives The root install writes /opt/portgate/config.json. A user install writes ~/.portgate/config.json.
- systemd unit names The units are portgate-agent, portgate-ai-proxy, and portgate-malware.
- Change the dashboard URL on an existing agent Pass --url on the next install. The script replaces api_url when you give it a new origin.
- Rotate an install token Create a new token, re-run the installer with it, then revoke the old token.
- Uninstall the agent One command removes the schedules, services, files and logs. Files you quarantined are kept.
- Do not paste tokens into chat An install token is a credential. A server token can post inventory for that install.
Server & Infra Guard
The heartbeat, the security score and the baseline.
- What the heartbeat sends Hostname, ports, Docker inventory, firewall status, parsed SSH flags, and four file hashes. Not your source tree or .env...
- What the score counts The score drops when the heartbeat reports a public database port, password SSH, root SSH, or an unapproved hash change.
- Approving a baseline Approval stores the current hashes and the current listener set as the expected state.
- When a server is marked offline The scheduler marks a server offline after heartbeats stop.
Malware & Backdoor Guard
What the scan reads and what it leaves alone.
AI & Edge Guard
The local proxy in front of your model API, and domain checks.
Alerts and webhooks
Where alerts go and how to verify a webhook.
Setup blueprints
Hardened setup scripts and what they promise.
- Read a blueprint bundle before you run it The bundle writes files and runs only the shell steps marked to run. Closing SSH, starting compose, and incident collect...
- What a blueprint score guarantee means Every published blueprint is scored 100 because the files follow the product rules: loopback for data stores, no automat...
Troubleshooting
Short answers to the problems people hit most.
- A blueprint variable was rendered empty
- A file hash changed and I did not deploy
- A known file keeps showing up in the malware scan
- A server was marked offline
- Are prompts sent to the dashboard?
- Heartbeat says the dashboard name does not resolve
- Malware scan posts are rejected
- Ollama answers on the public IP after the proxy is installed
- Quarantine does not delete files by itself
- ss does not show a Docker published port
- SSH password login was turned off and the new session fails
- The agent gets HTTP 401 on ingest
- The agent gets HTTP 404 for the ingest URL
- The app cannot connect to the AI proxy
- The bundle script stopped at the first error
- The disk filled up and MySQL or PHP died
- The heartbeat signature is rejected for clock skew
- The proxy returned HTTP 400 for a prompt
- The score did not move after a fix
- The score dropped after a deploy
- The server page says offline while the agent log says 200
- The webhook receiver rejects the signature
- Two agents are posting for the same server
- UFW is installed and still inactive
- Which files change the integrity alert
- Why can the internet reach Redis when UFW denies 6379?
Report a problem
A bug, a stuck install or an alert that looks wrong.
Contact us
Plans, agencies, partnerships and anything else.
Security guides
Step-by-step fixes for servers, WordPress and AI apps.