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•12mo 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•12mo 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•12mo 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.

Openpi-flash: Real-time inference engine for openpi

https://github.com/Hebbian-Robotics/openpi-flash
1•kstonekuan•41s ago•0 comments

Advocacy groups issue US travel advisory ahead of World Cup

https://www.washingtonblade.com/2026/04/29/advocacy-groups-issue-us-travel-advisory-ahead-of-worl...
1•latexr•2m ago•0 comments

Andrej Karpathy: From Vibe Coding to Agentic Engineering [video]

https://www.youtube.com/watch?v=96jN2OCOfLs
1•vinhnx•7m ago•0 comments

Do birds have accents? the regional differences in birdsong

https://theconversation.com/do-birds-have-accents-the-fascinating-regional-differences-in-birdson...
1•zeristor•9m ago•0 comments

Foundations of Metrology(1981) [pdf]

https://nvlpubs.nist.gov/nistpubs/jres/086/jresv86n3p281_A1b.pdf
1•pillars•16m ago•0 comments

Show HN: Self hosted video feed for children

https://github.com/vkolev/timmygram-server
1•vkolev•17m ago•0 comments

Open Source Does Not Imply Open Community

https://blog.feld.me/posts/2026/04/open-source-does-not-imply-open-community/
2•zdw•17m ago•0 comments

James Broadnax Executed After Being Sentenced to Death Based on Rap Lyrics

https://www.rollingstone.com/culture/culture-news/james-broadnax-executed-rap-lyrics-texas-123555...
1•latexr•18m ago•1 comments

Where would an offline fail-closed supervisor be useful?

https://madadh.systems
1•MADADAHSYSTEMS•23m ago•0 comments

CSS and vertical rhythm for text, images, and tables

https://vincent.bernat.ch/en/blog/2026-css-vertical-rhythm
1•vbernat•26m ago•0 comments

Sniffing EU Smart Meters with a Flipper Zero (WM-Bus / 868MHz)

https://github.com/i12bp8/wmbuster
1•i12bp8•30m ago•0 comments

GlowGoblin – a gift to mb pro users

https://github.com/jtc268/glowgoblin
1•husky8•34m ago•0 comments

Japan intervened in its Curreny price

https://www.fxstreet.com/news/usd-jpy-drops-over-2-as-intervention-warnings-lift-yen-after-move-a...
1•mark336•36m ago•1 comments

US telecom agency votes to expand tech crackdown on China

https://www.reuters.com/business/media-telecom/us-telecom-agency-votes-expand-tech-crackdown-chin...
2•l2dy•36m ago•0 comments

Anthropic Model inference runs fastest on AWS

https://twitter.com/theo/status/2050078772507124134
1•albert_e•37m ago•0 comments

How People ask Claude for personal guidance

https://www.anthropic.com/research/claude-personal-guidance
1•pseudolus•37m ago•0 comments

No action taken against PimEyes: noyb lawsuit against Hamburg DPA

https://noyb.eu/en/no-action-taken-against-pimeyes-noyb-lawsuit-against-hamburg-dpa
1•latexr•39m ago•0 comments

The Starlink hack that doomed Russian troops [video]

https://www.thetimes.com/video/originals/article/starlink-hack-doomed-russian-troops-jgr0w9jkp
1•petethomas•43m ago•0 comments

Insights into software job openings – may2026

https://corvi.careers/blog/global_software-engineering_jobs_may_2026/
2•sp1982•46m ago•0 comments

Shivon Zilis Operated as Elon Musk's OpenAI Insider

https://www.wired.com/story/model-behavior-why-everything-in-musk-v-altman-leads-back-to-shivon-z...
2•aanet•55m ago•0 comments

Japan Airlines begins humanoid robot trials at Tokyo's Haneda airport as labor s

https://www.cnbc.com/2026/05/01/japan-airlines-humanoid-robots-haneda-labor-shortage.html
2•bookmtn•59m ago•0 comments

Elon Musk Seemingly Admits xAI Has Used OpenAI's Models to Train Its Own

https://www.wired.com/story/elon-musk-distill-openai-models-partly-xai/
5•satai•1h ago•0 comments

LA-SF rail will cost about $126B, with service beginning around 2040

https://ktla.com/news/california/california-high-speed-rail-cost-increase/
3•swyx•1h ago•1 comments

Show HN: Git repositories hosted directly on Freenet

https://github.com/freenet/freenet-git
3•sanity•1h ago•0 comments

U.S. Aims to Penalize Disabled Adults Who Live with Their Families

https://www.propublica.org/article/trump-social-security-ssi-disability-benefits-cuts-parents-chi...
3•petethomas•1h ago•0 comments

AliothPress – self-hosted, cloud-native CMS with a wizard-based installation

https://aliothpress.com/
3•Strodt•1h ago•0 comments

One solar storm could trigger a catastrophic collision in orbit

https://spectrum.ieee.org/kessler-syndrome-crash-clock
2•thread_id•1h ago•0 comments

Show HN: A vdom-less framework that's local first

https://github.com/terajs/terajs
2•thecodergabe•1h ago•0 comments

AI Tips and Tricks

https://www.youtube.com/watch?v=w_m5RmVsmtE
2•frag•1h ago•0 comments

Show HN: ChatToMap – Scans your chats to find all your activity and trip ideas

https://chattomap.com
1•nathan_f77•1h ago•0 comments