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.

iOS 26 Shows Unusually Slow Adoption Months After Release

https://www.macrumors.com/2026/01/08/ios-26-shows-unusually-slow-adoption/
1•latexr•1m ago•0 comments

Study casts doubt on potential for life on Europa

https://www.reuters.com/science/study-casts-doubt-potential-life-jupiters-moon-europa-2026-01-06/
1•paulpauper•1m ago•0 comments

AI #150: While Claude Codes

https://thezvi.substack.com/p/ai-150-while-claude-codes
1•paulpauper•3m ago•0 comments

Vegetarians, spam, spite programming, and drug names

https://dynomight.substack.com/p/shorts-7
1•paulpauper•3m ago•0 comments

My Daily Lesson in Hacker News Etiquette

1•jannesblobel•7m ago•0 comments

OrbitHQ turns SEO audits and analytics into actionable tasks

https://tryorbithq.com/
1•astralshard•7m ago•1 comments

Valve: Linux hit another all-time high

https://www.gamingonlinux.com/2026/01/valve-amended-the-steam-survey-for-december-2025-linux-actu...
1•sergiotapia•10m ago•0 comments

ChatGPT for Healthcare

https://openai.com/index/openai-for-healthcare
1•tylerrobinson•11m ago•0 comments

Functional programming at the type level in TypeScript

https://github.com/gvergnaud/hotscript
1•RyanZhuuuu•12m ago•0 comments

Who Was Caroline Haslett?

https://www.bbc.co.uk/bitesize/articles/z3rxm39
1•susam•13m ago•0 comments

Effect Institute

https://www.effect.institute/
1•handfuloflight•14m ago•0 comments

Show HN: Legit, Open source Git-based Version control for AI agents

2•jannesblobel•22m ago•0 comments

Canadian statutory severance and termination pay calculator

https://canadaemploymentrules.ca/
1•cerdotca•23m ago•1 comments

Why Are Grok and X Still Available in App Stores?

https://www.wired.com/story/x-grok-app-store-nudify-csam-apple-google-content-moderation/
8•alwillis•25m ago•6 comments

Job postings evaluator against your resume (Chrome extension)

https://github.com/alikh31/job-ad-evaluator
1•alikhoramshahi•25m ago•0 comments

I built an AI agent that deploys a PR to production

2•amouehsan•26m ago•0 comments

Non-Traditional Profiling: "you can just put whatever you want in a jitdump"

https://www.mgaudet.ca/technical/2026/1/8/non-traditional-profiling
1•matt_d•27m ago•0 comments

Running a real consumer app on a 70B LLM at sub-cent cost per scan

https://www.cornstarch.ai/
1•rs1996•28m ago•1 comments

The Shaggs

https://en.wikipedia.org/wiki/The_Shaggs
5•jethronethro•29m ago•0 comments

NBA's new AI stat measures defensive gravity

https://www.nba.com/news/intro-to-gravity-stat-nba-2025
1•cyr0dj0hn•30m ago•0 comments

Reflection-Driven Control for Trustworthy Code Agents

https://arxiv.org/abs/2512.21354
1•PaulHoule•30m ago•0 comments

I built a fake chat generator in 18 hours because the existing ones all suck

https://messagesy.xyz/
1•hristoff•30m ago•1 comments

Google Earth Engine Timelapse

https://earthengine.google.com/timelapse/
2•twalichiewicz•31m ago•0 comments

Transformative and subsistence entrepreneurs: Impacts on economic growth

https://www.nber.org/papers/w33766
2•hhs•31m ago•0 comments

The Haskell Debugger for GHC 9.14

https://discourse.haskell.org/t/the-haskell-debugger-for-ghc-9-14/13499
1•romes•31m ago•0 comments

Distributions Quote of the Fortnight – PGP

https://lwn.net/Articles/1053089/
1•shakna•32m ago•0 comments

AI Did Not Take Your Agency. You Handed It Over

https://systemic.engineering/ai-did-not-take-your-agency-you-handed-it-over/
1•wolf4earth•33m ago•0 comments

How Hackers Are Fighting Back Against ICE

https://www.eff.org/deeplinks/2026/01/how-hackers-are-fighting-back-against-ice
12•zzzeek•35m ago•1 comments

Hard Mode Veganism

https://giantmecha.substack.com/p/hard-mode-veganism
2•rafaepta•36m ago•0 comments

List of Open Problems in Sublinear Algorithms [pdf]

https://sublinear.info/files/sublinear_info_20170429.pdf
1•frozenseven•38m ago•0 comments