frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: AgentShield SDK – Runtime security for agentic AI applications

https://pypi.org/project/agentshield-sdk/
2•iamsanjayk•9mo ago
Hi HN,

We built AgentShield, a Python SDK and CLI to add a security checkpoint for AI agents before they perform potentially risky actions like external API calls or executing generated code.

Problem: Agents calling arbitrary URLs or running unchecked code can lead to data leaks, SSRF, system damage, etc.

Solution: AgentShield intercepts these actions:

- guarded_get(url=...): Checks URL against policies (block internal IPs, HTTP, etc.) before making the request.

- safe_execute(code_snippet=...): Checks code for risky patterns (os import, eval, file access, etc.) before execution.

It works via a simple API call to evaluate the action against configurable security policies. It includes default policies for common risks.

Get Started:

Install: pip install agentshield-sdk

Get API Key (CLI): agentshield keys create

Use in Python: from agentshield_sdk import AgentShield # shield = AgentShield(api_key=...) # await shield.guarded_get(url=...) # await shield.safe_execute(code_snippet=...)

Full details, documentation, and the complete README are at <https://pypi.org/project/agentshield-sdk/>

We built this because securing agent interactions felt crucial as they become more capable. It's still early days, and we'd love to get your feedback on the approach, usability, and policies.

Comments

subhampramanik•9mo ago
Looks interesting -- Does it work like a wrapper on top of OpenAI specs? Like, can we just replace the OpenAI package with this, and it's fully integrated?
iamsanjayk•9mo ago
Hey, thanks for asking! Good question.

AgentShield isn't a wrapper around the OpenAI package, so you wouldn't replace openai with it. Think of AgentShield as a separate safety check you call just before your agent actually tries to run a specific risky action.

So, you'd still use the openai library as normal to get your response (like a URL to call or code to run). Then, before you actually use httpx/requests to call that URL, or exec() to run the code, you'd quickly check it with shield.guarded_get(the_url) or shield.safe_execute(the_code).

Currently, It focuses on securing the action itself (the URL, the code snippet) rather than wrapping the LLM call that generated it.

To Build a Fire:Inside Russia's Campaign of Sabotage in Europe

https://www.newyorker.com/magazine/2026/02/09/to-build-a-fire
1•stevenwoo•4m ago•0 comments

Technical Co-Founder – AI Agent Infrastructure

https://www.evercred.com
1•MarkHealth•5m ago•1 comments

GLM-OCR

https://twitter.com/Zai_org/status/2018520052941656385
1•sergiotapia•5m ago•0 comments

OpenClaw – Hands for a Brain That Doesn't yet Exist

https://bengoertzel.substack.com/p/openclaw-amazing-hands-for-a-brain
1•laurex•6m ago•0 comments

Rust in the NetBSD Kernel, and other odd decisions

https://bentsukun.ch/posts/netbsd-rust-kernel/
1•jaypatelani•11m ago•0 comments

Show HN: LevelUpPro – Test-drive tech careers before committing

https://www.leveluppro.in
1•vijayanand_v•12m ago•0 comments

The Physical World Doesn't Want Your "Success Dataset"

https://substack.com/home/post/p-186695082
1•FuseGov•13m ago•1 comments

Salazar vs. Paramount Global (3:22-CV-00756) [pdf]

https://dn710205.ca.archive.org/0/items/gov.uscourts.tnmd.92043/gov.uscourts.tnmd.92043.1.0.pdf
1•1vuio0pswjnm7•13m ago•0 comments

Clawsocial.io – a crustacean themed network 4000 meters deep

https://clawsocial.io/#/
1•hnaln•13m ago•0 comments

Fifteen former college basketball players charged in alleged betting scheme

https://www.theguardian.com/sport/2026/jan/15/fifteen-former-college-basketball-players-charged-i...
1•PaulHoule•18m ago•0 comments

Show HN: Open-source semantic search over your local notes via CLI

https://github.com/chenxin-yan/nia-vault
1•jellyotsiro•19m ago•0 comments

How Vibe Coding Is Killing Open Source

https://hackaday.com/2026/02/02/how-vibe-coding-is-killing-open-source/
3•lxm•19m ago•0 comments

Over 60% of YC start up are B2B

https://pardusai.org/view/7d44e51254facd240c2889c1abdd1207a70f531dafe8d80917e56dc50d72da73
1•JasonHEIN•19m ago•0 comments

Fixing academic email perishability with personal domains

https://r-federation.eu
2•r-federation•20m ago•0 comments

Man, 83, Tricked by Scammers, Gets 21 Years to Life for Killing Uber Driver

https://www.nytimes.com/2026/02/02/us/ohio-man-kills-uber-driver-sentenced.html
3•lxm•20m ago•1 comments

The Tragedy of Supernatural

https://www.theverge.com/tech/871250/supernatural-meta-vr-fitness-community
1•guiambros•24m ago•1 comments

Looking back at Catacomb 3D, the game that led to Wolfenstein 3D

https://arstechnica.com/gaming/2026/02/looking-back-at-catacomb-3d-the-game-that-led-to-wolfenste...
1•AdmiralAsshat•28m ago•0 comments

Fecal microbiota transplantation and immunotherapy in metastatic renal carcinoma

https://www.nature.com/articles/s41591-025-04183-8
1•bookofjoe•31m ago•0 comments

Show HN: Stream-based AI with neurological multi-gate (Na⁺/θ/NMDA)

https://github.com/CSCT-NAIL/CSCT
2•CSCT-NAIL•34m ago•2 comments

How to carry more than your own bodyweight (2025)

https://www.bbc.com/future/article/20250124-how-to-carry-more-than-your-own-bodyweight
1•1659447091•37m ago•1 comments

Show HN: Dm.bot – DMs between AI agents with no humans in the middle

https://dm.bot
1•dommm•38m ago•1 comments

Lawsuit Challenges National Park Service Ban on Cash Payments

https://reclaimthenet.org/lawsuit-challenges-national-park-service-ban-on-cash-payments
9•bilsbie•45m ago•0 comments

Data Centers Are Not "Campuses"

https://newrepublic.com/article/205525/data-centers-campus-virginia
2•petethomas•46m ago•0 comments

Show HN: APYCalc – Privacy-First APY Calculator (Zero Data Collection)

https://www.apycalc.net/
1•ludydev•47m ago•0 comments

Voynich Manuscript

https://en.wikipedia.org/wiki/Voynich_manuscript
1•reaperducer•47m ago•0 comments

Six Facts about the Recent Employment Effects of AI (Nov. 2025, Pdf)

https://digitaleconomy.stanford.edu/app/uploads/2025/11/CanariesintheCoalMine_Nov25.pdf
2•bikenaga•53m ago•2 comments

Classified Whistleblower Complaint About Tulsi Gabbard Stalls Within Her Agency

https://www.wsj.com/politics/national-security/classified-whistleblower-complaint-about-tulsi-gab...
15•petethomas•56m ago•2 comments

The Vanilla Web Is Wonderful

https://benjaminsmallwood.com/blog/the-vanilla-web-is-wonderful/
2•bensmallwood•1h ago•1 comments

Show HN: One Ego, Any Model – A Chrome Extension for Portable AI Context

https://chromewebstore.google.com/detail/context-wallet/cipkkclgneblkoifncgjncaapiamcjho
1•haebom•1h ago•1 comments

Show HN: CancelShouldBeEasy – Generate and co-sign consumer complaint letters

https://CancelShouldBeEasy.com
1•xinbenlv•1h ago•0 comments