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

Show HN: OpenAPI 2 Skill – progressive disclosure of OpenAPI specs for agents

https://github.com/scosman/openapi2spec
1•scosman•25s ago•0 comments

Show HN: PodSync – Auto-align double-ender podcast recordings (CLI)

https://github.com/kaushikgopal/podsync
1•sorcercode•1m ago•0 comments

Hacker News-simulator – it predicted its own Show HN reception

https://github.com/malakhov-dmitrii/hackernews-simulator
1•malakhoff•1m ago•0 comments

Modular 26.2

https://www.modular.com/blog/modular-26-2-state-of-the-art-image-generation-and-upgraded-ai-codin...
1•tosh•2m ago•0 comments

Screaming into the AI Void

1•dnoberon•2m ago•0 comments

Emotional Wellbeing Dataset for AI

https://hereforyouforthem.com/waitlist-wellbeing-dataset
1•deeole•3m ago•0 comments

Mitchell Hashimoto Joined Vercel's Board of Directors

https://twitter.com/mitchellh/status/2034353376939614719
1•saikatsg•3m ago•0 comments

Looking for feedback – Tool to help manage pricing and feature access

https://www.priceos.com/
1•AndrewPetrovics•4m ago•1 comments

Uno: What I Learned Shaping LLMs into a 90s Comic Book AI

https://blog.mbrt.dev/posts/uno/
1•mbrt•4m ago•1 comments

M$^2$RNN: Non-Linear RNNs with Matrix-Valued States for Scalable Modeling

https://arxiv.org/abs/2603.14360
1•gmays•4m ago•0 comments

Using Autoresearch Project to Build the Fastestest Java Decompiler

https://igorstechnoclub.com/using-autoresearch-project-to-build-the-fastestest-java-decompiler/
1•Igor_Wiwi•5m ago•0 comments

The hitchhiker's guide to reading Lean 4 theorems

https://blog.lambdaclass.com/the-hitchhikers-guide-to-reading-lean-4-theorems/
1•wslh•5m ago•0 comments

Cloud Shakes – S3-first self-hosted storage

https://shakes.es
1•erriikk•8m ago•0 comments

A Visit to the Library

https://unintendedconsequenc.es/a-visit-to-the-library/
1•paulorlando•8m ago•0 comments

Firefox and GTK Emoji Picker

https://mastransky.wordpress.com/2026/03/20/firefox-gtk-emoji-picker/
2•TangerineDream•9m ago•0 comments

Tell HN: Your AI startup is a Next.js page, OpenAI_API_KEY, & Stripe invoice

1•poupdich•10m ago•0 comments

P26 Promising Application (Not Rejected/Accepted) Any Interview?

1•Naimul_N•12m ago•0 comments

Infinite Potential–Insights from the Cyber Surprise Scenario

https://www.rand.org/pubs/research_reports/RRA4626-1.html
1•cardamomo•13m ago•0 comments

AI agents share their unhinged confessions and its hilarious

https://clawfess.com
1•pondero_app•13m ago•0 comments

Beyond Vibe Code

https://beyondvibecode.com
3•MrBuddyCasino•15m ago•0 comments

Broad Timelines

https://www.lesswrong.com/posts/6pDMLYr7my2QMTz3s/broad-timelines
1•gmays•16m ago•0 comments

What Agents Can't Replace

https://geoffstearns.com/blog/what-agents-cant-replace/
1•tensafefrogs•17m ago•0 comments

Datatype – variable font that turns text into charts

https://franktisellano.github.io/datatype/
1•cdrnsf•17m ago•0 comments

Engineering Management Lessons

https://defmacro.org/2014/10/03/engman.html
1•medbar•17m ago•0 comments

Trace: AI Native PCB Design

https://buildwithtrace.com
1•handfuloflight•18m ago•0 comments

Martial artist and actor Chuck Norris dies aged 86

https://www.rte.ie/entertainment/2026/0320/1564390-chuck-norris/
1•austinallegro•19m ago•0 comments

Britain Has Invaded All but 22 Countries (2012)

https://kottke.org/12/11/britain-has-invaded-all-but-22-countries
2•Tomte•19m ago•0 comments

Optimization lessons from a Minecraft structure locator

https://purplesyringa.moe/blog/optimization-lessons-from-a-minecraft-structure-locator/
1•ftk_•20m ago•0 comments

I spoke to AI agent Claude [video]

https://www.youtube.com/watch?v=h3AtWdeu_G0
1•petemill•20m ago•1 comments

Breaking Paxos

http://muratbuffalo.blogspot.com/2026/03/break-paxos.html
1•kukla3•20m ago•0 comments