Inspect traffic
Filtering
Filter captured traffic in Cloak Proxy by URL, host or status, search every header and decoded body at once, and combine conditions, content chips and presets.
Filters cut a busy session down to the few requests you care about: one endpoint, every failed call, or every request and response that mentions a user ID, anywhere in its headers or body. Filters only change what you see; nothing is deleted, and clearing a filter brings every request back. To say exactly what you want in one line, such as status:5xx app:ShopApp dur:>500ms -host:cdn.*, type a query in the quick filter: see Query language.
There are four kinds of filter, and they all apply at once:
- The quick filter: the search field at the right of the filter bar, focused with ⌘ F.
- Content filters: the text tabs in the filter bar above the list, for HTTP or HTTPS, JSON, images, GraphQL and more.
- Multiple filters: several conditions combined with all or any, which you can save as presets.
- The sidebar: one app or one domain.
A request is shown only when it passes every active filter. The bottom bar then reads N of M rows. Each traffic tab keeps its own filters.
Use the quick filter
Section titled “Use the quick filter”-
Press ⌘ F, or click the search field at the right of the filter bar, next to Filters.
The placeholder tells you what it searches: Filter URLs or type status:5xx… by default, Filter host or type status:5xx… or Filter status code (regex) for other choices, and Search everything for All. Typing a field, such as
status:, makes it a query. -
To search somewhere other than the URL, click the magnifying glass at the left of the field.
- Under Search in, choose the part of the request to search.
- Under Match, choose how the text must match.
-
Type your text.
The list updates as you type for URL, Host, Method and Status Code. For headers, bodies and All, it waits for a short pause in your typing (a quarter of a second), so searching every body doesn’t run on each keystroke. At the right of the filter bar, a count such as 12 of 27,053 shows how many requests match.
-
Press Esc or click the clear button in the field to remove the text.
Search in
Section titled “Search in”| Field | Searches |
|---|---|
| URL | The full URL, including scheme, host, path and query |
| Host | The host name only |
| Method | GET, POST and so on |
| Status Code | The response status, such as 404. Empty for requests without a response. |
| Request Header | Each request header as one Name: Value line. A request matches if any line matches. |
| Response Header | Each response header as one Name: Value line |
| Headers | Request and response headers |
| Request Body | The request body, decompressed |
| Response Body | The response body, decompressed |
| Body | The request and response bodies |
| All | URL, method, status code, every request and response header, and both bodies |
| Contract Since 0.4.0 | What API Contracts found: violation, error, warning or passed, and each problem’s kind, JSON path and message. Contract contains violation shows the requests that broke their spec. |
| GraphQL Since 0.4.0 | The GraphQL operation (mutation CreateOrder, its name or type), and for a 2xx response with GraphQL errors the word errors, each error’s code and message. |
| Query Since 0.4.1 | The text is a typed query; words in it search everything. A Contains filter on any other field also reads text with a field in it, such as status:5xx, as a query. |
With Contains and Not Contains, bodies are searched in full. With the other conditions, only the first 2 MB of each body is checked.
All conditions ignore upper and lower case. Contains and Not Contains compare the letters A to Z without case; accented and non-Latin letters must match exactly.
| Match | Matches when the value… |
|---|---|
| Contains | Contains the text anywhere |
| Not Contains | Doesn’t contain the text. For headers and All, none of the values may contain it. |
| Starts With | Begins with the text |
| Ends With | Ends with the text |
| Equals | Is exactly the text |
| Regex | Matches the regular expression (ICU syntax, as used by macOS) |
Examples
Section titled “Examples”| To find | Search in | Match | Text |
|---|---|---|---|
| Every server error | Status Code | Starts With | 5 |
| Client and server errors | Status Code | Regex | ^[45] |
| Requests that send a bearer token | Request Header | Contains | Authorization: Bearer |
| Everything except analytics | Host | Not Contains | analytics |
| A user ID anywhere in the traffic | All | Contains | usr_42ab |
| One versioned endpoint | URL | Regex | /v[0-9]+/users/[0-9]+$ |
| Responses that set cookies | Response Header | Starts With | Set-Cookie |
Search every request and response
Section titled “Search every request and response”Set the quick filter to All and Contains to find a value anywhere in the session: an order ID, a token, an email address or an error message. Cloak Proxy looks in every URL, every request and response header, and every request and response body, decompressed, and shows the requests where it appears.
-
Press ⌘ F.
-
Click the magnifying glass at the left of the field and choose All under Search in and Contains under Match.
To look only in one part, choose Request Header, Response Header, Headers, Request Body, Response Body or Body instead.
-
Type the value, for example
fc68188e.The list shows every request that contains it, and the Found In column says where.
Upper and lower case don’t matter, and the whole of each body is searched. Searching is fast even for large sessions: in a session of 30,000 requests with 77 MB of bodies, a search takes about 15 ms once the bodies have been searched once. The first search decompresses compressed bodies; Cloak Proxy keeps up to 256 MB of decompressed bodies in memory so later searches don’t decompress them again. The search runs on all of your Mac’s processor cores.
The Found In column
Section titled “The Found In column”While a Contains filter searches headers or bodies (any header or body field, or All), the traffic list shows a Found In column after URL. It lists every place the text appears in that request and its response, most useful first:
| Label | The text is in |
|---|---|
| Res body | The response body |
| Req body | The request body |
| Res headers | A response header, name or value |
| Req headers | A request header, name or value |
| URL | The URL |
| Method/status | The method or the status code (with All) |
For example, Res body · Req headers means the value came back in the response body and was also sent in a request header. The column disappears when you clear the filter or choose another field or condition. You can’t sort by it or hide it from the column menu. See Traffic list.
When a URL search finds nothing
Section titled “When a URL search finds nothing”If a Contains search of URL, Host, Method or Status Code matches no requests, the count turns orange and a Search Everything button appears next to it. Click it to switch the field to All and search headers and bodies too. (This button only changes the filter; it isn’t the Search Everything panel you open with ⇧ ⌘ A.)
Trace what you found
Section titled “Trace what you found”When the filter text is at least 3 characters (and isn’t a query), a Trace button appears next to the count. It opens Trace Value for the text: the response the value first came from, every request that sent it afterwards, and exactly where in each one.
Filter by content type and scheme
Section titled “Filter by content type and scheme”The text tabs in the filter bar, above the traffic list, filter by what a request carries.
The content filters, the quick filter and Filters, all in the filter bar.
- Quick filter (⌘F). Click the magnifying glass to choose the field and match.
- All clears every content filter
- HTTP and HTTPS filter by scheme
- Content types: click one, ⌘-click to add more
- Multiple filters and presets
- Click a tab to show only that kind of request. Click it again to turn it off.
- ⌘-click more tabs to show several kinds at once, for example JSON and GraphQL. ⌘-click a selected tab to remove it.
- HTTP and HTTPS filter by scheme. They work separately from the other tabs, so HTTPS plus JSON shows JSON sent over HTTPS.
- Violations Since 0.4.0 appears while an API contract is checking traffic. It shows only requests that broke their spec, by adding a Contract contains violation condition to Filters.
- GraphQL Errors Since 0.4.0 appears once a GraphQL response has come back with errors, with a count; it adds a GraphQL equals errors condition.
- In Scope Since 0.5.1: only requests in the active scope, in every tab. Shown while a scope is active.
- All turns off every tab, including HTTP and HTTPS.
- When the list is too narrow for every tab, for example with the inspector on the right, in Split View, or with Violations or GraphQL Errors showing, the tabs that don’t fit go into a More menu at the end. Tabs that are on always stay in view. ⌘-click in the menu combines, as on a tab.
To hide the filter bar, click Filter in the bottom bar. The quick filter is part of it; ⌘ F shows the filter bar again and puts the cursor in the quick filter.
| Tab | Shows requests where |
|---|---|
| HTTP | The URL scheme is http |
| HTTPS | The URL scheme is https |
| JSON | The content type contains json |
| Form | The request body is application/x-www-form-urlencoded or multipart/form-data |
| XML | The content type contains xml |
| JS | The content type contains javascript or ecmascript |
| CSS | The content type is text/css |
| GraphQL | The request is a GraphQL query, mutation or subscription sent over HTTP |
| AI Since 0.4.0 | Calls to model APIs: OpenAI Chat Completions and Responses, Anthropic Messages, Gemini, Ollama and OpenAI-compatible servers. See LLM Inspector. |
| Document | The content type is text/html |
| Image | The content type starts with image/ |
| Media | The content type starts with audio/ or video/, or is an HLS playlist (mpegurl) |
| Font | The content type starts with font/, or is WOFF or OpenType |
| WebSocket | The request upgrades to a WebSocket |
| Other | None of the above |
The content type is the response’s Content-Type, or the request’s when the response has none. A request can belong to more than one tab: a GraphQL request is also JSON, and a form post that returns HTML is both Form and Document.
Combine several conditions
Section titled “Combine several conditions”Use multiple filters when one condition isn’t enough, for example “URL contains users and status equals 200”.
-
Click Filters at the right of the filter bar.
A panel opens with one empty condition.
-
For each condition, choose a field, a match and type a value. They use the same fields and matches as the quick filter.
-
Click Add Condition for another row, or the minus button to remove one.
-
At the top, choose whether requests must match all or any of the conditions.
The panel shows how many requests match as you edit, for example 3 of 38 requests match.
-
Click outside the panel to close it. The button shows the number of active conditions, such as Filters 2.
Two conditions that must both match.
- Match all or any of the conditions
- Load or delete saved presets
- Remove a condition
- Live count of matching requests
- Save these conditions as a preset
Conditions with no value are ignored. The conditions apply together with the quick filter, the content filters and the sidebar. Clear resets the panel to one empty condition.
The panel also shows its conditions As a query, and Move to Query Bar moves them into the quick filter. A Query condition takes a typed query, for conditions the panel has no field for, such as dur:>500ms. See Queries and the Filters panel.
Save and reuse presets
Section titled “Save and reuse presets”Presets save a set of conditions under a name so you can bring them back in any session. Cloak Proxy remembers them between launches.
-
Set up your conditions in the multiple filters panel.
-
Click Save as Preset…. It’s available once at least one condition has a value.
-
Type a name and click Save (or press Return).
Saving with the name of an existing preset replaces it.
-
Open the multiple filters panel.
-
Click Presets and choose a preset by name.
Its conditions and its all or any setting replace what’s in the panel.
- Open the multiple filters panel.
- Choose Presets › Delete and pick the preset.
Reset every filter
Section titled “Reset every filter”When any filter is on, a Reset button appears at the right of the filter bar. It clears the quick filter text, the multiple filter conditions, every content filter, and the sidebar selection (back to All Traffic). Saved presets are kept.
You can also reset from the empty list (Reset Filters) or from Search Everything (Reset Filters). Search Everything also has a Show Only action for each content type, such as Show Only JSON.