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.

Show HN: Customer Reviews can be represented through Voice capture/generation

https://customersvoices.com
1•Zavora•6m ago•0 comments

Garbage Collection Without Unsafe Code

https://fitzgen.com/2024/02/06/safe-gc.html
1•foota•6m ago•0 comments

First trailer released for western starring AI version of Val Kilmer

https://www.theguardian.com/film/2026/apr/16/first-trailer-released-for-ai-val-kilmer-western
1•breve•10m ago•1 comments

Ask HN: Where do I submit a bug report for Windows Snipping Tool?

1•pests•12m ago•0 comments

Thiel-backed startup develops AI to adjudicate the truth of journalism

https://techcrunch.com/2026/04/15/can-ai-judge-journalism-a-thiel-backed-startup-says-yes-even-if...
1•ZunarJ5•15m ago•0 comments

AI answers break down, and what each one looks like

https://substack.com/@hanaleegoldin/note/c-244676181
3•billybuckwheat•18m ago•0 comments

Windows Server 2025 Runs Better on ARM

https://jasoneckert.github.io/myblog/server-2025-arm64/
1•jasoneckert•20m ago•1 comments

Fake partisan avatars emerge on social media

https://www.nytimes.com/2026/04/17/business/media/artificial-intelligence-trump-social-media.html
1•anigbrowl•24m ago•0 comments

DocuHog – The DocuSign Local Simulator

https://github.com/dwelch2344/docuhog
2•dwelch2344•31m ago•2 comments

Show HN: SnapReceipts Snap a receipt, split the bill instantly

https://snapreceipts.fyi/
1•armishra•33m ago•1 comments

The Role of Motherhood in the Pop Art of System Programing

https://multicians.org/pgn-motherhood.html
2•Tevo•49m ago•1 comments

User Inyerface – A worst-practice UI experiment

https://userinyerface.com/
4•hunvreus•59m ago•0 comments

ChatGPT plan purchasing bug: Free to buy

https://community.openai.com/t/security-report-apple-pay-receipt-validation-does-not-bind-to-purc...
2•pengfeituan•1h ago•0 comments

Cory Doctorow on the High Cost of Living with the Ultra-Rich

https://www.newyorker.com/books/book-currents/cory-doctorow-on-the-high-cost-of-living-with-the-u...
5•mitchbob•1h ago•1 comments

Wawa VFX

https://github.com/wass08/wawa-vfx
1•Lisa0802•1h ago•0 comments

The Match Act Is the Missing Piece in America's AI Export Control Strategy

https://www.thefai.org/posts/the-match-act-is-the-missing-piece-in-america-s-ai-export-control-st...
1•num42•1h ago•0 comments

Bipartisan Bill to Tighten Controls on Sensitive Chipmaking Equipment

https://baumgartner.house.gov/2026/04/02/baumgartner-introduces-bipartisan-bill-to-tighten-contro...
6•num42•1h ago•0 comments

37signals Dev – The ONCE app server

https://dev.37signals.com/once-app-server/
1•doppp•1h ago•0 comments

Show HN: Website that recommends outfit using weather and AI

https://what2wear-two.vercel.app
1•COOLmanYT•1h ago•2 comments

The Season Finale of TBPN

https://www.workingtheorys.com/p/tbpn
1•momentmaker•1h ago•0 comments

Using AI to get better at algorithms

https://medium.com/@andreiboar/algotutor-using-ai-to-actually-get-better-at-algorithms-a2b7b96e054a
2•zuzuleinen•1h ago•0 comments

Three-Monitor Ridge Racer Machine Emulated in MAME

https://hackaday.com/2026/04/18/three-monitor-ridge-racer-machine-emulated-in-mame/
2•pathompong•1h ago•0 comments

10 tips to increase your token consumption

https://twitter.com/vidzert/status/2045698735926038824
2•ruslan5t•1h ago•0 comments

Finland, Tesla, and the Quiet Revolution in How We Touch Electricity

https://tonysalas369.substack.com/p/finland-tesla-and-the-quiet-revolution
1•Eterbios•1h ago•0 comments

Air Canada suspends 6 routes 'no longer economically feasible'

https://www.cbc.ca/news/canada/air-canada-jet-fuel-flights-9.7167904
6•geox•1h ago•0 comments

The Bhagavad Gita: Explained

https://cultchron.substack.com/p/bhagvad-gita-in-a-nutshell
2•intrepidsoldier•1h ago•0 comments

Agents don't sleep, but your infra (and brain) might need to

https://blog.mehdio.com/p/ctrlr-13-agents-dont-sleep-but-your
1•eigenBasis•1h ago•2 comments

The Commodification of Uncertainty

https://www.copingwithfootnotes.com/p/the-commodification-of-uncertainty
1•heywoods•1h ago•0 comments

Show HN: DevToolBox – 88 client-side developer tools, no tracking, 9 languages

https://viadreams.cc/en/
2•arenas2026•1h ago•0 comments

Opsec oopsie: Dutch Navy frigate location outed by mailed Bluetooth tracker

https://www.theregister.com/2026/04/17/dutch_navy_frigate_tracked/
1•gnabgib•1h ago•0 comments