mobium cookies
This tool on every surface: CLI · MCP · Python · JavaScript · Go · Java · .NET
Read, set or clear the current WebView's cookies
Vibium's cookies command, on a WebView — mobium context WEBVIEW_... first.
With no argument, lists the cookies the page's URL is sent, HttpOnly ones
included. With a name and a value, sets one and reads it back. clear
deletes them all, or those with the name given. An Android app's WebViews
share one cookie store, so a cookie set here is set for all of them.
Usage
mobium cookies [clear [name] | <name> <value>] [flags]
Flags
| Flag | Type | Default | What it does |
|---|---|---|---|
--domain | string | with a name and value: the cookie's domain (default: the page's host) | |
--expires | float | with a name and value: seconds since the epoch (default: a session cookie) | |
--http-only | bool | with a name and value: HttpOnly, so the page's scripts cannot read it | |
--path | string | with a name and value: the cookie's path (default: /) | |
--same-site | string | with a name and value: Strict, Lax or None | |
--secure | bool | with a name and value: sent only over https |
And the global flags.
Examples
Read the WebView's cookies
mobium cookies
Printed on an Android 15 emulator:
no cookies for about:blank

mobium cookies on an Android 15 emulator
Delete one cookie
mobium cookies clear session
More, from mobium cookies --help
mobium cookies
mobium cookies session abc123 --http-only --secure
mobium cookies clear session
mobium cookies clear
The tool
cookies calls app_cookies; its arguments and what every client calls it are there.