
Research
/Security News
Bitwarden CLI Compromised in Ongoing Checkmarx Supply Chain Campaign
Bitwarden CLI 2026.4.0 was compromised in the Checkmarx supply chain campaign after attackers abused a GitHub Action in Bitwarden’s CI/CD pipeline.
This is the official `window.ai` client library. It provides the base interface for authenticating and using client-side AI.
This is the official window.ai client library. It provides the base interface for authenticating and using client-side AI.
The Window AI browser extension implements this interface to inject ai into the global window, thereby exposing the window.ai API to web applications without the need for any dependencies on their part. But any web application can leverage this client library to consume the window.ai API and add typechecking to it.
Note: you can interact with window.ai directly without dependencies (i.e this client library). The library's key benefits for API consumers are:
window.ai installation
import { getWindowAI } from 'window.ai';
// initialize the client
const ai = await getWindowAI()
ai.getCurrentModel()
ai.generateText(...)
ai.addEventListener(...)
ModelID is an enum of the available models, which are available as a TypeScript enum:
import { ModelID, parseModelID } from 'window.ai'
const model: ModelID = parseModelID(rawString)
ModelID contains a list of model identifiers that follow
the Hugging Face format as closely
as possible.
Some examples:
// "/" Splits the organization's name from the model name
"openai/gpt-3.5-turbo"
"openai/gpt-4"
"anthropic/claude-instant-v1"
"anthropic/claude-instant-v1-100k"
"anthropic/claude-v1"
"anthropic/claude-v1-100k"
"togethercomputer/GPT-NeoXT-Chat-Base-20B"
"cohere/command-nightly"
// "Local" is a special ModelID that represents an unknown model handler
// running locally on the user's computer.
"local"
NOTE: This is an evolving standard, and may change in the future. We are currently providing backwards compatibility within the Window AI extension for old model identifiers. See DeprecatedModelID for examples.
FAQs
This is the official `window.ai` client library. It provides the base interface for authenticating and using client-side AI.
The npm package window.ai receives a total of 532 weekly downloads. As such, window.ai popularity was classified as not popular.
We found that window.ai demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Research
/Security News
Bitwarden CLI 2026.4.0 was compromised in the Checkmarx supply chain campaign after attackers abused a GitHub Action in Bitwarden’s CI/CD pipeline.

Research
/Security News
Docker and Socket have uncovered malicious Checkmarx KICS images and suspicious code extension releases in a broader supply chain compromise.

Product
Stay on top of alert changes with filtered subscriptions, batched summaries, and notification routing built for triage.