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.

I have an idea I wanted to share with you all

1•prassamin•26s ago•0 comments

Show HN: Flash.nvim, but for Tmux Sort Of

https://github.com/Kristijan/flash-copy.tmux
1•KristijanM13•1m ago•0 comments

Newly discovered coffee compounds beat diabetes drug in lab tests

https://www.sciencedaily.com/releases/2026/01/260110211224.htm
1•ashishgupta2209•1m ago•0 comments

AI, Japanese chimpanzee who counted and painted dies at 49

https://www.bbc.com/news/articles/cj9r3zl2ywyo
1•reconnecting•3m ago•0 comments

Humans Have Accidentally Created a Barrier Around the Earth

https://www.iflscience.com/humans-have-accidentally-created-a-barrier-around-the-earth-81973
1•akg130522•3m ago•0 comments

NotebookLM Watermark Remover – Remove Watermark from PDF

https://geminiwatermarkremover.net/
1•AI_kid1412•3m ago•0 comments

Video Message from Federal Reserve Chair Jerome H. Powell

https://twitter.com/federalreserve/status/2010510130970849338
1•baxtr•4m ago•0 comments

The Simpler Things in Life [video]

https://www.youtube.com/watch?v=els71JSBIaY
1•genderdoog•5m ago•0 comments

Linux Market Share Remains Above 3% for 3 Months in a Row – January 2026 Report

https://itsfoss.com/linux-market-share/
2•mindracer•7m ago•0 comments

One Thousand Words

https://drewmayo.com/1000-words/index.html
1•todsacerdoti•10m ago•0 comments

iFixit The Worst Devices of CES 2026 [video]

https://www.youtube.com/watch?v=cxZgILm95BU
1•levanten•11m ago•0 comments

Anthropic brings Claude to healthcare with HIPAA-ready Enterprise tools

https://www.bleepingcomputer.com/news/artificial-intelligence/anthropic-brings-claude-to-healthca...
1•fleahunter•11m ago•0 comments

Select text and search with your preferred engine or AI, all in one click

https://chromewebstore.google.com/detail/onering-select-and-search/fjpigicmicdmlmhmkilknomjkkipgafk
1•nanxiaobei•19m ago•0 comments

Jerome Powell's being threatened [video]

https://www.youtube.com/watch?v=RFTGjDR72i4
1•chii•20m ago•0 comments

Why is it so hard to do the thing I claim to want?

https://seekingtrust.substack.com/p/why-is-it-so-hard-to-do-what-i-claim
1•FinnLobsien•23m ago•0 comments

A field guide to sandboxes for AI

https://www.luiscardoso.dev/blog/sandboxes-for-ai
1•saikatsg•30m ago•0 comments

Scope: Hierarchical planner beats LLMs, 55x faster, 1/160k size

https://skyfall.ai/blog/scope-hierarchical-planner-55x-faster-than-llms
1•GeorgeOldfield•33m ago•0 comments

Revit AI Render: Faster AI Rendering for Architects

https://vocus.cc/article/6964af54fd897800012db1b1
1•architech_willy•36m ago•0 comments

You Need to Yearn More

https://twitter.com/justalexoki/status/2010380526402900028
1•keepamovin•36m ago•0 comments

Show HN: Self-hosted micro-learning platform with Full featured (Django/SolidJS)

https://github.com/cobel1024/minima
1•pigon1002•37m ago•1 comments

What Accenture's acquisition of Faculty means for AI enablement services

https://www.aienablementinsider.com/p/what-accenture-s-acquisition-of-faculty-ai-means-for-ai-ena...
1•dylancollins•38m ago•0 comments

Ask HN: What business processes still waste time every week?

1•lzr_mihnea•41m ago•0 comments

Show HN: AIIM – platform to build AI agents with psychological depth

https://ai-im.tech
1•juliavvrn•42m ago•0 comments

AI industry insiders launch site to poison the data that feeds them

https://www.theregister.com/2026/01/11/industry_insiders_seek_to_poison/
3•50kIters•50m ago•0 comments

AGI Next Frontier Summit in Beijing (260110)

https://haebom.dev/archive?tl=en&post=d367nxm38w8xv2j98pv1
2•haebom•55m ago•0 comments

Writing a Program in Par [video]

https://www.youtube.com/watch?v=nU7Lt6k3lNQ
2•razodactyl•57m ago•0 comments

Show HN: GAM7 Companion – macOS app that automates Google Workspace admin

https://github.com/halcarrell/gamgui-releases
1•stormer72•1h ago•0 comments

Show HN: I built a keyword tool that finds terms traditional tools miss

https://brightkeyword.com/
1•nyku•1h ago•1 comments

UpgradeLink – An Open-Source All-in-One Cross-Platform App Upgrade System

1•toolsetlink•1h ago•0 comments

Universal Commerce Protocol: open standard for agentic commerce

https://blog.google/products/ads-commerce/agentic-commerce-ai-tools-protocol-retailers-platforms/
1•rajeevk•1h ago•1 comments