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

Running the Stupid Cricut Software on Linux

https://arthur.pizza/2025/12/running-stupid-cricut-software-under-linux/
1•starkparker•9m ago•0 comments

Gold blasts past $5k to record high on safe-haven rush

https://www.reuters.com/business/finance/gold-rushes-record-high-above-5000oz-2026-01-25/
2•SilverElfin•11m ago•2 comments

Show HN: InsAIts V2 – Real-time monitoring for multi-agent AI communication

https://github.com/Nomadu27/InsAIts
1•MrSteaddy•17m ago•0 comments

Show HN: (29x faster)Rapidvalidators - Python's validators lib rewritten in Rust

https://github.com/vivekkalyanarangan30/rapidvalidators
2•vivekkalyanaran•21m ago•0 comments

Flying Toasters

https://www.bryanbraun.com/after-dark-css/all/flying-toasters.html
2•sadeshmukh•24m ago•1 comments

Cloudflare-level AI-LLM bot protection, but data is under your control

https://github.com/cocky-punch/fantasma_cero
2•cascada•25m ago•0 comments

Trump says US used secret weapon to disable Venezuelan equipment in Maduro raid

https://apnews.com/article/trump-venezuela-weapon-maduro-drug-strikes-c052fd24a350a04a458f501b4b5...
3•colinprince•28m ago•4 comments

The Politics of Struggling Americans

https://www.gojiberries.io/the-politics-of-struggling-americans/
2•neehao•30m ago•0 comments

A Poem That Behaves Like a Machine

https://medium.com/@darwingosal/a-poem-that-behaves-like-a-machine-737fce2791f4
2•CharlesW•31m ago•0 comments

Environmentalists worry Google behind bid to control Oregon town's water

https://www.sfgate.com/national-parks/article/mount-hood-water-google-21307223.php
5•voxadam•35m ago•0 comments

Gemini team, please add URL query parameter support (?q= or?prompt=)

1•hiddenest•41m ago•1 comments

A New Hardware Class of 2026

https://www.recordsofthought.com/signal-to-source
1•colinprince•43m ago•0 comments

The Atelier: Craft, Code, and the Coming Guild

https://jamesmunsch.com/words/2026-01-18-the-atelier--craft--code--and-the-coming-guild.html
1•b1n•43m ago•1 comments

Show HN: WhyThere – Compare cities side-by-side to decide where to move

https://whythere.life
1•daversa•44m ago•0 comments

We built an AI coding tool that stores nothing on our servers

https://shakespeare.diy
5•ravenbitcoin•46m ago•3 comments

Central Banks Hit Next Stage in Cross-Border Payment Project

https://www.pymnts.com/news/cross-border-commerce/cross-border-payments/2026/central-banks-hit-ne...
1•shorsher•51m ago•0 comments

NukeCast: If it happened today, where would the fallout go

https://nukecast.com/
1•todd_tracerlab•54m ago•1 comments

Loki Mode: Autonomous System for Claude, Codex and Gemini CLI

https://github.com/asklokesh/loki-mode
1•slogansand•54m ago•2 comments

Windows 11's Patch Tuesday nightmare: Microsoft says some PCs might not boot

https://www.windowscentral.com/microsoft/windows-11/windows-11s-botched-patch-tuesday-update-nigh...
3•speckx•1h ago•0 comments

It Was One Guy

https://dannyman.toldme.com/2026/01/26/it-was-one-guy/
3•saulpw•1h ago•0 comments

The pandemic's hidden toll: chronic conditions left undiagnosed

https://medicalxpress.com/news/2026-01-pandemic-hidden-toll-millions-chronic.html
2•WaitWaitWha•1h ago•1 comments

Japan Bond Crash Unleashes a $7T Risk for Global Markets

https://www.bloomberg.com/news/features/2026-01-25/japan-bond-market-crash-raises-alarm-for-globa...
2•zerosizedweasle•1h ago•0 comments

Advanced hotdog

https://doghot.app/
6•jdojsinfn•1h ago•0 comments

Tech CEOs attend Amazon-funded "Melania" screening at White House

https://www.hollywoodreporter.com/movies/movie-news/white-house-vip-melania-screening-mike-tyson-...
36•camillomiller•1h ago•17 comments

Preparing Investigators for Trauma Exposure in Digital Forensics

https://www.forensicfocus.com/podcast/preparing-investigators-for-trauma-exposure-in-digital-fore...
2•WaitWaitWha•1h ago•0 comments

ChatGPT Is Pulling Answers from Elon Musk's Grokipedia

https://techputs.com/chatgpt-pulling-answers-from-grokipedia/
2•voxadam•1h ago•0 comments

Werewolf Romance 101: quick trope map and what to watch for

2•XiayMu•1h ago•0 comments

Ted Chiang and What it is like to be an A.I

https://jonathantdneil.substack.com/p/ted-chiang-and-what-it-is-like-to
2•hkhn•1h ago•0 comments

Yarbo autonomous snow blower clearing driveway during storm

https://twitter.com/tommolog/status/2015450792065376656
2•ChrisArchitect•1h ago•0 comments

Compiled Node.js 18 from source on jailbroken iPhone to run Claude Code

1•BryanTheCynic•1h ago•0 comments