XNews

Practical tips for using Claude and ChatGPT

Practical tips for using Claude and ChatGPT

Two practical tips: a method to extract ChatGPT session query keywords and a cost/setup tip for running Claude Code locally.

Key insights

Method to extract ChatGPT's internal search_model_queries from a session

A step-by-step technique shows how to reveal the exact keywords and queries ChatGPT uses for search results within a 30-day window. Steps: open a non-temporary chat and ask a question; after the response, use the browser's Inspect tool and refresh; copy the session ID from the URL; in the Network tab locate the request containing that ID; open its Response and search for the string "search_model_queries" to view the precise query terms. The post then recommends placing these discovered query phrases on a target page (e.g., FAQ) and building backlinks to those pages to improve visibility.

Practical setup and cost control tips for Claude Code

A short practical guide for experimenting with Claude Code recommends purchasing a small initial credit (example: 10 RMB on a secondhand marketplace) to avoid overspending, and then setting environment variables for Anthropic endpoints: add ANTHROPIC_BASE_URL and ANTHROPIC_AUTH_TOKEN to .zshrc and source it. The post provides exact shell commands to export the base URL and auth token and notes that these steps are used to start Claude Code locally.

Source posts