PortGate

Blueprints · AI & LLMs

Production 15 min · Local AI

vLLM on localhost

Stages a vLLM server bound to 127.0.0.1. Put the PortGate AI proxy in front if you want caps.

Why this should not be public

vLLM's OpenAI-compatible server accepts requests without a key unless you set --api-key, so a public instance is free GPU time for anyone who finds it.

Live config

Baked-in protections

Step 1 · bash

Start command

/root/portgate-blueprints/vllm-start.sh

Replace the model name. Do not add --host 0.0.0.0.

#!/bin/sh
set -eu
vllm serve "facebook/opt-125m" --host 127.0.0.1 --port "8000"

Step 2 · bash

Read-only check

/root/portgate-blueprints/vllm-check.sh

Prints status. It does not change the service.

#!/bin/sh
set -eu
ss -tulpn | grep "8000" || echo "Nothing is listening on 8000."