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.

Weft: A Centroid Language for LLMs

https://roblesnotes.com/blog/weft-language-for-llms/
1•Findeton•1m ago•0 comments

Proton 11.0 Beta Released with More Games Playable on Steam Play

https://www.phoronix.com/news/Proton-11.0-Beta
1•Bender•2m ago•0 comments

UFO-linked scientist who warned 'my life is in danger' found dead at 34

https://www.dailymail.co.uk/sciencetech/article-15738699/ufo-scientist-amy-eskridge-death-huntsvi...
1•Bender•9m ago•0 comments

Trump expected to sign executive order urging more research psychedelic ibogaine

https://www.cnn.com/2026/04/16/health/ibogaine-psychedelic-trump-executive-order
1•Bender•13m ago•0 comments

NASA's Artemis II News Conference with Moon Astronauts [video]

https://www.youtube.com/watch?v=_43Ei9eQVww
1•BiraIgnacio•14m ago•0 comments

Hospital Held Woman for Months Against Her Will. SCOTUS to decide if she can sue

https://reason.com/2026/04/10/a-maryland-hospital-held-a-woman-for-months-against-her-will-the-su...
2•SilverElfin•14m ago•0 comments

Justice Dept. Appealing Surveillance Court Ruling Amid Congressional Impasse

https://www.nytimes.com/2026/04/16/us/politics/fisa-ruling-appeal.html
2•Cider9986•17m ago•0 comments

Relaxation of US day-trading rules opens door to YOLO trading, higher risk

https://www.reuters.com/legal/government/relaxation-us-day-trading-rules-opens-door-yolo-trading-...
3•petethomas•17m ago•1 comments

SpaceX Moves Up Vesting Schedule for Employee Shares Before IPO

https://www.bloomberg.com/news/articles/2026-04-16/spacex-moves-up-vesting-schedule-for-employee-...
1•petethomas•19m ago•0 comments

Zig 0.16.0: I/O as an Interface

https://ziglang.org/download/0.16.0/release-notes.html#IO-as-an-Interface
1•bpierre•23m ago•0 comments

France reports over 40 cryptocurrency kidnappings so far this year

https://www.lemonde.fr/en/police-and-justice/article/2026/04/16/france-reports-over-40-cryptocurr...
2•geox•23m ago•0 comments

Wii Homebrew Channel – WiiBrew

https://wiibrew.org/wiki/Homebrew_Channel
1•evo_9•24m ago•0 comments

Brave Origin

https://support.brave.app/hc/en-us/articles/38561489788173-What-is-Brave-Origin
1•nreece•25m ago•1 comments

Administration Planning to Blow Off FISA Court's Ordered Section 702 Fixes

https://www.techdirt.com/2026/04/15/administration-apparently-planning-to-blow-off-fisa-courts-or...
1•Cider9986•27m ago•0 comments

Connect maker devices to Claude Code and Cowork

https://github.com/anthropics/claude-desktop-buddy
1•felixrieseberg•28m ago•0 comments

Comfy.Guide

https://comfy.guide/
3•jethronethro•29m ago•0 comments

QSOlog – Offline-first PWA logbook for amateur radio operators

https://nuetzliches.github.io/qso-log/
1•nutz-bob•41m ago•0 comments

I Hate AI

6•jwpapi•44m ago•5 comments

100M commits to GitHub without using Git push

https://github.com/Wuerfelhusten/commitment
1•Wuerfelhusten•49m ago•1 comments

A type of bike theft in San Francisco

https://shub.club/writings/2026/april/a-type-of-bike-theft/
3•forthwall•57m ago•0 comments

Hospital at centre of child HIV outbreak caught reusing syringes in Pakistan

https://www.bbc.com/news/articles/clyrd818gd2o
43•flykespice•57m ago•7 comments

Breaking from Your Parents [video]

https://www.youtube.com/watch?v=VhpF9jC3a18
1•Aerbil313•58m ago•0 comments

I automated my local barbershop's chaos with code

https://ravoor.com/ar
5•megoxv•1h ago•0 comments

Stop New York's Attack on 3D Printing

https://www.eff.org/deeplinks/2026/04/stop-new-yorks-attack-3d-printing
3•iamnothere•1h ago•0 comments

Unwritten – 3-minute AI short film, Top at Soulscape 2026

https://www.youtube.com/watch?v=rzdvt-qOysI
1•gltanaka•1h ago•0 comments

Show HN: VCoding – A 5 MB native Windows IDE with no dynamic dependencies

1•Tonyjw2002•1h ago•0 comments

Planning and Monitoring Indoor Vertical Green Living Walls with Remote Sensing

https://onlinelibrary.wiley.com/doi/10.1155/ina/5782002
2•PaulHoule•1h ago•0 comments

George Orwell Predicted the Rise of "AI Slop" in Nineteen Eighty-Four (1949)

https://www.openculture.com/2026/04/how-george-orwell-predicted-the-rise-of-ai-slop.html
25•doener•1h ago•10 comments

Show HN: LLMs don't hallucinate because they're bad at math, it's the format

https://github.com/yvonboulianne/laeka-rational
2•yvonboulianne•1h ago•0 comments

Ne, the Nice Editor

https://github.com/vigna/ne
2•Lyngbakr•1h ago•0 comments