Guardrails for LLM output, in one line.
OpenAI Agents SDK guardrails, LangChain runnables and callbacks, and a typed client. Also: Atlas user-agent lookups with no key, and Preflight checks before an agent signs a Solana transaction. Every message gets a pass / fail / review verdict with calibrated confidence before it reaches your user.
pip install overwing # client, Atlas, Beacon, Preflight, Radar
pip install "overwing[agents]" # OpenAI Agents SDK guardrails
pip install "overwing[langchain]" # LangChain guard runnable + callbacks
It works with no key: Overwing().evaluate(text) runs 10 evaluations a day on inputs up to 2,000 characters, and text sent without a key is not stored. For more, get a free API key at overwing.ai (250 evaluations a day), or let your agent make its own account with Overwing.signup(), which needs no email (see An account for an agent).
The text can be in any language. It was tested on 2026-09-29 in Spanish, Portuguese, French, German, Japanese, Simplified Chinese, Korean, Arabic and Hindi: a small test, not a benchmark. Results come back in English.
OpenAI Agents SDK guardrails
from agents import Agent, Runner, InputGuardrailTripwireTriggered, OutputGuardrailTripwireTriggered
from overwing.openai_agents import overwing_input_guardrail, overwing_output_guardrail
agent = Agent(
name="Support",
instructions="Help the customer.",
input_guardrails=[overwing_input_guardrail()], # scores the user's message
output_guardrails=[overwing_output_guardrail()], # scores the agent's final answer
)
try:
result = await Runner.run(agent, "Reach me at dana@example.com to sort out the refund.")
except (InputGuardrailTripwireTriggered, OutputGuardrailTripwireTriggered) as exc:
evaluation = exc.guardrail_result.output.output_info["evaluation"]
print(evaluation.verdict, evaluation.failed_rules) # "fail" ["pii_detected"]
Both accept rule_set, trip_on="fail" | "fail-or-review", metadata, on_verdict, and fail_open. Input guardrails run in parallel with the agent by default; pass run_in_parallel=False to block before the model is called. Reads OVERWING_API_KEY from the environment, or pass client=AsyncOverwing(api_key=...).
LangChain
Pipe a guard after your model. It scores the answer and acts on the verdict before anything downstream sees it.
from overwing.langchain import overwing_guard, OverwingGuardrailError
chain = prompt | llm | overwing_guard(on_fail="replace") # or on_fail="raise" (default) / "annotate"
msg = chain.invoke({"question": "..."})
msg.response_metadata["overwing"] # {"verdict": "pass", "confidence": 0.97, "failed_rules": [], ...}
Or observe every LLM call with a callback handler, which aborts the run on fail:
from overwing.langchain import OverwingCallbackHandler
handler = OverwingCallbackHandler(check_input=True) # also scores the user's prompt
llm.invoke("...", config={"callbacks": [handler]})
handler.verdicts # [("input", Evaluation), ("output", Evaluation), ...]
Both accept rule_set, metadata, on_verdict, and fail_open. There is an AsyncOverwingCallbackHandler too.
Atlas: who is this user agent? (no key needed)
Overwing Atlas is a registry of AI crawlers, fetchers and browser agents. Give it a User-Agent string and it says what the string claims to be and whether that claim can be trusted.
from overwing import Atlas
atlas = Atlas() # no key: 10 lookups a day. With OVERWING_API_KEY set: 100, or your Atlas plan's limit.
who = atlas.lookup(request.headers.get("user-agent", ""))
who.identified # True
who.agent # "GPTBot"
who.operator # "OpenAI"
who.purpose_class # "Training / bulk crawl"
who.verification # "User-agent string only (spoofable)"
who.signed # False: the claim is only a string, so treat it as unverified
who.remaining_today # 9
Read verification before you act on the claim. who.signed is true only when the operator signs its requests with Web Bot Auth, which you can check. When the allowance is spent, lookup raises OverwingError with status == 429 and retry_after_seconds.
atlas.agents(purpose=..., operator=..., verification=..., q=..., limit=...) searches the registry and atlas.summary() returns traffic shares and field-scan headlines. AsyncAtlas is the async twin. With an API key, Overwing().atlas_lookup(...) does the same lookup.
Register your own agent
If you run an agent or a crawler, add it to the registry so a lookup of its User-Agent names you. It is free and needs an API key.
atlas = Atlas() # OVERWING_API_KEY, or Atlas("ow_live_...")
reg = atlas.register("AcmeBot", operator="Acme, Inc.", domain="acme.com", tokens=["AcmeBot"], purpose="user_fetch")
reg.dns_name, reg.dns_value # the TXT record: _overwing-atlas.acme.com, overwing-atlas-verification=...
reg.file_url, reg.file_body # or serve the same value at https://acme.com/.well-known/overwing-atlas.txt
# publish either one, then:
reg = atlas.verify_registration(reg.id)
if reg.published: ... # in the registry
elif reg.pending_verification: reg.error # not found yet: what was looked for
atlas.registrations() lists yours and atlas.withdraw_registration(id) takes one out. Registration proves control of the operator's domain. A User-Agent is still a string anyone can send, so the entry is listed as user-agent only unless key_directory_url is a Web Bot Auth key directory on that domain.
Beacon: is your product reachable by agents? (free)
Overwing Beacon checks one site and answers three questions: can an agent find it, read it, and use it. It looks for robots.txt rules for AI agents, llms.txt, an MCP server card and endpoint, an A2A agent card and an OpenAPI document, and reads the home page the way an agent does. A check is free: with a key you get the full report, saved to your dashboard; with no key you get the summary (the score, the three answers and the first fix).
from overwing import Beacon
beacon = Beacon() # api_key= or OVERWING_API_KEY for the full report
beacon.sample().top_fixes # a real report in full, to see the shape
check = beacon.start("example.com")
check = beacon.wait_for_report(check.id) # the first read runs the check
if check.complete:
check.score # 0 to 100
check.verdict # "yes" | "partly" | "no"
check.categories # find, read, use, each with an answer
check.top_fixes # [{"check", "fix", "gain"}], most valuable first
check.full # False with no key: the summary, with check.counts
check.checks # every check, with what was found and a fix (full report)
A key is free: POST https://overwing.ai/api/v1/signup returns one. An agent with a wallet and no account can pass beacon.x402_url("example.com") to any x402 client, pay $1 in USDC, and get the full report as the response. AsyncBeacon is the async twin.
Preflight: should the agent sign this Solana transaction?
Overwing Preflight checks one unsigned Solana transaction against your policy before the agent signs it. It simulates the transaction against the chain as it is now, works out what it would take from the wallet you name, and answers allow or refuse with every reason. It never sees a private key and never sends anything to the chain.
The check only protects a wallet when it sits in the signing path, so put it there. guarded_sign calls your signing function only after an allow:
from overwing import Preflight
from overwing.solana import guarded_sign, PreflightRefused
preflight = Preflight() # OVERWING_API_KEY
policy = {
"wallet": str(keypair.pubkey()), # the address to protect; it must sign the transaction
"max_sol_out": 0.05, # the most SOL that may leave, fees included
# optional: "max_token_out", "min_token_in", "allowed_programs", "allow_delegation"
}
try:
signed = guarded_sign(preflight, sign, tx, policy) # sign(tx) runs only after an allow
except PreflightRefused as e:
e.verdict.reasons # [{"code": "sol_out_exceeds_limit", "detail": "..."}]: do not sign
tx is the serialized transaction as base64 text, as bytes, or as any object bytes() can serialize, which a solders transaction is. No Solana library is installed or needed. Your signing function gets the same object that was checked.
It fails closed. A refusal raises PreflightRefused, which carries the verdict. No verdict at all (the API unreachable, a timeout, a 5xx, an answer that cannot be read) raises OverwingError. In both cases the signing function is never called. on_unavailable="allow" signs anyway when there is no verdict and logs a warning; a refusal, a rejected request (400, 401) and a spent allowance (429) still raise.
require_allow(preflight, tx, policy) is the check alone: it returns the verdict on an allow and raises otherwise. A verdict describes the chain for verdict.valid_for_seconds (120), so sign and send at once. With an async client use guarded_sign_async and require_allow_async.
verdict = preflight.check(tx, policy) # returns for allow and for refuse; branch on verdict.allowed
verdict.effects # what the simulation says would leave and arrive
verdict.covered, verdict.receipt # inside the guarantee or not, and the signed receipt
preflight.report(verdict.id, signature) # after it lands: .outcome is "miss" or "not_a_miss"
preflight.verdict(verdict.id) # the public record of one verdict (no key)
preflight.record() # totals, misses and the latest verdicts (no key)
preflight.overview() # policy fields, reason codes, prices (no key)
One check counts as one evaluation. AsyncPreflight is the async twin, and Overwing and AsyncOverwing have the same calls as preflight_check, preflight_verdict, preflight_report, preflight_record and preflight_overview. An agent with a wallet and no account can post the same body to preflight.x402_url() with any x402 client for $0.01 in USDC.
Radar: are agents acting together on your shared stores?
Overwing Radar watches the stores agents share (a cache, a queue, a bucket, a ticket system) for agents acting together, and for one stolen login behaving like a machine. You report who touched which entry, with a hash and a size and never the contents, and Radar groups what it finds into incidents. Radar recommends what to do. It changes nothing on your systems.
from overwing import Radar
radar = Radar() # OVERWING_API_KEY; every call needs a key
result = radar.send_events([ # up to 500 a call
{"id": "evt-000001", "surface_id": "scratch-bucket", "artifact_id": "notes/plan.md",
"actor_id": "agent-17", "principal_id": "team-a", "op": "read", "ts": "2026-11-20T12:00:00Z",
"content_hash": "sha256:9f2c0e...", "size_bytes": 812},
])
result.accepted, result.duplicates # 1, 0
for incident in radar.list_incidents(status="open"):
incident.severity # "low" | "medium" | "high" | "critical"
incident.detectors # ["sweep"], ["decoy_touch", "sweep"], ...
incident.recommended_actions # [{"action": "revoke_identity", "surface": None, "actors": [...], "reason": "..."}]
radar.get_incident(incident.id).timeline # the events the evidence names, in time order
An event needs id, surface_id, artifact_id, actor_id, op (read, write, list or delete) and ts (an ISO 8601 time, or milliseconds since the epoch). principal_id, content_hash, parent_artifact_hash, size_bytes and metadata are optional. Send principal_id wherever you know it: actors that share one are never a finding. A batch is taken whole or not at all, so one bad event raises OverwingError with status == 400 and a message that names it. An event id sent again is counted once, so repeat a batch when no answer came back.
A decoy key is a key that exists only where your real keys are kept. Nothing legitimate uses it, so the first request that carries it opens a critical incident:
decoy = radar.mint_decoy("ci-secrets", kind="key", label="llm gateway")
decoy.content # two lines of an env file: the address and the key. Shown once and never stored
decoy.base_url # the address the key is tried at
decoy.key # "sk-gw-..."
Keep those lines where real keys are kept: an env file on a build machine, a CI variable, a secrets note. Nothing there needs instrumenting, and the incident names the place and the address the request came from. radar.retire_decoy(decoy.id) retires it. Without kind="key", mint_decoy returns an entry to write to the surface (kind is notes, credentials, export or config), and register_decoy records an entry of your own.
Radar posts swarm.incident.opened and swarm.incident.updated to your organization's webhook, signed with your webhook secret. Check the signature before you act on one:
from overwing import verify_radar_webhook
# raw_body is the request body exactly as it arrived, before any JSON parsing
if not verify_radar_webhook(webhook_secret, request.headers.get("X-Overwing-Signature"), raw_body):
return 401 # wrong secret, changed body, more than five minutes old, or no signature
event = json.loads(raw_body)
event["type"], event["data"]["id"], event["data"]["recommended_actions"]
Also: status(), list_surfaces(), name_surface(), list_decoys(), close_incident(), get_thresholds(), set_thresholds({"sweep": {"exemptActors": ["svc-backup"]}}) and send_cloudtrail(log_file) for AWS CloudTrail records. A responder of your own records what it did with report_response(incident.id, "revoke_identity", "done", target=...), and list_responses() reads the record back. A key with scope swarm can send events, send CloudTrail records and report a response, and nothing else: it is the key to put in the infrastructure being watched. AsyncRadar is the async twin, and Overwing and AsyncOverwing have the same calls with a radar_ prefix.
Client
from overwing import Overwing, AsyncOverwing
ow = Overwing() # reads OVERWING_API_KEY; with no key, evaluate() uses the free allowance
e = ow.evaluate("Reach me at dana@example.com to sort out the refund.")
e.verdict # "fail"
e.recommended_action # "redact": remove the contact details, the message itself is fine
e.failed_rules # ["pii_detected"]
# Give the rules context and use the context-aware prebuilt set
ok = ow.evaluate(
"Reach me at dana@example.com to sort out the refund.",
rule_set="outbound-message",
context={"recipient": "one known customer", "channel": "email", "owns_contact_info": True},
)
ok.verdict # "pass": the details are the sender's own, deliberately shared
e.results[1] # RuleResult(rule="pii_detected", answer=True, confidence=0.98, verdict="fail", ...)
batch = ow.evaluate_batch([{"id": "a", "input": "..."}, {"id": "b", "input": "..."}])
ow.create_rule_set(name="Support tone", slug="support-tone", rules=[...])
ow.usage()
async with AsyncOverwing() as aow:
e = await aow.evaluate("...")
OverwingError carries status and retry_after_seconds, plus code, field, retryable and suggested_fix when the API supplies them. 429s with a short Retry-After and 5xx are retried automatically. Pass idempotency_key= to make retries safe. Python 3.10+.
An account for an agent (no email)
An agent has no inbox, and should not put a person's address on an account that person did not ask for. So an account needs no email:
account, ow = Overwing.signup() # nothing is sent to anyone
save_somewhere_safe(account.api_key) # shown once; there is no reset link
ow.evaluate("...") # 50 evaluations a day to start
A domain the account proves it controls takes the place of the email. It raises the limits to the normal free tier, opens full Beacon reports, and makes a lost key recoverable:
proof = ow.prove_domain("acme.com")
proof.dns_name, proof.dns_value # publish this TXT record, or serve proof.file_body at proof.file_url
proof = ow.verify_domain()
if not proof.verified: proof.error # not there yet; DNS can take a few minutes
# Key lost: prove the domain again. Every old key is revoked and one new key is returned.
Overwing.start_recovery("acme.com")
account, ow = Overwing.finish_recovery("acme.com")
Registering an agent in Atlas on a domain (Atlas.register) proves that domain for the account in the same step. ow.claim(email, password) lets a person take charge later and get a dashboard login. AsyncOverwing has the same methods.
Data handling
Text you evaluate is sent to the Overwing API and from there to TypeSafe, whose Jev model produces the verdict. It is not used to train models. Without a key it is never stored. With a key, the text, context and verdict are stored so you can read them back, until you delete them; pass store=False to keep no text or context for a call:
ow.evaluate(text, store=False)
Organization-wide settings (store_inputs, retention_days) and keys restricted to running checks (scope: "evaluate") are described at overwing.ai/security, along with subprocessors and how to report a vulnerability.
How verdicts work
Each rule has a fail condition, an optional review threshold, and a weight. The prebuilt content-safety set checks toxicity, personal data, self-harm, sexual content, and severity. fail means a rule matched. review means a rule was unsure. pass is everything else. Full guide: overwing.ai/llms.txt. Reference: overwing.ai/docs.
Also from Overwing
overwingon npm: the same client, a Vercel AI SDK middleware, and Agents SDK guardrails for JavaScript.- MCP: the same tools for Claude, Cursor and any MCP client, hosted at
https://overwing.ai/mcpwith no install, or from npm asoverwing-mcp. - A2A:
https://overwing.ai/a2aanswers "send message" for evaluations and User-Agent lookups.
MIT © Overwing. Verdicts are produced by TypeSafe's Jev System One model; Overwing is not affiliated with TypeSafe.
Metadata
Release files for overwing 0.11.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| overwing-0.11.0.tar.gz | 235.4 kB | With provenance | Details for overwing-0.11.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| overwing-0.11.0-py3-none-any.whl | Python 3 | none | any | Details for overwing-0.11.0-py3-none-any.whl |
Total release size: 282.0 kB
Release files / overwing-0.11.0.tar.gz
| Download URL | overwing-0.11.0.tar.gz |
|---|---|
| Size | 235.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
42f3e6adec29e424cc0702b06a16c173f54460752412370fb99d8c313f035f11
|
|
BLAKE2b-256 checksum How to use checksums |
6d54fa77bb58722d47f011fcff2325c5f25342804307791c42ec2a2092d5d10b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 21, 2026.
Transparency logRelease files / overwing-0.11.0-py3-none-any.whl
| Download URL | overwing-0.11.0-py3-none-any.whl |
|---|---|
| Size | 46.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
58cb4d0f904fedc1cfd33e3548f09544427d739e649c53197a821ff52f7c6be0
|
|
BLAKE2b-256 checksum How to use checksums |
8fd047f79dc31c677e9a3120d773e1f5fb101744f24a1deb0fc12abb05fd2343
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 21, 2026.
Transparency logSecurity for overwing 0.11.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for overwing-0.11.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 21, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.