dsh-plugin-cookie-whitelist: A DeepSeek Harness Plugin That Only Shares Cookies with Whitelisted Domains
This DSH plugin enables an AI agent to read web pages using your authenticated session only on individually user-approved domains. It reads Cookies via a browser extension, while a local receiver handles reception and domain-based filtering. Cookies are stored exclusively in an in-memory Vault and never persisted to disk. The agent accesses pages through a read-only CDP browser session, with no ability to fill out forms or submit data. The plugin provides four tools—cookie_whitelist_status, cookie_authorize, cookie_sync, and cookie_browse—making it ideal for scenarios where an agent needs to access authenticated pages while keeping Cookie usage strictly scoped and security risks contained.
Read MoreDeepSeek Harness Plugin: dsh-logout-button
Adds a "Log Out" capability to DeepSeek Harness Web: the server-side deletes the HttpOnly signed cookie, while the browser exposes a header button and a settings entry point. Supports two integration methods—bundle and profile patch—clearing only the cookie without touching local storage, making it ideal for quick sign-out on shared machines.
Read Moredsh-cookie-guard-mac: Automatically Clear Cookies Before dsh-auth Accumulation Is Complete on DSH Desktop
Each DSH desktop launch appends a long-lived dsh-auth-* Cookie without self-cleanup; after approximately seventy launches, the Cookie request header can exceed 16 KB, triggering HTTP 431 and "Web authentication failed" errors. The community plugin dsh-cookie-guard-mac detaches a background cleaner on host startup, removes matching Cookies and runs VACUUM after the session exits. It supports both macOS and Windows paths, and ships with a cookie_guard utility, HTML reports, and a left-side dashboard panel. To install, run dsh plugin --profile desktop add followed by a local path or .tgz archive, then restart DSH; to uninstall, use the remove subcommand and delete the guard log and PID files.
Read Moredsh-auth-cookie-sweep: Clean up stale dsh-auth session cookies on the host side
DSH may issue new `dsh-auth-*` session cookies for a new Host authority upon every startup. Browsers do not isolate by port under `127.0.0.1`, and the JAR size only increases over time without decreasing. Cookie request headers can exceed the Node.js 16 KiB limit, resulting in status code 431 or authentication failures. The community plugin `dsh-auth-cookie-sweep` wraps `writeHead` within the Host to expire foreign cookies based on thresholds such as `minStaleCookies` and `maxCookieHeaderBytes`, while maintaining concurrency protection. It introduces installation commands, bundle configuration, optional configurations, and manual cleanup steps for poisoned JARs. MIT License, maintainer GuYou9799.
Read Moredsh-cookie-janitor: Clean up expired dsh-auth-* cookies to avoid DSH request header overflow (431)
Every time DSH starts, it signs a dsh-auth-* cookie containing the port based on the listening address. The cookie scope is limited to the host and does not include the port. The browser attaches all historical cookies, causing the Cookie header to hit Node's 16 KiB limit after approximately 70 cookies, resulting in a 431 error, which manifests as a white screen or startup failure. yan3536's dsh-cookie-janitor (admin-security, 1 GitHub star, MIT) removes old cookies belonging to vanished ports upon request entry, sends Max-Age=0 in the response, and replaces 431 with a 302 fallback for overflowing requests. The currently active cookie remains untouched. It is installed via `dsh plugin --profile web add github:yan3536/dsh-cookie-janitor`; after installation, DSH must be completely exited and restarted. Configuration options such as `keepForeign`, `pruneRequests`, and `rescueOverflow` are written in the profile's `cordis.patch.yml`. The plugin only covers the Host's own HTTP listener; cleanup occurs during the next request and does not alter DSH's port strategy.
Read MoreDouban Data Export: Backing Up Viewing and Reading History with Cookies
Douban Data Export (@indiv-stand-alone/douban-export) is a community-maintained data-analysis Agent Skill published by user_4cc07111 (version 1.0.0). By utilizing the Douban Cookie provided by the user, it exports data such as viewing histories and reading records, organizing them into the project directory. This Skill is ideal for scenarios including Douban data backup, viewing history migration, and book, movie, and music data synchronization. Because this Skill is tagged with `requires_api_key=true`, a valid Douban Cookie must be prepared prior to enabling it. As the author was unable to retrieve the full contents of the SKILL.md file, the installation command and configuration fields are not listed in this article; for actual usage, please refer to the instructions provided with the Skill.
Read Moredsh-cookie-janitor: Converge desktop dsh-auth-* cookies to prevent request header overflow
The desktop version of DeepSeek Harness fails to start under local plaintext HTTP environments due to the accumulation of `dsh-auth-*` cookies generated upon each launch. Because these cookies are not invalidated by the upstream server, the cookie header exceeds the limit after approximately 70 restarts, resulting in a "Web authentication failed" error. The `dsh-cookie-janitor` plugin mitigates this by setting `Max-Age=0` for redundant `dsh-auth-*` cookies during authorization and API responses, thereby cleaning them without clearing the entire cookie jar. Based on the official README, this article details the installation process (local-plugins, junction/symlinks, cordis.patch.yml), log verification, and rollback procedures.
Read Moredsh-cookie-guard: Fix Web UI failure caused by accumulated DSH login cookies
Each time the DSH desktop client switches ports, it generates a new `dsh-auth` cookie that remains uncleaned. When the browser's Cookie request header exceeds the Node.js 16 KiB limit, a 431 error occurs, rendering the Web UI inaccessible. The client plugin `dsh-cookie-guard` resolves this by increasing `maxHeaderSize` prior to the `webServer` initialization, stripping redundant `dsh-auth` entries, and deleting expired or oversized cookies via `Set-Cookie`. Actual measurements in the README indicate a reduction of the header size from approximately 34 KB to 1 KB. This article details the root cause, installation commands, a three-step configuration guide, and verification methods, while also outlining policies for multi-instance retention and rollback procedures.
Read Moredsh-auth-cookie-guard:Reserving Request Header Budget for Local Listeners and Retiring Old Startup Cookies
Introducing the DSH Community Host plugin **dsh-auth-cookie-guard** (jitianjiyan). Repeated launches with a fixed profile lead to the accumulation of `dsh-auth` startup cookies on 127.0.0.1, causing the Cookie header to exceed Node’s default 16 KiB limit and resulting in 431 errors. This manifests as an unrecoverable failure in desktop welcome authentication. The plugin increases `maxHeaderSize` (default 64 KiB) after the web server is ready, preserves a specified number of cookies (`keep`) and those for the current port in request order, and removes the rest in batches. Install via `dsh plugin add dsh-auth-cookie-guard`, with optional `maxHeaderBytes` and `keep` configurations. Includes notes on security boundaries and multiple instances on the same host.
Read MoreReceiving and Sending Cookies in Android
This article author shares the difficulties encountered when implementing automatic login on the web using Okhttp3 and provides solutions. By default, Android does not save cookies, so it is necessary to manually save the obtained cookies into SharedPreferences; at the same time, read the cookies from SharedPreferences and add them to the request headers in each request. The specific steps include: defining constants ISLOGINED and COOKIE; writing the saveCookiePreference() method to save
Read More