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

Self-Hosting LLMs with Ollama and Docker

https://www.sitepoint.com/ollama-local-llm-production-deployment-docker/
1•mrnobody_67•2m ago•0 comments

The Path to Ubiquitous AI

https://taalas.com/the-path-to-ubiquitous-ai/
1•2001zhaozhao•2m ago•0 comments

Vibeschism

https://r5d.me/vibeschism/
1•solaire_oa•4m ago•0 comments

Private Equity Debt Left a Leading VPN Open to Chinese Hackers

https://www.bloomberg.com/news/features/2026-02-19/vpn-used-by-us-government-failed-to-stop-china...
1•petethomas•5m ago•0 comments

LissaJous Curve Visualizer

https://thatxliner.github.io/ljv/
1•thatxliner•8m ago•0 comments

Large banner featuring Trump's face displayed on Justice Department headquarters

https://apnews.com/article/donald-trump-banner-justice-department-pam-bondi-13f3d901c9bd6d179e206...
3•petethomas•8m ago•0 comments

The Most Chess-Obsessed Country in the World

https://reasonstobecheerful.world/india-most-chess-obsessed-country-in-the-world/
1•PaulHoule•12m ago•0 comments

Show HN: Apple AirPods Price Drop Alerts

https://www.pricedropnotifications.com/airpods-price-drop.html
1•HNthanks•13m ago•0 comments

How to Win Any Debate: The 3 Pillars Framework| SuperDebate Workshop in Infinita [video]

https://www.youtube.com/watch?v=sHVIjc73brA
1•TheAntiEgo•14m ago•1 comments

Skill-engineering now From prompt to skill: how skills work under the hood

https://thevibemarketer.beehiiv.com/p/prompt-engineering-is-so-2023-it-s-all-about-skill-engineer...
1•rmason•14m ago•0 comments

AI pioneer Fei-Fei Li's World Labs raises $1B in funding

https://www.reuters.com/technology/artificial-intelligence/ai-pioneer-fei-fei-lis-world-labs-rais...
1•Ross00781•15m ago•0 comments

Spaghetti Bench: Evaluating AI Agents on Concurrency Bug Fixes

https://pastalab.org/spaghetti-bench/blog.html
1•matt_d•15m ago•0 comments

My Personal Experience with RSI

https://www.joshwcomeau.com/blog/mindbody/
1•williamsss•16m ago•0 comments

Desktop Commander vs. Claude Cowork

https://desktopcommander.app/blog/desktop-commander-vs-cowork/
2•rafaepta•17m ago•1 comments

Meta Horizons: Our Renewed Focus in 2026

https://developers.meta.com/horizon/blog/2026-vr-state-of-the-union-horizon-mobile-focus/
1•spzb•19m ago•0 comments

The "Highlight Reel" Myth of Social Media

https://greyenlightenment.com/2026/02/14/45632/
1•paulpauper•20m ago•0 comments

I left my YC job to build a news cross-referencer

https://nymble.digital
1•dizerv2•20m ago•2 comments

AI Helped Uncover a "50-80x Improvement" for Linux's IO_uring

https://www.phoronix.com/news/AI-50-80x-IO-uring
2•pella•21m ago•0 comments

Crea tu Bio Páginas y Menús QR dinámicos en solo 2 minutos

https://www.kvtemplate.com
1•kevinsotov•22m ago•1 comments

History of self-sustaining LLM agents in real-life workflows

https://spacelatte.notion.site/I-Built-LLM-Agents-for-Work-Before-We-Started-Calling-Them-Agents-...
1•pvtmert•23m ago•0 comments

Reflections on Trusting Trust (1984) [pdf]

https://www.cs.cmu.edu/~rdriley/487/papers/Thompson_1984_ReflectionsonTrustingTrust.pdf
1•bb88•23m ago•0 comments

Cothought: Claude as text editor, thinking journal

https://cothought.ai
1•elliotbnvl•23m ago•2 comments

OpenClaw and The Great Hiring Hiatus AGI is here. It's just not implemented yet

https://calacanis.substack.com/p/openclaw-and-the-great-hiring-hiatus
1•rmason•23m ago•0 comments

The Claude C Compiler: What It Reveals About the Future of Software

https://www.modular.com/blog/the-claude-c-compiler-what-it-reveals-about-the-future-of-software
2•dnw•23m ago•0 comments

3D starling murmuration with real-time hand tracking – single HTML file

https://murmuration-pink.vercel.app/
1•shadowdevil•24m ago•0 comments

The Next Generation of Mining Infrastructure with MOS, Mining OS, Mining SDK

https://tether.io/news/tether-open-sources-the-next-generation-of-bitcoin-mining-infrastructure-w...
1•janandonly•25m ago•0 comments

Exposed Persona Subdomains Reveals OpenAI-Linked Watchlist Gov API Infra

https://twitter.com/vxunderground/status/2024188446214963351
3•tristanMatthias•27m ago•0 comments

Visualizing the RISC-V Instruction Set

https://gist.github.com/camel-cdr/bd5b197ab140ad6df259916df1439066
1•camel-cdr•29m ago•0 comments

Kubernetes – GatewayApi Fundamentals

https://randomwrites.com/networking/07-Gateway-API-Fundamentals.html
1•mutahirs•29m ago•0 comments

Ubuntu 26.04 LTS Moving to OpenJDK 25 by Default

https://www.phoronix.com/news/Ubuntu-26.04-OpenJDK-25
4•mikece•32m ago•0 comments