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•11mo 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•11mo 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•11mo 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.

Our Principles

https://openai.com/index/our-principles/
1•salkahfi•14m ago•0 comments

A New Idea to Save the Climate? Dam the Bering Strait.

https://www.nytimes.com/2026/04/24/climate/amoc-bering-strait-dam.html
1•bookofjoe•17m ago•1 comments

Sabastian Sawe becomes first person to break two-hour marathon mark

https://www.rte.ie/sport/athletics/2026/0426/1570275-sawe-becomes-first-man-to-break-two-hour-mar...
1•austinallegro•20m ago•0 comments

Show HN: Nitrum – Rust Toolkit and CLI for AWS Nitro Enclaves

https://github.com/matzapata/nitrum
1•matzapata•21m ago•0 comments

I Learned to Stop Worrying and Love Coding with AI

https://jeffield.net/blog/claude-strangelove-or-how-i-learned-to-stop-worrying-and-love-coding-wi...
1•jsheffie•21m ago•0 comments

The Atari 1200XL – By Paul Lefebvre

https://www.goto10retro.com/p/inside-the-atari-1200xl
1•rbanffy•21m ago•0 comments

Did You Say "Intellectual Property"? It's a Seductive Mirage

https://www.gnu.org/philosophy/not-ipr.html.en
2•MontyCarloHall•25m ago•0 comments

FreeBSD Device Drivers Book

https://github.com/ebrandi/FDD-book
1•myth_drannon•25m ago•0 comments

Jaeger adopts OpenTelemetry at its core to solve the AI agent observability gap

https://thenewstack.io/jaeger-v2-ai-observability/
1•Brajeshwar•26m ago•0 comments

Intel reportedly says it boosted yields by selling what would normally be scrap

https://www.tomshardware.com/pc-components/cpus/intel-reportedly-says-it-boosted-yields-by-sellin...
2•rbanffy•27m ago•0 comments

The tortoise and the hare: will China beat the US in the race back to the moon?

https://www.theguardian.com/science/2026/apr/26/china-us-space-race-moon
3•pseudolus•29m ago•0 comments

Show HN: CheckThisOut – a filtered directory of side hustles and AI tools

https://checkthisout.com/
1•mbahlitz•31m ago•0 comments

SnakeBreak [a Browser Extension Game]

https://addons.mozilla.org/en-US/firefox/addon/snakebreak/
1•programmexxx•33m ago•1 comments

VPinFE – Cross-platform Front end for VPinball

https://github.com/superhac/vpinfe
1•terry107•45m ago•0 comments

JQuake – monitor real-time shaking events in Japan

https://jquake.net/en/
1•pndy•48m ago•0 comments

Statistical Structure and the Evolution of Languages

https://royalsocietypublishing.org/rspb/article/293/2068/20252374/481270/Statistical-structure-an...
1•Anon84•48m ago•0 comments

The Spinor Genus and the Distinguishing Lattice Isomorphism Problem(2024)

https://eprint.iacr.org/2024/1475
1•rolph•48m ago•0 comments

NSF science advisory board fired by Trump administration

https://www.nature.com/articles/d41586-026-01361-7
2•rguiscard•52m ago•1 comments

Show HN: Out Loud – open-source desktop TTS app for macOS/Windows/Linux

https://github.com/light-cloud-com/out-loud
2•julia-kafarska•58m ago•0 comments

Show HN: Logic Designer – Webapp

https://logic-designer.github.io/logic-designer-main/
2•logic-designer•1h ago•0 comments

Show HN: Startup Equity Adventure Game

https://options-game-polymathrobotics.pythonanywhere.com/
4•iliabara•1h ago•3 comments

CIOs struggle to find clarity in their organizations' AI strategies

https://www.cio.com/article/4162949/cios-struggle-to-find-clarity-in-their-organizations-ai-strat...
3•WaitWaitWha•1h ago•0 comments

DeepSeek drops input cache price to 1/10th

https://xcancel.com/deepseek_ai/status/2048440764368347611
5•alecco•1h ago•1 comments

The curious case of Sean Plankey's derailed CISA nomination

https://www.csoonline.com/article/4162801/the-curious-case-of-sean-plankeys-derailed-cisa-nominat...
2•WaitWaitWha•1h ago•0 comments

High energy sports drinks boost performance even if you spit them out

https://www.theguardian.com/science/2009/apr/15/high-energy-carbohydrate-drinks-performance-brain
6•bwoah•1h ago•1 comments

US Navy tests laser weapon that shoots down drones on the USS George H.W. Bush

https://www.tomshardware.com/tech-industry/us-navy-tests-laser-weapon-that-shoots-down-drones-on-...
3•rbanffy•1h ago•0 comments

Show HN: I read Replika's privacy policy and then built a competitor

https://apps.apple.com/us/app/friend-ai-private-chat/id6761649790
2•krunkworx•1h ago•0 comments

Distribution of Global Biomass

https://upload.wikimedia.org/wikipedia/commons/e/e6/Distribution_of_the_global_biomass.png
2•downboots•1h ago•0 comments

Show HN: XMIT Files from VSCode

https://github.com/wizardofzos/xmi-generator/releases/tag/0.0.3
2•wizardofzos•1h ago•0 comments

Elon Musk's xAI discussed partnership with Mistral to try and rival OpenAI

https://www.euronews.com/next/2026/04/24/elon-musks-xai-discussed-partnership-with-mistral-to-try...
3•muxamilian•1h ago•0 comments