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.

Show HN: I built Stardew Valley but you pay for everything

https://pixelhof.com
1•robinfaraj•20s ago•0 comments

ThoughtDAG can now turn local coding-agent sessions into editable context graphs

https://github.com/chenxiachan/thoughtdag
1•chatchan•2m ago•1 comments

Mac App Store Apps Can Now Drop Support for Intel Macs

https://www.macrumors.com/2026/09/01/mac-app-store-intel-mac-support/
1•ValentineC•2m ago•0 comments

OpenAI Lawsuits Mount over Canadian School Shooting

https://www.wsj.com/us-news/law/openai-lawsuits-mount-over-canadian-school-shooting-ca24c762
2•JumpCrisscross•4m ago•0 comments

Show HN: A free phone number that live-interprets calls between 47 languages

https://translatemycall.com
1•kolchinski•4m ago•0 comments

Eternal September

https://en.wikipedia.org/wiki/Eternal_September
1•Naac•5m ago•0 comments

Secret 'messages' in cat pee let felines identify each other

https://www.livescience.com/animals/cats/cats-have-unique-chemical-fingerprints-in-their-pee
2•gmays•5m ago•0 comments

New Heart Attack Definitions Could Lead to Better Care for Women

https://nautil.us/new-heart-attack-definitions-could-lead-to-better-care-for-women-1284697
1•Brajeshwar•5m ago•0 comments

Aloe = Scheme and Smalltalk and Types

https://github.com/dharmatech/2026-09-02-aloe-racket
1•dharmatech•5m ago•0 comments

All Wired Up

https://casualarchivist.substack.com/p/wired-up
1•speckx•6m ago•0 comments

Sharing Application State in a URL

https://ivakin.dev/blog/state-in-url
1•Minhir•7m ago•0 comments

$1 coin with Trump's face and gold finish to go on sale

https://apnews.com/article/trump-coin-america-250-gold-817c62abfcec862b8c1ec622e5809ab4
1•geox•7m ago•0 comments

Sold as in the advertisement. Refused when its pixels died

https://sonybravia.com/
1•cute_boi•8m ago•0 comments

Paint.net 5.2 alpha now runs on Linux

https://forums.paint.net/topic/134562-paintnet-52-alpha-build-9739/
2•judah•9m ago•0 comments

Sender Reputation Protects Email Delivery

https://www.maxprog.com/site/blog/post.php?id=3020&topic=How-Sender-Reputation-Protects-Email-Del...
2•maxprog•10m ago•0 comments

Show HN: G3M – MCP server for physical outbound

https://g3m.co/
2•davismartens•12m ago•0 comments

The high cost of free data: Why are cities paying so much for open data portals?

https://grandschema.substack.com/p/the-high-cost-of-free-data
2•apwheele•14m ago•0 comments

The Curious Economics of Lab Monkeys

https://vick.substack.com/p/the-curious-economics-of-lab-monkeys
3•vickspicks•15m ago•0 comments

I made a clone of myself to provide quick facts about the company where I work

https://www.synthesia.io/post/synthesia-ai-press-officer
2•alexvoica•15m ago•1 comments

Oh-my-pi – The Harness Playbook

https://stencil.so/blog/harness-playbook
2•maherbeg•15m ago•0 comments

Kimi K3 and GLM-5.3 are better than Gemini 3.8 Flash

5•theHocineSaad•16m ago•0 comments

TSDProxy: one Tailscale docker service for every labeled container

https://almeidapaulopt.github.io/tsdproxy/
3•opengrass•17m ago•0 comments

Databricks used AI to save $1mi/year in AI spend

https://www.databricks.com/blog/how-we-eliminated-1-million-year-wasted-ai-agent-spend-one-hour
2•ssgodderidge•17m ago•0 comments

Google Messages has a weird bug that's sending old texts to random people

https://www.androidauthority.com/google-messages-old-texts-bug-3704732/
3•ledoge•20m ago•0 comments

The Netherlands moves 86 tonnes of gold out of US due to 'geopolitical unrest'

https://www.dailymail.com/news/article-16099075/Netherlands-moves-gold-US-geopolitical-unrest.html
19•doener•23m ago•7 comments

ChatGPT ad targeting is garbage

https://successfulsoftware.net/2026/09/02/chatgpt-ad-targeting-is-garbage/
5•hermitcrab•23m ago•2 comments

About half of Americans say they spend too much time on their smartphone

https://www.pewresearch.org/short-reads/2026/09/01/about-half-of-americans-say-they-spend-too-muc...
4•DeepLogin•23m ago•1 comments

Why the Recent Total Eclipse Looked Unusual

https://nautil.us/why-the-recent-total-eclipse-looked-unusual-1284700
5•Brajeshwar•23m ago•0 comments

Open source Python validation suite for the WIN Paradigm

https://github.com/007STAN/WIN-PARADIGM-VALIDATION
2•007STAN•24m ago•0 comments

Black Hole Museum: A New Idea for the Los Alamos Community (2025)

https://losalamosreporter.com/2025/06/29/black-hole-museum-a-new-idea-for-the-los-alamos-community/
3•Bluestein•25m ago•1 comments