SGLang watermark plugin
Marks the responses your SGLang servers generate, for EU AI Act Article 50: each request names the plugin's processor. Prompts and outputs stay on your servers.
$ export WIDAR_PLUGIN_KEY="$(cat /run/secrets/widar_plugin_key)"$ python -m sglang.launch_server --model-path Qwen/Qwen3-8B --port 30000 \ --enable-custom-logit-processorCheck text from Northwind Gateway
widar.com/verify/northwind-gateway
Pasted text, 412 characters
Feed it as usual, let it rise for about an hour, then put it in the fridge in a jar with a loose lid. Cold slows the yeast down, so a fed starter keeps for four or five days without another feeding. When you are back, take it out, discard all but a few spoonfuls and feed it twice at room temperature before you bake. A layer of grey liquid on top is normal: pour it off or stir it in.
widar watermark
FoundNorthwind Gateway by Northwind Inference GmbH
C2PA credential
Not checkedPlain text carries no credential
Install, configure, verify
Three steps, in test mode first. Move to a live plugin key when your plan starts.
- 1
Install
The plugin comes with your widar workspace: widar's sales team provides it. Add it to the environment SGLang runs in.
widar for SGLangVersion 0.1.0Talk to sales
- 2
Configure
Create a plugin key for your system, set it as WIDAR_PLUGIN_KEY, then start your server. A plugin key only fetches and reports for one system, and can never call the rest of the API.
$ widar plugin-keys create --system-id sys_oo6upwmn8u4g --name "sglang-fleet"$ export WIDAR_PLUGIN_KEY="$(cat /run/secrets/widar_plugin_key)"$ python -m sglang.launch_server --model-path Qwen/Qwen3-8B --port 30000 \ --enable-custom-logit-processorCreate a plugin key for the system, give it to the plugin and start the server - 3
Verify
Ask your server for an answer and check it. The finding names your system and your company.
$ python - > answer.txt <<'EOF'import requestsfrom widar_sglang import WidarLogitProcessorr = requests.post("http://localhost:30000/generate", json={ "text": "How should I store a sourdough starter over a long weekend?", "sampling_params": { "temperature": 0.8, "max_new_tokens": 300, "custom_params": {"widar": {}}, }, "custom_logit_processor": WidarLogitProcessor().to_str(),})print(r.json()["text"])EOF$ widar verifications create answer.txtAsk for an answer and check it
What a check of an answer shows
An example for Northwind Inference GmbH, an invented company: an answer from its SGLang servers running the plugin, and what a check of it finds.
Prompt
How should I store a sourdough starter over a long weekend?
Answer
Feed it as usual, let it rise for about an hour, then put it in the fridge in a jar with a loose lid. Cold slows the yeast down, so a fed starter keeps for four or five days without another feeding. When you are back, take it out, discard all but a few spoonfuls and feed it twice at room temperature before you bake. A layer of grey liquid on top is normal: pour it off or stir it in.
Check text from Northwind Gateway
widar.com/verify/northwind-gateway
Pasted text
412 characters, sha256 c03b7d99…e2a1f640
Findings
widar watermark
FoundNorthwind Gateway by Northwind Inference GmbH
C2PA credential
Not checkedPlain text carries no credential
The same check by machine
Save the answer and check it from the CLI, the API or an agent's MCP client. The findings come back as JSON: what was found, who made it and when.
- The text is checked and not kept.
- The system's verify page and its API are free to every caller.
- A text with nothing readable gets No mark found. This does not mean a person made it.
$ widar verifications create answer.txt$ jq -Rs '{text: .}' answer.txt | curl -X POST https://api.widar.com/v1/verifications \ -H "Authorization: Bearer $WIDAR_API_KEY" \ -H "Content-Type: application/json" \ --data-binary @-create_verification {"text": "Feed it as usual, let it rise for about an hour, then…"}Example answer, for an invented company
{
"object": "verification",
"mode": "live",
"content_type": "text",
"findings": [
{
"kind": "widar_watermark",
"outcome": "found",
"who": {
"system": "Northwind Gateway",
"customer": "Northwind Inference GmbH"
}
},
{ "kind": "c2pa_credential", "outcome": "not_checked" }
]
}Requirements and model families
What the plugin needs to run, as its version 0.1.0 declares it.
| Component | Version |
|---|---|
| SGLang | 0.4.8 or later |
| Python | 3.9 or later |
Model families
Any text-generating model SGLang serves.
Works with
- Streaming and whole responses
- Many requests in one batch
- Structured output: a JSON schema keeps its structure
What leaves your servers
The plugin talks to widar's API only, and only about counts and health.
| What | To widar |
|---|---|
| Prompts | Never |
| Responses | Never |
| Tokens marked, requests left unmarked and why | Counts, each minute |
| Plugin and engine versions, health | Each minute |
| Your system's keys and policy | From widar, at start and within 15 minutes of a change |
Every server in the console
The installs view shows each server's versions and health, and flags an install that falls behind.
Northwind Gateway
Example: Northwind Inference GmbH, an invented company
Questions about the SGLang plugin
Slightly. Start the server with --enable-custom-logit-processor, and send the plugin's processor with each request in custom_logit_processor. Every other argument works as before.
No. It fetches the system's keys and policy when it starts and reports usage counts each minute. A rotated key is in use within 15 minutes.
A plugin key (wd_plg_) made for one system. It fetches and reports for that system only. A full API key does not start the plugin.
Source code in fenced code blocks, output you declare as machine-only, and output held to a grammar. A JSON schema keeps its structure. Each output left unmarked is counted with the rule that left it.
By default it refuses to serve unmarked answers, and widar sends marking.failed. A policy can let it serve them unmarked instead, counted one by one.
Get a test plugin key
Create a free account and mark your first response in test mode, or talk to sales about Enterprise and the self‑hosted edition.