Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

langchain-flagsmith

Latest version: v0.1.0

Overview

Last scanned
29 Nov 2026
Published
29 Nov 2026
PyPI package Publisher: jvxoq
0 Stars
0 Forks
1 Versions
Python Repo language

Scan summary

langchain-flagsmith was last scanned on 29 Nov 2026 at version 0.1.0. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: First and only release on 29 Nov 2026.
  • Findings: No rules fired in version 0.1.0.

Versions

1 version published
Versions and the rules that fired in each
VersionPublishedStatus
0.1.0 LATEST 29 Nov 2026 No rules fired

No rules fired in 0.1.0

Findings

Findings for v0.1.0. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 0.1.0; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

langchain-flagsmith

PyPI - Version PyPI - License PyPI - Python Version

The Flagsmith integration for LangChain and LangGraph.

Quick Install

pip install langchain-flagsmith

Add [langgraph] for hand-built LangGraph graphs, or [agent] to also install LangChain for create_agent.

What is this?

langchain-flagsmith lets you control a LangChain agent from Flagsmith feature flags. Flip a flag and the running agent picks it up on its next refresh. No redeploy.

One flag each for:

  • Model: llm_model switches between models you list in a catalog.
  • Prompt: system_prompt replaces the system message.
  • Tools: tool_<name> turns one tool on or off.
  • Kill switch: agent_enabled stops the agent with a safe answer.

Segments and percentage splits work too, so you can give one model to beta users or A/B test a prompt.

Usage

pip install "langchain-flagsmith[agent]" langchain-openai
import os

from langchain.agents import create_agent
from langchain_openai import ChatOpenAI
from langchain_flagsmith import AgentFlags, Catalog, Fixed

flags = AgentFlags(
    os.environ["FLAGSMITH_SERVER_KEY"],  # server-side key, starts with "ser."
    catalog=Catalog(
        default="fast",
        entries=[
            Fixed("fast", lambda: ChatOpenAI(model="gpt-4o-mini")),
            Fixed("smart", lambda: ChatOpenAI(model="gpt-4o")),
        ],
    ),
    refresh_interval=5,  # seconds between flag fetches. Default 60. A webhook is instant.
)

agent = create_agent(ChatOpenAI(model="gpt-4o-mini"), tools=[], middleware=[flags.middleware()])

out = agent.invoke(
    {"messages": [("user", "hi")]},
    config={"configurable": {"user_id": "u1"}},
)

Already have an agent? Wrap the model in one line: model = flags.wrap(ChatOpenAI(...)).

Documentation

License

MIT

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • pypi-releases langchain-flagsmith

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Critical Apache HTTP Server Flaw Exposes Web Servers to RCE (1)
CVE

CVE-2026-119618: Critical Apache HTTP Server Flaw Exposes Web Servers to Remote Code Execution

Ethersphere Hijacked With Crypto Stealing Malware (1)
npm

Ethersphere Hijacked With Crypto Stealing Malware Via Github & npm

Vulnerability Insights

OpenSSH Password Authentication Bypass on Alpine Linux (*sshole) – CVE-2026-123158

Frame 2085668439 (1)
Group 1261154229