frontpage.
newsnewestaskshowjobs

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•1y 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•1y 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•1y 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.

Building Real-Time Financial Analytics with Stream Processing

https://medium.com/@DolphinDB_Inc/why-stream-processing-matters-and-how-dolphindb-does-it-b63c5dc...
1•chaercling•1m ago•0 comments

CstWeave – On-device, privacy-first Chrome extension for tab region GIFs

1•fujidevv•3m ago•0 comments

Overprint vs. Knockout

https://www.designyourway.net/blog/overprint-vs-knockout/
1•ankitg12•3m ago•0 comments

Show HN: Watch 14-Byte AI "brains" attempt to solve a 2D maze (Its hard)

https://con-dog.github.io/MINIMIO-PUBLIC-FRONTEND/
1•purple-leafy•6m ago•1 comments

Show HN: Anduril, Apple, Antropic. Recap the biggest tech news from last week

https://choclatenews.substack.com/p/icymi-anduril-unveiled-thunder
1•dariusogenyiebu•7m ago•0 comments

Show HN: How big of a deal of energy dependence on technology market?

https://raylinement.substack.com/p/how-big-of-a-deal-of-energy-dependence
1•rzwsan•7m ago•0 comments

Show HN: How to Resolve Software Deployment Issues with SeaTicket in 4 Steps

2•Daniel-Pan•11m ago•0 comments

China wants to end AI romances

https://www.economist.com/china/2026/07/16/china-wants-to-end-ai-romances
1•hebelehubele•14m ago•1 comments

Show HN: 'Write' – A Markdown Editor in the Browser

https://codeberg.org/joexo/write
1•joexo•14m ago•0 comments

API Testing Chrome Extension

https://chromewebstore.google.com/detail/repost-api-tester/eipmeckflplenlbnlhbpmjojahephhkp
1•info-chirila•18m ago•0 comments

OpenAI's myopia keeps causing alignment problems

https://www.lesswrong.com/posts/Mxx5GapJtqyQtpy96/openai-s-myopia-keeps-causing-alignment-problems
1•joozio•21m ago•0 comments

AgentHost – Persistent, governed AI agents in your own cloud

https://agenthost.space/
1•stevekaplanai•21m ago•0 comments

Seriously, what is the large code-model even for?

https://fzakaria.com/2026/07/26/seriously-what-is-the-large-code-model-even-for
1•ingve•22m ago•0 comments

Sodaslim| Natural Weight Management Support

https://finance.yahoo.com/healthcare/articles/sodaslim-releases-updated-2026-highlights-122400710...
1•Zoerieves•26m ago•0 comments

The Problem with Capitalism – Smarter Every Day [video]

https://www.youtube.com/watch?v=vS6HEes8daw
2•Erikun•27m ago•1 comments

ASD-STE100 Simplified Technical English for LLMs

https://github.com/woosal1337/blog/tree/main/videos/ep01-the-cure-for-ai-slop
1•modinfo•30m ago•1 comments

Word, Excel, PowerPoint, Markdown, PowerPoint, Visio, OneNote, Email as C#/MIT

https://officeimo.com/
1•themadboy•31m ago•1 comments

Lexidraw: Excalidraw fork with collaborative editing powered by iroh

https://tangled.org/pds.dad/lexidraw
2•nerdypepper•33m ago•0 comments

Show HN: Relay – turn Claude Code into a visual Kanban build loop

https://github.com/YoniRaviv/Relay
1•YonathanRaviv•36m ago•0 comments

Concurrency, interactivity, mutability, choose two

https://www.n16f.net/blog/concurrency-interactivity-mutability-choose-two/
1•billiob•43m ago•0 comments

Germany's sick-note crackdown may be treating the symptoms, not the disease

https://www.reuters.com/business/world-at-work/germanys-sick-note-crackdown-may-be-treating-sympt...
1•rustoo•44m ago•1 comments

Show HN: WordEq

https://wordeq.app/
1•Minhir•47m ago•0 comments

High-Performance Factor Evaluation

https://medium.com/@DolphinDB_Inc/high-performance-factor-evaluation-with-dolphindb-23bb6954503f
3•napgirllll•48m ago•0 comments

Apple Sues OpenAI: The 41-Page Lawsuit Exposing Their Secret War: Lawsuit

https://www.youtube.com/watch?v=L0iIW6wpSGQ
1•cable2600•51m ago•0 comments

Show HN: Codex Plays NetHack

https://asciinema.org/s/HS1tpO6cjFsaSzS7
1•emosenkis•52m ago•0 comments

Ask HN: Are we having a substantial increase of "Show HN" since LLM aided coding

4•mdp2021•54m ago•2 comments

OpenSparrow v3.0 is out. The GDPR anonymization module

https://opensparrow.org/en/
1•tomaszwrobel•55m ago•1 comments

AgentControl

https://github.com/kyzrxe-max/agent-guard
1•celicialabs•55m ago•0 comments

Hamburg's Stadtpark: A Park Built to Be Used

https://alsterrunde.com/hamburgs-stadtpark-a-park-built-to-be-used/
1•mertbio•58m ago•0 comments

Show HN: Descript wanted $24/mo, I built an open-source alternative in a weekend

https://github.com/wassgha/rescript
2•wassimgr•59m ago•0 comments