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.

An AI-generated image is a finalist in Hasselblad Masters 2026 [video]

https://www.youtube.com/shorts/4MeO2wW5nOs
1•xuf•56s ago•0 comments

200 Journalists Applaud the Internet Archive's Role in Preserving Public Record

https://www.savethearchive.com/journalists/
1•doener•1m ago•0 comments

MSF: Israel uses water as a weapon of collective punishment against Palestinians

https://msf.org.uk/article/gaza-israel-uses-water-weapon-collective-punishment-against-palestinians
1•mef51•1m ago•1 comments

PowerDNS Security Updates – Vulnerabilities Explained CVE-2026-33257

https://tux.re/forum/viewtopic.php?t=179
1•Neteam•3m ago•0 comments

Fastembed – Lightweight Python Embedding Library

https://github.com/qdrant/fastembed
1•firasd•3m ago•0 comments

Escaping SaaS Trap: How Global Retailer Solved Data Sovereignty at 85% Less Cost

https://www.mydecisive.ai/case-study/luxury-retailer-data-sovereignty
1•jratkevic•6m ago•0 comments

Microsoft open sources DOS 1.0 – and it's more than the code

https://www.zdnet.com/article/microsoft-open-sources-dos-1-0-much-more-than-the-code/
2•CrankyBear•6m ago•1 comments

OpenAI Hits Back at Growth Fears, Says 'Firing on All Cylinders'

https://www.bloomberg.com/news/articles/2026-04-28/openai-hits-back-at-growth-fears-says-firing-o...
1•SilverElfin•7m ago•1 comments

One Man Broke the Marathon's Holy Grail

https://www.thefp.com/p/how-one-man-broke-the-marathons-holy
1•sorenKaram•9m ago•1 comments

Super fly: can an electric aircraft spark a quiet revolution in New York travel?

https://www.theguardian.com/us-news/2026/apr/28/electric-aircraft-new-york-air-travel
3•billybuckwheat•9m ago•0 comments

Ghostty is leaving GitHub

https://mitchellh.com/writing/ghostty-leaving-github
101•WadeGrimridge•9m ago•1 comments

Computing quantum waves from classical action

https://royalsocietypublishing.org/rspa/article/482/2336/20250413/481461/On-computing-quantum-wav...
1•orbifold•9m ago•1 comments

Lenovo acquires Phoenix Technologies' BIOS business

https://videocardz.com/newz/lenovo-acquires-phoenix-technologies-bios-business
2•LorenDB•12m ago•0 comments

Open-sourced the skills behind 353K views and 5,300 signups for a YC company

https://github.com/ScaleBrick/founder-marketing-skills
2•devgod•13m ago•0 comments

Lidl stirs up mobile market with discount phone plans

https://www.ft.com/content/52b9ba96-e86c-4ddb-ac1f-726051420fd2
1•doener•14m ago•0 comments

Why Everyone Is Obsessed with Claude Code

https://www.youtube.com/watch?v=gzt52Trk9w0
1•pythonic_hell•15m ago•0 comments

Two years without cookies on the site, here's where we ended up

https://blog.sentry.io/two-years-without-cookies-on-the-site/
3•annjose•16m ago•0 comments

Why Multi Window Multi Burn Rate SLO Alerting Sucks

https://eavan.blog/posts/multi-window-burn-rate-sucks.html
1•eavan0•21m ago•1 comments

You Take Notes but Never Get Smarter

https://meda.io/why-you-take-notes-but-never-get-smarter/
4•speckx•22m ago•0 comments

Show HN: CLI to for working with complex Google Docs using Markdown

https://github.com/think41/extrasuite
1•ksri•25m ago•1 comments

Why don't AI coding tools like REST?

3•sshadmand•27m ago•0 comments

It's dumb to study computer science thinking you can make a 'boatload' at Google

https://www.businessinsider.com/replit-ceo-dumb-to-study-computer-science-money-google-2026-4
1•austin-cheney•27m ago•0 comments

Interview with OpenAI and AWS CEOs about Bedrock Managed Agents

https://stratechery.com/2026/an-interview-with-openai-ceo-sam-altman-and-aws-ceo-matt-garman-abou...
15•translocator•29m ago•2 comments

No one can force me to have a secure website [pdf]

https://tom7.org/httpv/httpv.pdf
2•susam•31m ago•1 comments

Beyond Maxxing: New Tech Slang for 2026

https://www.siliconsnark.com/beyond-maxxing-siliconsnark-creates-new-tech-slang-for-2026/
2•SaaSasaurus•32m ago•0 comments

A Model for Economic Freedom on Mars

https://arxiv.org/abs/2406.10380
1•AFF87•34m ago•0 comments

I Got Sick of Remembering Port Numbers

https://gregraiz.com/blog/local-vibe/
5•graiz•35m ago•1 comments

Using a 1978 terminal in 2026 (DEC VT-100)

https://nikhiljha.com/posts/vt100/
3•ninjha•36m ago•0 comments

The AI Product Era You're Building for Might Be Over – Arcturus Labs

http://arcturus-labs.com/blog/2026/03/22/the-ai-product-era-youre-building-for-might-already-be-o...
1•softwaredoug•37m ago•0 comments

Remembering Seth Nickell

https://lwn.net/Articles/1070213/
1•chmaynard•37m ago•0 comments