Skip to content

Settings

Manage all options from the sidebar Settings panel. The sections below follow the same order as the UI. Persistent data such as mock rules and settings is stored in chrome.storage.local; extension storage is not automatically synchronized across devices by Chrome.

Data management

Use the controls at the top of Settings to back up or migrate local extension data.

ActionDescription
Back up dataExport extension data to a JSON file. Core data comes from chrome.storage.local, including mocks and settings.
Migrate dataRestore a backup. This overwrites the current local data, so use it carefully.

Supported file format:

json
{
  "app": "reqable",
  "version": 1,
  "exportedAt": "2025-01-01T00:00:00.000Z",
  "data": {
    "local": {}
  }
}

Feature switches

OptionDescription
LanguageFollow browser (default), Chinese, or English.
ThemeFollow system (default), light, or dark.
YApi service URLRoot URL of your team's self-hosted YApi, such as https://yapi.example.com. Required before YApi import.
Enable MockGlobal Mock switch. When disabled, no rule replaces requests or responses.

AI model configuration

Configure the model service used to generate and refine mock data.

API protocol

ProtocolTypical providers
OpenAIOpenAI and compatible services such as DeepSeek, MiniMax, and GLM.
AnthropicAnthropic or compatible endpoints.
GeminiThe official Google Gemini API.

Fields

  • Base URL — API endpoint. Its placeholder changes with the selected protocol.
  • API Key — credential stored in a password-style field.
  • Model — for example gpt-5.4, claude-opus-4-7, or gemini-2.5-pro-preview.

TIP

Many providers, including DeepSeek, GLM, and MiniMax, expose an OpenAI-compatible API. Select the OpenAI protocol and enter the provider's Base URL.

Default Mock strategy

These options initialize new mock rules. Changing a default does not modify existing rules until you explicitly apply it in bulk.

Default match strategy

StrategyDefault behavior
PreciseRequires the URL and request body to match exactly. This is the initial default.
EndpointMatches only the URL path and ignores the query and body.
CustomStarts with the complete URL, current request method, and request body.
SmartTries precise matching first, then falls back to endpoint matching.

Default capability switches

  • Ignore domains when matching.
  • Replace responses (enabled initially).
  • Simulate errors.
  • Simulate timeouts.
  • Rewrite request bodies.
  • Rewrite request headers.
  • Rewrite query parameters.

Apply defaults in bulk

  • Apply to current group updates existing mocks only in the selected group.
  • Apply to all mocks updates every rule in every group.

Cache recovery

Use a locally cached successful response when an API returns a temporary server error.

Enable recovery

When enabled, recovery is attempted for:

  • Standard HTTP statuses: 500, 502, 503, and 504.
  • Cloudflare/CDN statuses: 520 through 526.

Maximum cache entries per domain

The default is 1500. Once the limit is reached, the oldest entries are evicted in FIFO order. The configurable range is 100 to 10000.

Applicable domain rules

Enter one rule per line in the format type domain:

  • regex .*example\\.com.* — regular-expression match.
  • fully example.com — exact match.
  • include localhost — substring match.

Leave the field empty to apply recovery to all pages. The field is saved when it loses focus.

Recorded cache domains

This list shows domains that have produced cache data while recovery is enabled. At most the 300 most recent domains are shown.

OptionDescription
Keep state when closingHide instead of destroying the sidebar so its state is available next time.
Close automatically when switching tabsDestroy the sidebar after leaving the current browser tab.

Editor display

OptionDescription
Show line numbersShow Monaco Editor line numbers. Disable them to reduce the left gutter.

Layout

OptionValues
Mock details layoutNew mode (drawer) or Legacy mode (split view).

Advanced settings

Timestamp parameter names

Declare dynamic field names that should be removed before matching and hashing. This applies to:

  • URL query parameters.
  • Top-level fields in a JSON request body.

The defaults include _t, t, timestamp, and _timestamp.

Enter one name per line:

text
_t
timestamp
_v

Reset settings

The Reset to defaults button restores Mock, AI, YApi, recovery, sidebar, editor, layout, and advanced options. Language and theme preferences are preserved.

WARNING

Resetting affects settings only and does not remove mock rules. Use Data migration if you need to replace all local data.

Released under the MIT License. · [Privacy Policy](/en/privacy) · [Terms of Service](/en/terms) · Contact: [arktomson99@gmail.com](mailto:arktomson99@gmail.com)