Skip to main content
The Python SDK, the Node.js SDK and the CLI each released 2.0.0 on 2026-08-26. The major version is for removals only: every call that 2.0.0 removed sent its request to an endpoint the API does not serve, so it had never returned a result. Nothing that worked was taken away, and nothing was renamed. If your code never used the calls below, upgrade with no changes. Version 1.x of each SDK gets security fixes until 2027-08-26, 12 months after 2.0.0 shipped, as Versioning & support promises.

Find what you need to change

Run this from the root of your project. No output means nothing to change.

Python SDK

Removed from both PromptGuard and PromptGuardAsync: Text completions. Send the prompt as one user message:
Before (1.x)
After (2.0)
Embeddings, scraping and intelligence stats. Delete the calls. Each one raised an error on every call in 1.x, so no working code depends on what they returned:
Before (1.x)
After (2.0)
Autonomous red team. It is not offered to API keys. To test your policy against PromptGuard’s attack corpus, run the whole corpus against a preset:
Before (1.x)
After (2.0)

Node.js SDK

The removed types are why TypeScript code that only imported them fails to compile on 2.0.0, even though it never called anything. Text completions. Send the prompt as one user message:
Before (1.x)
After (2.0)
Autonomous red team. Run the whole corpus against a preset instead:
Before (1.x)
After (2.0)
pg.embeddings, pg.scrape and pg.redteam.intelligenceStats(): delete the calls and their type imports.

CLI

A script that still calls a removed command now exits with an unrecognised-subcommand error instead of a request failure, so a CI step that ignored the old failure will start failing.
Before (1.x)
After (2.0)

What also changed, with nothing to do

The red team calls that 2.0.0 kept (run_test, run_all and run_custom in Python, runTest, runAll and runCustom in Node.js, and promptguard redteam) got an authorization error for every API key in 1.x, because they called an admin-only path. From 2.0.0 they work with an API key that has the proxy scope. Their names and arguments did not change.

Shadow AI desktop agent 0.10

The desktop agent is versioned on its own and has no 2.0. Its one breaking change so far is in 0.10.0: protection runs only while the PromptGuard Shadow app is running. If an RMM tool or login script starts the agent with pgshadow start and no app, set the managed key headless: true before you upgrade, or protection on those machines stops. What to do for each later agent Release is on Shadow AI desktop agent upgrade notes.

Next steps

Versioning & support

How long each SDK and CLI version gets fixes

Changelog

What changed in each Release, filterable by product

Python SDK

Use the 2.x Python SDK

Node.js SDK

Use the 2.x Node.js SDK
Last modified on October 31, 2026