Policies are scoped to a teamspace. Only owners and admins can change them; developers have read-only access.
Source Type Access
The Source Type Access card toggles entire categories of sources on or off. Disabling a type removes all of its content from results for the whole teamspace.Library Filters
The Library Filters card decides which public libraries are accessible. Choose one of two modes:Filter by Quality
Allow any public library that clears the quality bar you set. Available filters:Choosing a trust score above All excludes libraries that do not have a trust score yet. Add a library to your Wild Card Libraries if you need it anyway.
Choosing one or more licenses excludes public GitHub repositories without a license, and those whose license is not on your list. Licenses match exactly, so a list that names
MIT does not admit mit.- Blocked Libraries — excluded, even if they pass every filter.
- Wild Card Libraries — always allowed, even if they fail the filters or are blocked.
- Organization —
/vercelcovers the org’s libraries, such as/vercel/next.js, but not a different org that starts with the same text, such as/vercel-labs/ai. - Library —
/vercel/next.jscovers that library only. - Domain —
stripe.comcovers every library whose documentation site host is that domain or a subdomain of it, such asdocs.stripe.com. It does not match a look-alike host such asmystripe.comorstripe.com.evil.example.
Select Manually
Ignore the quality bar entirely and grant access only to a hand-picked list of libraries. Anything not on the list is inaccessible. The allowed list accepts the same organization, library, and domain entries as the override lists above; a library outside the list is refused on both search and direct documentation requests.The action dock at the bottom of the Policies tab shows the number of libraries currently accessible under your settings, so you can see the impact before saving.
Managing Policies via API
The same configuration is available over the REST API using a teamspace API key:- Get Policies —
GET /api/v2/policiesreturns the current configuration and accessible library count. - Update Policies —
PATCH /api/v2/policiesapplies an incremental update; only the fields you include are changed. AdddryRun: trueto get the policies and library count the update would produce, without saving.