Web AI API Sniffing and Verification
Sniff
Base URLandAPI Keyon webpages and verify them instantly. Supports right-click checks and automatic detection with a configurable website scope.
Background
When browsing AI communities (e.g., Linux.do), GitHub Issues, or technical documentation, you often encounter shared test keys. The traditional approach is to copy the Base URL, copy the Key, open the extension, fill in the configuration, and click verify.
The Web AI API Sniffing feature simplifies this process into:
- Select text → Right-click "Check AI API" → Test directly.
- Or: Select or copy content containing credentials to receive a confirmation prompt.
Core Capabilities
1. Right-Click Menu Check (Context Menu)
Select text containing a Base URL or API Key on any webpage, right-click, and select "Check AI API". The extension will attempt to extract valid interface information from the selected text (or clipboard) and pop up a test overlay within the current page.
2. Automatic Sniffing (Auto Detect)
By default, selection and copy actions on all HTTP/HTTPS pages can trigger detection of the selected or copied content. Opening a post alone does not scan the entire page.
- If a likely valid
Base URL + Keycombination is extracted, a lightweight prompt will pop up in the upper right corner of the page. - Click the prompt to open the test dialog.
- Enhanced detection can also recognize Base64-encoded keys with known formats. If the API URL is missing, add it in the dialog before testing. Selected HTTP/HTTPS link destinations are included in extraction.
3. In-page Test Dialog
Perform the following operations without leaving the current webpage:
- Automatic Extraction: Automatically separate
Base URL,Secret Key, andAPI Typefrom the source text. - Instant Testing: Click "Start Test" to verify the connectivity of the key and available models.
- Test mode: Choose
Streaming(the default) orNon-streaming. Generation tests use that mode without switching automatically on failure. Results and verification history saved to the API Credential Library show the mode used. Fetching the model list is unaffected. - Get Model List: Fetch the full list of model IDs supported by the upstream site with one click.
- Save to API Credential Library: Once verified, save it with one click to the extension's API Credential Library for later copying, verification, or export to tools like CherryStudio.
Configuration and Customization
Navigate to Settings → Basic Settings → Web AI API Check to configure the following:
1. Basic Switches
- Right-Click Menu: Whether to show "Check AI API" in the browser's right-click menu.
- Auto Detect: Whether to detect selected or copied content on participating websites.
2. Website Black/White Lists
- Whitelist: When nonempty, only matching pages can prompt automatically. When empty, unlisted websites can also participate.
- Blacklist: Blocks automatic prompts on matching pages. With both lists empty, all HTTP/HTTPS pages are allowed by default.
- Overlap priority: When both lists match, use the selected blacklist-first (default) or whitelist-first policy.
- Long lists show three rules and a faded preview of the next rule. Expand or collapse each list independently. Enter a URL to preview the decision and reason locally without making verification requests.
3. Add and Edit Rules
- Click Add beside a list to open the editor. Paste multiple lines or select multiple browser-tab websites. Each pending rule has its own syntax; confirmation saves and deduplicates the batch.
- Wildcard (default):
linux.dobecomes*://linux.do/*and matches that host.*.example.commatches both the root domain and its subdomains. Usehttps://example.com/private/*to restrict the scheme and path. Omitting a port ignores the page port; an explicit port must match. - Exact URL: Matches the complete URL, including query parameters and fragments. Shortcuts select the current page, whole website, or subdomains.
- Regular expression: Uses case-insensitive JavaScript RegExp. Unsafe or invalid expressions cannot be saved.
- Existing domain, path and regex rules retain their matching behavior. An existing empty restricted scope becomes an explicit block-all rule. On upgrade, an old empty allowlist without a configured scope becomes all websites; disabled switches remain disabled.
- Click Add or Save to persist changes. Invalid input, save failures and cancellation retain the draft; cancellation does not write rules. Use the inline edit and remove buttons for saved rules.
4. Control This Website from the Page
Click Stop auto-detect on this website in the notice to save a disabled choice for the current website. You can also open the check panel from the browser context menu and toggle Auto-detect on this website. This does not change the global switch. The lists and overlap priority still determine the effective result; open settings from the panel if a rule continues to block it. Manual context-menu checks remain independent of automatic-detection site rules.
Privacy and Security
- Local Extraction: The sniffing and extraction process is executed entirely locally in your browser.
- Request timing: The selection or copy notice does not make API verification requests. After you confirm opening the panel with a complete URL and key, the panel may fetch models. Tests send requests to the configured
Base URL. - Credential storage: Extracted keys are persisted only when you choose to save them to the API Credential Library.
Related Documents
- API Credential Library: Manage saved sniffing results.
- Interface Verification and Health Status: Learn how the extension verifies interfaces.
