Documentation
¶
Overview ¶
Package pigidentity holds the product identity PiG sends to services in place of Pi's.
identity.json is the one source. The Go host reads it here, and automation/gen/pi-identity-patches.mjs applies the same values to the Pi JavaScript that the Node extension runtime vendors, so a Node extension that calls the Pi SDK or pi-ai sends the identity the Go host sends.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // OpenRouterReferer replaces provider-attribution.ts's `HTTP-Referer: https://pi.dev`. OpenRouterReferer string // OpenRouterTitle replaces `X-OpenRouter-Title: pi`. OpenRouterTitle string // OpenRouterCategories is `X-OpenRouter-Categories`, unchanged from Pi. OpenRouterCategories string // NvidiaBillingOrigin replaces `X-BILLING-INVOKE-ORIGIN: Pi`. NvidiaBillingOrigin string // CloudflareUserAgent replaces the Cloudflare `User-Agent: pi-coding-agent`. CloudflareUserAgent string // OpenCodeClient replaces `x-opencode-client: pi`. OpenCodeClient string // CodexOriginator replaces the OpenAI Codex `originator: pi`, sent on requests and in the login URL. CodexOriginator string // XAIReferrer replaces the xAI device-code `referrer: pi`. XAIReferrer string // AgentMarker replaces the `AI_AGENT=pi` marker child processes inherit. AgentMarker string // UserAgentProduct replaces the `pi` product name in Pi's user agents. UserAgentProduct string // HostedOrigin is the PiG-operated origin that replaces Pi's pi.dev (D64). HostedOrigin string )
pig divergence (D26): every value below replaces a Pi-branded literal in upstream. Values a provider requires from a specific client (GitHub Copilot's editor headers, Anthropic OAuth's claude-cli) are not here; PiG keeps them as Pi does.
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.