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.

Mark Zuckerberg Told 8k Employees Their Layoffs Are a Line Item in AI Bill

https://247wallst.com/investing/2026/05/08/mark-zuckerberg-just-told-8000-employees-their-layoffs...
1•spankibalt•2m ago•0 comments

60fps Video on a CGA? – The GlyphBlaster

https://martypc.blogspot.com/2026/05/60fps-video-on-cga-glyphblaster.html
1•tambourine_man•4m ago•0 comments

Xi's Forever Purge

https://www.foreignaffairs.com/china/xis-forever-purge
1•areoform•5m ago•0 comments

Physics experiment hints at the existence of 'anyon' particles

https://www.sciencedaily.com/releases/2026/05/260508003131.htm
1•johndunne•10m ago•0 comments

Catatumbo Lightning

https://en.wikipedia.org/wiki/Catatumbo_lightning
1•nomilk•11m ago•0 comments

Deskbrid – Linux desktop control over a Unix socket, for agents and scripts

https://github.com/coe0718/deskbrid
2•coe0718•13m ago•0 comments

Kendrick Lamar to an Italian Poet

https://www.youtube.com/watch?v=q5dqCeNEIFU
2•lawgimenez•14m ago•0 comments

24/7 AI-powered radio station. Generates music, writes hosted breaks,speaks them

https://github.com/keltokhy/writ-fm
2•pseudolus•18m ago•0 comments

New York Stock Exchange to open private members' club on Wall Street

https://www.ft.com/content/d8e49edb-feb9-4bfb-9f91-f10169c0961d
1•petethomas•19m ago•0 comments

Abbey Library of Saint Gall

https://en.wikipedia.org/wiki/Abbey_library_of_Saint_Gall
1•peter_d_sherman•21m ago•0 comments

Maryland Power Bills: $1.6B Data Center Subsidy

https://unusualwhales.com/news/maryland-1-6-billion-data-center-power-bill-subsidy
1•gmays•27m ago•0 comments

I built a private memory system for remembering people

https://apps.apple.com/us/app/intriq-remember-people/id6760826319
2•Phangweijun•31m ago•0 comments

FreeBSD Pkgbase Minor Upgrades

https://vermaden.wordpress.com/2026/05/10/freebsd-pkgbase-minor-upgrades/
1•vermaden•36m ago•0 comments

A Framework of Modular Structure – Made Visible Through Representations

https://github.com/A19dammer91/Linear-Diophantine-Representation-Systems-p-1-mod-q-
1•A19dammer91•37m ago•0 comments

Kryptor – Simple, modern, secure file encryption and signing tool

https://www.kryptor.co.uk
2•rickcarlino•42m ago•0 comments

Why Apple Is Launching a Touchscreen MacBook [video]

https://www.youtube.com/watch?v=8zGNeT8fU9Y
2•mgh2•44m ago•0 comments

VBM – a VTT that feels like Saturday night at the game table

https://vbm.games/
2•burtonmiller•54m ago•0 comments

Endo: JavaScript plugin framework with built-in supply chain attack resistance

https://github.com/endojs/endo
2•ignoramous•56m ago•0 comments

In CRHQ, agents don't just reply with text. They ship live HTML artifacts

https://andrej.crhq.ai/artifact/Us0QJs48JGh3dK3uoEDQLw
2•taubek•57m ago•0 comments

Swift bricks to be installed on all new buildings in Scotland

https://www.theguardian.com/environment/2026/jan/28/swift-bricks-to-be-installed-in-all-new-build...
5•bookofjoe•1h ago•1 comments

React-AI-stream – back end-agnostic SSE streaming hook for React

https://github.com/trimooo/react-ai-stream
1•devleoo•1h ago•0 comments

Reducing TTFT by CPUMaxxing Tokenization

https://www.crusoe.ai/resources/blog/reducing-ttft-by-cpumaxxing-tokenization
1•intrepidsoldier•1h ago•0 comments

Kit that converts film to digital

https://www.digitalcameraworld.com/cameras/film-cameras/the-trending-kit-that-converts-film-to-di...
2•Alupis•1h ago•0 comments

Implementation Details of Codex /Goal

https://gist.github.com/patleeman/b1b5768393f9bf2f60865b1defeeb819
1•dnw•1h ago•0 comments

Nocturne Is the Latest Music Player for Gnome to Hit v1.0

https://www.phoronix.com/news/Nocturne-1.0-GNOME-Music
1•Bender•1h ago•0 comments

Canvas Breach Disrupts Schools and Colleges Nationwide

https://krebsonsecurity.com/2026/05/canvas-breach-disrupts-schools-colleges-nationwide/
3•Bender•1h ago•1 comments

Build native desktop and mobile apps with web UI and Zig

https://github.com/vercel-labs/zero-native
1•kindkang2024•1h ago•1 comments

The Las Vegas Sphere Looked Like a Disaster. It's Become a Huge Hit Instead.

https://www.wsj.com/business/media/sphere-vegas-dolan-disaster-hit-fa0e6b17
1•bookofjoe•1h ago•2 comments

Ask HN: Before Open Source took over the server, what was the discourse like?

3•mbgerring•1h ago•0 comments

Trump reportedly plans to fire FDA Commissioner Marty Makary

https://arstechnica.com/health/2026/05/trump-reportedly-plans-to-fire-fda-commissioner-marty-makary/
1•Bender•1h ago•0 comments