Skip to content

ADR 0004 Optional Login

Vitor edited this page Dec 3, 2026 · 1 revision

0004. Login is optional and opt-in, through a cookie file

Status: accepted (2026-12-02)

Context

Some Pinterest capabilities need a logged-in session: visual search, private boards, related pins with real ids that can be chained. Scraping while logged in can get the account restricted.

Decision

  • Anonymous by default. A logged-in session is used only when BOTTICELLI_PINTEREST_COOKIE_FILE points to a cookie file, which the user creates outside any chat, preferably from a secondary account.
  • The file must not be readable by group or others, or it is refused.
  • The cookie is used only for capabilities that need it, or as a fallback when an anonymous call answers 401/412.
  • The cookie value never appears in logs, errors or tool output.

Consequences

  • capabilities() for Pinterest depends on whether a valid session exists.
  • visual_search ships only if the logged-in probe works (M5). Otherwise the capability stays false and the reason is documented.

Clone this wiki locally