← Back to AI CostGuard Dashboard
Privacy Policy
Pi SoloHost AI CostGuard & x402 Compute Router ("AI CostGuard") is an open-source, self-hosted AI cost optimization utility built for Pi Desktop SoloHost operators and AI builders. This policy explains what data is processed, how it is stored, and how you maintain full control.
1. Local-First Execution & Zero Tracking
- When deployed via Pi SoloHost, AI CostGuard runs locally on your own machine bound strictly to loopback
127.0.0.1. - We do not deploy analytics trackers, advertising pixels, third-party profiling scripts, or behavioral tracking cookies.
- The static GitHub Pages preview executes all cost, hybrid routing, and redline calculations entirely in your browser memory without transmitting workload numbers to any external backend.
2. Data Processed & Purpose
- Operator Routing Policy & Audit Counters: Your monthly USD budget ceiling, chosen routing profile (
hybrid_80_20,ultra_frugal, orfrontier_quality), and bounded recent audit summaries (up to 20 entries) are stored locally in the Docker named volume/data/state.jsonso preferences survive container restarts. - Pi Operator Handle (
PI_OPERATOR_HANDLE): If auto-populated by SoloHost viadetect: pi_username, this handle is treated strictly as optional display/attribution metadata inside your local instance. It is never used for authentication, ownership, payouts, or access control, and is never transmitted to third-party servers. - Pi SDK Authentication & Testnet Payments: When opened inside Pi Browser and you explicitly initiate
Pi.authenticateorPi.createPayment, your browser communicates with official Pi Platform endpoints per Pi Network's platform rules. If you optionally supplyPI_API_KEYin SoloHost settings, it stays server-side in your container environment to relay/approveand/completecalls directly tohttps://api.minepi.com/v2/payments. The key is never exposed to browser JavaScript, HTML, logs, or public endpoints. - x402 Compute Metering Metadata: The
POST /api/x402/route-auditendpoint advertises only public EVM recipient metadata (X402_PAY_TO, network ID, and USDC unit price). AI CostGuard never requests, accepts, or stores wallet private keys or seed phrases.
3. Third-Party Services
The application only contacts external hosts when explicitly triggered by the operator:
https://sdk.minepi.com/pi-sdk.js— Official Pi SDK loader (client-side in browser when available).https://api.minepi.com/v2/payments/*— Only whenPI_API_KEYis configured and a Pi payment approval or completion is initiated.
4. Data Retention & Deletion
Because all runtime state resides solely inside your local SoloHost container volume (costguard_data), you can inspect, reset, or permanently erase all stored data at any time by uninstalling the SoloHost app or removing its Docker named volume.
5. Security & Contact
AI CostGuard is open-source under the MIT License. Security reports, privacy inquiries, or deletion questions can be submitted publicly via GitHub Issues at github.com/xgbtxy/pi-solohost-costguard/issues.