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.

Australia to buy three second-hand United States submarines under AUKUS shake-up

https://www.abc.net.au/news/2026-05-31/australia-to-buy-second-hand-united-states-submarines-auku...
1•Teever•1m ago•0 comments

AI Agent that at inference time updates it's harness and model weights

https://github.com/hexo-ai/sia
1•martianvoid•1m ago•0 comments

The complexity of songs – Knuth (1984)

https://dl.acm.org/doi/pdf/10.1145/358027.358042
1•__patchbit__•1m ago•0 comments

Jonathan Daly's fav books about individuals who changed the way we see the world

https://bookdna.com/best-books/individuals-who-followed-their-muse-and-changed-th
1•bwb•6m ago•1 comments

Show HN: Free cloud-based tool for managing AI agents across multiple hosts

https://nodecartel.com/
2•itrinity•7m ago•0 comments

Telnet Song – Guy L Steele, Jr

http://wonderingminstrels.blogspot.com/2004/01/telnet-song-guy-l-steele-jr.html
1•__patchbit__•8m ago•0 comments

Mark Warren's favorite novels about a child's immersion into wilderness

https://bookdna.com/best-books/childs-immersion-into-wilderness
1•bwb•8m ago•1 comments

Sellers circumvent Lenovo's retro handheld ban with cheap wholesale storefronts

https://www.tomshardware.com/video-games/handheld-gaming/the-usd60-retro-gaming-handheld-that-esc...
2•giuliomagnifico•10m ago•0 comments

Unlimited free AI tools and more, live demo. watch now [video]

https://www.youtube.com/shorts/8HB-VgN3uTE
1•rrrpro123•12m ago•0 comments

A Queer Taste for Macaroni (2017)

https://publicdomainreview.org/essay/a-queer-taste-for-macaroni/
1•Michelangelo11•12m ago•0 comments

Why AI isn't showing up on your bottom line

https://www.exponentialview.co/p/why-ai-isnt-showing-up-on-your-bottom-line
1•brettlangdon•12m ago•0 comments

Unity AI Suite

https://unity.com/features/ai
1•teleforce•13m ago•0 comments

Best Prepaid Phone Plans (2026): Tello, Boost, Google Fi, More

https://www.wired.com/gallery/best-prepaid-phone-plans/
1•joozio•14m ago•0 comments

Seat Allocation and Seat Bias Under the Jefferson–D'Hondt Method (2018)

https://arxiv.org/abs/1805.08291
1•wolfi1•20m ago•0 comments

Unmasking Romance Scams with Osint – Mishaal Khan [video]

https://www.youtube.com/watch?v=5dXXrUqpwec
2•Fudgel•21m ago•0 comments

Claude Agent SDK: Build Your Own AI Terminal in 10 Minutes

https://www.mager.co/blog/2026-03-14-claude-agent-sdk-tui/
2•ankitg12•22m ago•0 comments

Accountability Throughput

2•shudv•24m ago•0 comments

Show HN: A Reverse Captcha for Clankers

https://clanker-captcha.jeromem.workers.dev/
2•rydgel•26m ago•0 comments

How to Destroy a Literary Reputation in One Move

https://www.honest-broker.com/p/how-to-destroy-a-literary-reputation
2•Michelangelo11•26m ago•0 comments

Diffusion over Networks

https://camerongordon0.substack.com/p/diffusion-over-networks
2•iciac•27m ago•0 comments

My wife tried to log 1k phone-free hours but quit. So I vibe-coded an app

https://play.google.com/store/apps/details?id=com.greendot.phonebreaks&hl=en_US
2•GreenDotstudios•33m ago•0 comments

Show HN: Cordium: FOSS sandbox platform that eliminates credential injection

https://github.com/octelium/cordium
2•geoctl•34m ago•0 comments

The first support engineer agent for dev tools companies

https://reproly.com
2•Sidi-jeddou•38m ago•1 comments

The Hallmarks of Aging (2013)

https://pmc.ncbi.nlm.nih.gov/articles/PMC3836174/
2•downbad_•39m ago•0 comments

Show HN: Overslash – an auth gateway for AI Agents

https://www.overslash.com/
2•arturogoosnargh•40m ago•1 comments

Russia Revives WWI Dazzle Camouflage to Evade Ukrainian AI Drones–Does It Work?

https://united24media.com/war-in-ukraine/russia-revives-wwi-dazzle-camouflage-to-evade-ukrainian-...
1•Symbiote•41m ago•1 comments

How to Think About AI in Your Product

https://abgoyal.com/posts/how-to-think-about-ai-in-your-product/
1•ghoul2•47m ago•0 comments

Squillions – two books about money-laundering

https://www.lrb.co.uk/the-paper/v48/n09/john-lanchester/squillions
1•rwmj•48m ago•0 comments

2D Internet? So 1995. Building a '90s VRML-verse with SGI [video]

https://www.youtube.com/watch?v=9X_NKRbuPf4
3•6581•48m ago•0 comments

Show HN: Agent Deck: Native Mac app for managing AI coding agents| powered by PI

https://agentdeck.site/
2•streetcoder•51m ago•0 comments