I reverse-engineered Codex's web search for use with Claude, and any local model Developer Mateus DCC released pi-gpt-search, an open-source npm package that gives any Pi model (Gemini, Claude, local models, OpenRouter) real-time web search by reusing OpenAI Codex's standalone search endpoint with zero GPT tokens consumed. The tool, installable via npm or GitHub, supports slash commands and LLM tools, reuses existing Codex credentials, and preserves data privacy by sending only queries. Native, Model-Independent Web Search for Pi using OpenAI Codex Standalone Search Engine. pi-gpt-search gives any Pi model Gemini, Claude, local models, OpenRouter real-time web search capabilities by reusing OpenAI Codex's standalone web retrieval infrastructure - with ZERO GPT Model Inference Turns and ZERO GPT Tokens Consumed . Install via npm: pi install npm:pi-gpt-search Or install via GitHub: pi install https://github.com/mateusdcc/pi-gpt-search Or install project-locally for your current repository -l flag : pi install npm:pi-gpt-search -l Or try it temporarily in a single session without installing: pi -e npm:pi-gpt-search - 🚀 Zero GPT Tokens Spent: Pure web retrieval via OpenAI's backend endpoint. No GPT/Codex LLM turns are executed, meaning 0 input tokens, 0 output tokens, and 0 reasoning credits are billed . - 👑 Model Sovereign: Your active Pi model e.g., Gemini 3.5 Flash / Gemini 3.1 Pro remains the sole reasoning model. - 🛠️ Slash Command & LLM Tools: Works both automatically as LLM tools codex-search & codex-research and as a direct user command /gpt-search . - 🔑 Credential Reuse: Automatically uses your existing codex login session ~/.codex/auth.json or custom .env tokens. - 🛡️ Data Privacy: Query-only by default. Does not send conversation history, project files, or system prompts to search. Pi Coding Agent └── Gemini or active model ├── codex-search query: "latest Rust release" │ └── Codex/OpenAI Standalone Search API /codex/alpha/search │ └── Structured Results Title, URL, Snippet │ └── Gemini continues reasoning & answers user │ └── codex-research search query: ... , open: ... , find: ... └── Multi-Step Web Research Harness └── Deep document content, pattern matching & citations Run either Codex tool yourself without spending LLM tokens: /codex-search Rust 1.97 release notes /codex-research OpenAI Codex GitHub repository Use codex-search for a quick lookup and codex-research when you want more comprehensive results. The direct commands preserve their tool defaults: short for codex-search and long for codex-research . /gpt-search