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.

Spontaneous Human Combustion over the Ages

https://www.fatemag.com/post/spontaneous-human-combustion-over-the-ages
1•austinallegro•2m ago•0 comments

APL Performance

https://aplwiki.com/wiki/Performance
1•tosh•6m ago•0 comments

You can't whisper at an AI agent

https://stripe.dev/blog/ai-steering-experiments
1•logickkk1•6m ago•0 comments

The vibes in SF feel frenetic – The divide in outcomes is massive

https://twitter.com/deedydas/status/2055491938464489888
2•spenvo•6m ago•0 comments

Polymarket Isn't a Prediction Market for the Real World

https://reticulating.substack.com/p/polymarket-isnt-a-prediction-market
1•fontain•11m ago•0 comments

Mike Stonebraker: Computer Science might not be a growth industry going forward

https://www.youtube.com/watch?v=YPObBOwIrHk
1•tcp_handshaker•12m ago•1 comments

Texas county passes 1-year data center construction ban

https://www.politico.com/news/2026/05/16/texas-county-data-center-construction-ban-00922493
2•cdrnsf•14m ago•0 comments

Beaver: An Enterprise Benchmark for Text-to-SQL

https://peterbaile.github.io/beaver/
1•tcp_handshaker•15m ago•0 comments

Rx Inspector: Look Up Where Your Generic Prescription Drugs Were Made

https://projects.propublica.org/rx-inspector/
3•turtleyacht•20m ago•0 comments

The 48-Hour Cancer Binder

https://ludocomito.dev/blog/48-hour-cancer-binder/
2•ludocomito•22m ago•0 comments

Palace-AI – memory palace for AI agents

https://github.com/RhyChaw/palace-ai
3•RhythmC•24m ago•0 comments

A Note On Distributed Computing (1994)[pdf]

https://waldo.scholars.harvard.edu/sites/g/files/omnuum6261/files/waldo/files/waldo-94.pdf
2•ai_critic•34m ago•0 comments

The clean-up cost of AI code is what the velocity narrative leaves out

https://webflow.com/blog/cleanup-cost-ai-generated-code
4•dxs•34m ago•0 comments

Halt and Catch Fire

https://unstack.io/halt-and-catch-fire
4•ScottWRobinson•38m ago•0 comments

Tata Electronics and ASML Announce Strategic Partnership

https://www.asml.com/en/news/press-releases/2026/tata-electronics-and-asml-announce-strategic-par...
3•saharshpruthi•40m ago•1 comments

As Russian drones hunt Ukrainians in 'human Safari,' a boy fought back

https://www.washingtonpost.com/world/2026/05/15/russian-drones-hunt-ukrainians-human-safari-boy-f...
5•Stratoscope•40m ago•1 comments

Thousands todo apps, but none allows one-click collaboration with my grandma

https://medium.com/@tombarys/dotolist-creating-a-one-click-team-065a18dbeccd
3•tombarys•42m ago•1 comments

Elevated error rates on requests to multiple models

https://status.claude.com/incidents/v9s6d0jt84hj
9•recroad•42m ago•2 comments

Show HN: Daily vibe-coding video games, day 33: Tower Defense (single prompt)

https://gamevibe.us/33-tower-defense
4•pzxc•43m ago•0 comments

CC: Anthropic API Error: 500 Internal Server Error

https://github.com/anthropics/claude-code/issues/59743
5•brenoRibeiro706•45m ago•1 comments

Nvidia Preparing RTX 5090 Price Increase Due to Rising GDDR7 Memory Costs

https://mp1st.com/news/nvidia-preparing-rtx-5090-price-increase
3•jeffufl•45m ago•0 comments

Feeds: A Minimal RSS Aggregator and Client

https://stevedylan.dev/posts/feeds/
3•speckx•47m ago•0 comments

Malta gives citizens a paid version of ChatGPT Plus for free

https://ranked.news/malta-gives-citizens-a-paid-version-of-chatgpt-plus-for-free
2•doener•49m ago•0 comments

I 3D Printed Origami [video]

https://www.youtube.com/watch?v=FNVBK7-h9Fs
7•Teever•51m ago•1 comments

Haiku boots to desktop on an M1 MacBook Air

https://discuss.haiku-os.org/t/my-haiku-arm64-progress/19044?page=2
3•calgarymicro•53m ago•1 comments

Hermes-agentmemory: pull-model episodic memory with real deletes

https://github.com/MukundaKatta/hermes-agentmemory
2•mukundakatta•54m ago•0 comments

US Is Starting to See Heavy Job Losses in Roles Exposed to AI

https://www.bloomberg.com/news/articles/2026-05-15/us-is-starting-to-see-heavy-job-losses-in-role...
24•elsewhen•54m ago•4 comments

A brief guide to self-hosting websites and apps using Cloudflare Tunnel

https://blog.dougbelshaw.com/cloudflare-tunnel/
2•speckx•58m ago•0 comments

Rubin Tracks Skyscraper-Size Asteroids, Supernovas, and Interstellar Visitors

https://www.quantamagazine.org/rubin-tracks-skyscraper-size-asteroids-failed-supernovas-and-inter...
1•rbanffy•1h ago•0 comments

OpenIQ - Building a product engineering muscle in the age of agents

https://abhirame.github.io/posts/openiq/
2•abhis3798•1h ago•0 comments