@langchain/openai

npm

Is @langchain/openai safe to use?

The latest brin safety scan flagged @langchain/openai v1.2.4 with risk indicators that warrant review. No known CVE vulnerabilities. Trust score: 85/100. Review the findings below before use. This is an automated assessment and may contain errors.

Install (safety-checked)

@langchain/openai Has Warnings

Warnings detected due to potential concerns

warning
CVEs

0

Threats

0

Install Scripts

0

Risk Indicators

  • Can spawn child processes

brin Recommendations

  • This package has warnings detected. Evaluate the specific concerns before proceeding.

Install with brin add @langchain/openai to automatically apply these checks before installation.

This is an automated, point-in-time assessment and may contain errors. Findings are risk indicators, not confirmed threats. Security posture may change over time. Maintainers can dispute findings via the brin review process.

@langchain/openai Capabilities & Permissions

What @langchain/openai can access when installed. Review these capabilities before using with AI agents like Cursor, Claude Code, or Codex.

Network Access

This package makes network requests.

api.js.langchain.comdmcp-server.deno.devdocs.langchain.comen.wikipedia.orgexample-resource.azure.openai.comexample.comgithub.comjs.langchain.commcp.deepwiki.commy-openai-instance.openai.azure.com+6 more
Protocols: https

Filesystem Access

Reads and writes to the filesystem.

.env (rw).env (rw).env (rw).env (rw).env (rw).env (rw).env (rw).env (rw)+2 more

Process Spawning

This package can spawn child processes.

Environment Variables

Accesses the following environment variables.

AZURE_OPENAI_API_DEPLOYMENT_NAMEAZURE_OPENAI_API_INSTANCE_NAMEAZURE_OPENAI_API_KEYAZURE_OPENAI_API_VERSION

AGENTS.md for @langchain/openai

Good instructions lead to good results. brin adds @langchain/openai documentation to your AGENTS.md so your agent knows how to use it properly—improving both safety and performance.

brin init

Vercel's research: 100% accuracy with AGENTS.md vs 53% without →

@langchain/openai Documentation & Source Code

For the full @langchain/openai README, API documentation, and source code, visit the official package registry.

Frequently asked questions about @langchain/openai safety

Weekly Downloads

2.0M

Version

1.2.4

License

MIT

Last Scanned

Feb 1, 2026

Trust Score

85/100·Legitimacy signals, not safety

Capabilities

Network

Connects to: api.js.langchain.com, dmcp-server.deno.dev, docs.langchain.com...

Filesystem

Reads & Writes files

Process

Spawns child processes

Environment

Accesses: AZURE_OPENAI_API_DEPLOYMENT_NAME, AZURE_OPENAI_API_INSTANCE_NAME, AZURE_OPENAI_API_KEY...