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.

How to delete your ChatGPT account

https://proton.me/blog/how-to-delete-chatgpt-account
3•devonnull•1m ago•0 comments

Ask HN: A Brief History of LLMs

1•menomatter•1m ago•0 comments

Adding Features That Help Get Users

https://fastbusinessapi.com/article/adding-features-that-help-get-users/
1•ApiFB-Dev•2m ago•0 comments

My Theory by Albert Einstein(1919)

https://todayinsci.com/E/Einstein_Albert/EinsteinAlbert-MyTheory.htm
1•o4c•2m ago•0 comments

Videos show people entering NYC sewers at night; residents,investigators baffled

https://apnews.com/article/nyc-sewer-explorers-manhole-investigation-a229be36b3daa74223ad0a43bfdc...
1•petethomas•2m ago•0 comments

Harness Acquires Codecov from Sentry

https://www.harness.io/press-and-news/harness-acquires-codecov
1•rocketpastsix•5m ago•0 comments

Apple and Google developed a new HDR standard: Eclipsa Video

https://www.flatpanelshd.com/news.php?subaction=showfull&id=1780395034
1•dmmalam•8m ago•0 comments

Three Chess Friends Battled Demons and Saved Two Lives

https://www.nytimes.com/2026/06/02/nyregion/how-three-chess-friends-battled-demons-and-saved-two-...
1•axiomdata316•12m ago•0 comments

Show HN: RxCheck – Replacement for the discontinued NLM drug interaction API

https://www.rxcheck.dev/
1•bcfeen•15m ago•0 comments

Build and deploy hosted sites from Codex with the Sites plugin

https://developers.openai.com/codex/sites
1•sarelta•16m ago•0 comments

Show HN: First time Minecraft stream on Twitch

https://www.twitch.tv/willowwispgaming
1•merc443•18m ago•0 comments

Salt Lake Tribune is gambling one third of revenue by ditching paywall

https://pressgazette.co.uk/paywalls/why-salt-lake-tribune-is-gambling-one-third-of-revenue-by-dit...
1•jawns•19m ago•0 comments

Google is paying Play Store developers for code to train its AI

https://www.neowin.net/reports/google-wants-to-pay-play-store-developers-for-code-to-train-its-ai/
1•bundie•20m ago•0 comments

Guide to Codex Goals

https://www.augmentedswe.com/p/codex-goals
1•wordsaboutcode•20m ago•0 comments

Harvard Law: Anthropic is about to sell a safety mission Wall Street can veto

https://fortune.com/2026/06/01/openais-guardian-ben-jerrys-ice-cream-anthropic/
1•1vuio0pswjnm7•25m ago•0 comments

Patterns of Structure and Argument: a guide to mathematical thinking(2017) [pdf]

https://www.ux1.eiu.edu/~cidelman/Research/foundationsbook.pdf
1•nill0•32m ago•0 comments

Ask HN: Does using non-English languages affect LLM output quality?

1•boundless88•34m ago•0 comments

Show HN: A crowdsourced map of surveillance camera's based on OSM

https://mapcomplete.org/surveillance?z=0.5&lon=12.732776
2•pietervdvn•37m ago•0 comments

AI Dark Output: The Visible Cost of Invisible Output

https://newsletter.semianalysis.com/p/ai-dark-output-the-visible-cost-of
1•paulpauper•41m ago•0 comments

The Risk-Free Rate and the Risk-Adjusted Growth Rate

https://www.nber.org/papers/w35260
2•paulpauper•41m ago•0 comments

The Ordinary Miracle of Existing

https://www.theatlantic.com/philosophy/2026/06/the-ordinary-miracle-of-existing/687351/
2•littlexsparkee•43m ago•1 comments

Best Clearbit Alternatives for Company Data Enrichment

https://fastbusinessapi.com/article/best-clearbit-alternatives-for-company-data-enrichment/
1•ApiFB-Dev•45m ago•0 comments

Roku LT Operating System open source distribution

https://blog.roku.com/developer/roku-lt-os
2•dpmdpm•45m ago•0 comments

Meta scales back plan for internal mouse-tracking tech, citing staff concerns

https://www.reuters.com/world/meta-scales-back-ai-mouse-clicks-tool-citing-employee-concerns-2026...
5•cebert•46m ago•2 comments

The Many Ways to Build a Black Hole

https://nautil.us/the-many-ways-to-build-a-black-hole-1281480
1•boarsofcanada•48m ago•0 comments

Florida lawsuit accuses OpenAI and CEO Sam Altman of endangering children

https://www.washingtonpost.com/technology/2026/06/01/florida-lawsuit-accuses-openai-ceo-sam-altma...
2•1vuio0pswjnm7•49m ago•0 comments

Blind Agent Trusting Sheeple [video]

https://www.youtube.com/watch?v=3mLYNxgw9wE
1•kshri24•57m ago•0 comments

Experimental Randomness Amplification

https://www.nature.com/articles/s41586-026-10521-8
2•thunderbong•59m ago•0 comments

I Found a Bug in Apple's Fsck_hfs

https://medium.com/@kivancgunalp/i-found-a-bug-in-apples-fsck-hfs-here-s-how-i-tracked-it-down-ed...
2•zdw•1h ago•0 comments

Structured Procrastination

https://www.structuredprocrastination.com/
1•gurjeet•1h ago•0 comments