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.

The Surprising Way AI Models Are Helping Humans Communicate Better

https://www.bbc.com/future/article/20251218-how-ai-can-teach-us-to-really-listen
1•xthe•57s ago•1 comments

How to generate 50K token documents using an agentic scaffold

https://www.dataframer.ai/posts/long-text-generation-dataframer-vs-baseline/
1•alex_aimon•1m ago•0 comments

FastMCP 3.0: From Tool Servers to Context Applications

https://mcpstatus.io/blog/202601-fastmcp-3
2•qave•3m ago•0 comments

Show HN: Free interactive security awareness library

https://ransomleak.com/learning/
1•dkozyatinskiy•4m ago•0 comments

AMD Ryzen AI Halo

https://twitter.com/AMDRyzen/status/2013642938106986713
1•polyrand•5m ago•0 comments

When Buttons Were the Hottest New Thing in Radio

https://paleofuture.com/blog/2024/12/30/when-buttons-were-the-hottest-new-thing-in-radio
1•ohjeez•7m ago•0 comments

Death Is an Engineering Challenge

https://danburonline.substack.com/p/death-is-an-engineering-challenge
1•kvee•10m ago•0 comments

I created an app to fight my sedentarism

https://movedoro.com/
1•gllermaly•12m ago•1 comments

Show HN: Poopyfeed – free, private, no account newborn tracking

https://develop.poopyfeed.com
1•mjmasia•12m ago•0 comments

JustHTML 1.0.0 Released

https://github.com/EmilStenstrom/justhtml
1•EmilStenstrom•17m ago•1 comments

F16 Falcon 2.0 – 3D Flight Simulator on Casio Calculator [video]

https://www.youtube.com/watch?v=cu6AIIK-RDc
1•starkparker•18m ago•0 comments

Anime.js Layout

https://animejs.com/documentation/layout/
2•handfuloflight•18m ago•0 comments

National income per adult has increased 1.1% per year on average 2010-2025

https://bsky.app/profile/gabrielzucman.bsky.social/post/3mcv2eqdb7s2y
2•doener•19m ago•1 comments

Amnesty urges halt to execution of 19-year-old Iranian protester

https://www.iranintl.com/en/202601209686
2•ukblewis•22m ago•0 comments

Ask HN: Have you integrated LLMs into any of your bash scripts or aliases?

1•detectivestory•23m ago•1 comments

Trying to exercise my data privacy rights led me to build a small opt-out tool

https://privacypartnersapp.com/
1•longbread•24m ago•1 comments

We're Still Underestimating What AI Means

https://tinyclouds.org/underestimating-ai/
1•thegeomaster•24m ago•0 comments

Reacting to news is basically a cheat code for traffic

https://jackseo.io/
2•janekfollendorf•25m ago•1 comments

Ask HN: Employment Dot Com Boom

3•_RPM•28m ago•0 comments

Show HN: A curated list of academic papers and resources on Physical AI

https://github.com/keon/awesome-physical-ai
1•kwk236•28m ago•0 comments

Anthropic CEO says selling AI chips to China like selling nukes to North Korea

https://www.bloomberg.com/news/articles/2026-01-20/anthropic-ceo-says-selling-advanced-ai-chips-t...
2•lateforwork•30m ago•1 comments

The Secretive VIP Programs That Keep Gamers Spending

https://www.nytimes.com/2026/01/20/arts/zynga-vip-video-games.html
1•reaperducer•30m ago•0 comments

The secret consultant: Your first steps to independence

https://bitfieldconsulting.com/posts/secret-consultant
1•jnord•32m ago•0 comments

Intelligent Laser Rust Removal Technology in Offshore Wind Power Operation

https://www.mdpi.com/2079-6412/16/1/6
1•PaulHoule•32m ago•0 comments

Shared execution plan cache for Amazon Aurora PostgreSQL

https://aws.amazon.com/blogs/database/using-the-shared-plan-cache-for-amazon-aurora-postgresql/
1•tanelpoder•34m ago•0 comments

Ask HN: SF founders training for a boxing match – anyone want in?

1•bananarabbit•35m ago•1 comments

'This Is Trump's Goon Squad, for Christ's Sake'

https://www.nytimes.com/2026/01/20/opinion/trump-vance-miller-ice.html
7•John7878781•35m ago•1 comments

Looking at the numbers, I'm less productive using AI

1•emerongi•36m ago•0 comments

DOGE employees may have improperly accessed social security data, DOJ says

https://www.axios.com/2026/01/20/doge-employees-social-security-information-court-filing
10•belter•37m ago•2 comments

Meadow Companion: so you can leave your phone

https://www.meadow.so/product
1•pwizzler•38m ago•0 comments