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•1y 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•1y 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•1y 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.

Delivery Hero confirms takeover offer from Uber

https://www.reuters.com/business/delivery-hero-confirms-takeover-offer-uber-2026-05-23/
3•thm•14m ago•0 comments

Seeking a Language in Mathematics 1523-1571

https://tyndale.org/journals/reformj01/bmarsden.html
2•jruohonen•16m ago•1 comments

Show HN: Logo Fonts

https://logofonts.surge.sh/
2•stagas•23m ago•0 comments

Why Every IKEA Product Has a Weird Name [video]

https://www.youtube.com/watch?v=c89T2snPvNo
3•vinhnx•29m ago•0 comments

Testing

2•eyyeyeyeyeyey•32m ago•0 comments

Meta's Claudeonomics leaderboard

https://www.indiatoday.in/technology/news/story/meta-shuts-down-internal-claudeonomics-ai-tool-af...
2•phront•33m ago•0 comments

I tracked down the thief who stole $200k of Lego [video]

https://www.youtube.com/watch?v=wscQpkcwgNU
2•pinkmuffinere•37m ago•1 comments

Limerick

https://www.worldwidewords.org/surprise.html
2•jruohonen•43m ago•0 comments

We Were Wrong About Fasting Study Finds

https://www.sciencealert.com/we-were-wrong-about-fasting-massive-study-finds
3•mikhael•48m ago•0 comments

C Constructs That Still Don't Work in C++ – and a Few That Changed

https://lospino.so/blog/c-constructs-that-still-dont-work-in-cpp/
2•jandeboevrie•50m ago•0 comments

A Data Mining Adventure into the World of Lichess Puzzle Database

https://lichess.org/@/heroku/blog/how-many-different-backrank-mates-are-there/gSUlcRkl
3•heroku•52m ago•0 comments

The Verification Problem (On OpenAI's Erdős Disproof)

https://korbonits.com/blog/2026-05-23-the-verification-problem/
2•korbonits•54m ago•0 comments

AI Can Do Anything

https://clawdcursor.com
3•AmDab•55m ago•0 comments

Does bulk memmove speed up std:remove_if? (No.)

https://quuxplusone.github.io/blog/2026/05/23/chunked-remove/
2•jandeboevrie•55m ago•0 comments

European Data Centers Reuse Waste Heat to Heat Homes

https://letsdatascience.com/news/european-data-centers-reuse-waste-heat-to-heat-homes-48086eeb
1•GeorgeWoff25•56m ago•0 comments

How to Call an API from an Email

https://redo.com/eng-blog/how-to-call-an-api-from-an-email/
3•crcastle•57m ago•0 comments

"Long-Term Support" doesn't mean what you think

https://pointieststick.com/2026/05/23/long-term-support-doesnt-mean-what-you-think/
3•jandeboevrie•1h ago•0 comments

2of3: Enter a secret. Get 3 cards

https://2of3.ente.com
3•anandbaburajan•1h ago•0 comments

SpaceX, OpenAI and Anthropic IPOs set to test limits of AI boom

https://www.ft.com/content/ae9bb47d-bd1d-473c-b4c5-abae0420cc12
1•1vuio0pswjnm7•1h ago•1 comments

Dark trades' risk destroying London's stock markets

https://www.thetimes.com/business/companies-markets/article/dark-trades-risk-destroying-stock-mar...
3•petethomas•1h ago•0 comments

BNoise – The Easiest Music Maker

https://bnoise.pages.dev/
3•telui•1h ago•1 comments

Hacker Typer – Hacker Screen

https://startuplaunchpage.com/hacker-typer
2•vnyarongi•1h ago•0 comments

Reddit stock drops almost 6%, Meta launches standalone app for online forums

https://www.cnbc.com/2026/05/22/reddit-stock-drops-after-meta-launches-forum-app.html
10•1vuio0pswjnm7•1h ago•1 comments

Cleaning Station

https://en.wikipedia.org/wiki/Cleaning_station
3•pvillano•1h ago•1 comments

The phrase "taste is the differentiator" is not beneficial

https://hazn.com/please-stop-repeating-is-the-differentiator
2•hazn•1h ago•0 comments

Fauxx – Data poisoning for your everyday tracking

https://github.com/digital-grease/fauxx
1•vidyesh•1h ago•0 comments

Amazon Web Services – Four Years and Out

https://www.adventuresinoss.com/aws-four-years/
65•RyeCombinator•1h ago•10 comments

What does grep stand for, and the 75 year history of the regular expression

https://mart.traagel.dev/blog/what-does-grep-stand-for/
1•sonabinu•1h ago•0 comments

Commodity Intelligence

https://contraptions.venkateshrao.com/p/commodity-intelligence
2•swolpers•1h ago•0 comments

British power prices are increasingly independent from gas

https://ember-energy.org/latest-insights/british-power-prices-are-increasingly-independent-from-gas/
1•helsinkiandrew•1h ago•0 comments