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.
| Action | Description |
|---|---|
| Back up data | Export extension data to a JSON file. Core data comes from chrome.storage.local, including mocks and settings. |
| Migrate data | Restore a backup. This overwrites the current local data, so use it carefully. |
Supported file format:
{
"app": "reqable",
"version": 1,
"exportedAt": "2025-01-01T00:00:00.000Z",
"data": {
"local": {}
}
}Feature switches
| Option | Description |
|---|---|
| Language | Follow browser (default), Chinese, or English. |
| Theme | Follow system (default), light, or dark. |
| YApi service URL | Root URL of your team's self-hosted YApi, such as https://yapi.example.com. Required before YApi import. |
| Enable Mock | Global 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
| Protocol | Typical providers |
|---|---|
| OpenAI | OpenAI and compatible services such as DeepSeek, MiniMax, and GLM. |
| Anthropic | Anthropic or compatible endpoints. |
| Gemini | The 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, orgemini-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
| Strategy | Default behavior |
|---|---|
| Precise | Requires the URL and request body to match exactly. This is the initial default. |
| Endpoint | Matches only the URL path and ignores the query and body. |
| Custom | Starts with the complete URL, current request method, and request body. |
| Smart | Tries 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, and504. - Cloudflare/CDN statuses:
520through526.
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.
Sidebar settings
| Option | Description |
|---|---|
| Keep state when closing | Hide instead of destroying the sidebar so its state is available next time. |
| Close automatically when switching tabs | Destroy the sidebar after leaving the current browser tab. |
Editor display
| Option | Description |
|---|---|
| Show line numbers | Show Monaco Editor line numbers. Disable them to reduce the left gutter. |
Layout
| Option | Values |
|---|---|
| Mock details layout | New 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:
URLquery parameters.- Top-level fields in a
JSONrequest body.
The defaults include _t, t, timestamp, and _timestamp.
Enter one name per line:
_t
timestamp
_vReset 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.
