@oshinoko/pi-ip-whitelist1.0.1
IP whitelist extension for Pi
Untested on omp
This is a pi package. No one has reported whether it works on omp yet. If you try it, add your result below.
Reports 0
No reports yet.
Readme
@oshinoko/pi-ip-whitelist
Pi extension that blocks user input and tool calls unless your current public IP is on an allowlist. The list is stored locally at ~/.pi/agent/ip-whitelist.json.
Requirements
- Pi with package support
- Network access to one of the public-IP services used by the extension
Install
pi install npm:@oshinoko/pi-ip-whitelist
Restart Pi after installation. To try the extension for one run without saving it:
pi -e npm:@oshinoko/pi-ip-whitelist
Configure
Run this command inside Pi:
/ip-whitelist
Choose Добавить текущий IP to detect and add your current public IP, or Добавить IP to enter one or more IPv4/IPv6 addresses separated by spaces, commas, or semicolons. Approve adding the detected address when prompted.
Use Проверить сейчас to verify access. Use Удалить IP to remove an address. The allowlist is saved automatically; no manual file editing is needed.
If the list is empty, the extension blocks input. If it cannot determine your public IP, it fails closed and blocks input. It tries api.ipify.org, ifconfig.me/ip, then icanhazip.com.
Manage
pi list
pi update --extensions
pi remove npm:@oshinoko/pi-ip-whitelist
The extension checks your public IP for user input and before tool calls. An IP change can block the current session until you add the new address. Keep in mind this checks the public IP seen by the listed services, not your local network address.
License
MIT