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•9mo 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•9mo 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•9mo 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

https://github.com/Futsch1/medTimer
1•futsch•40s ago•0 comments

Ask HN: Who is building ClawdWatch, or the AI that watches the AI?

1•cedel2k1•1m ago•0 comments

Hype Edit 1 – benchmark for reliability in image editing models

https://github.com/sourceful-official/hype-edit-1-benchmark
1•sf-wy•2m ago•0 comments

Surface-Stable Fractal Dithering Explained [video]

https://www.youtube.com/watch?v=HPqGaIMVuLs
1•romes•2m ago•0 comments

Show HN: Slay the Spire 2 Database – Cards, Characters, and Deck Builder

https://thoughts.jock.pl/p/slay-the-spire-2-everything-we-know-card-database-2026
1•joozio•3m ago•0 comments

Who's in Charge? Disempowerment Patterns in Real-World LLM Usage

https://arxiv.org/abs/2601.19062
1•7777777phil•3m ago•0 comments

The Official ClickHouse Kubernetes Operator

https://clickhouse.com/blog/clickhouse-kubernetes-operator
1•samaysharma•3m ago•0 comments

Why Was a Dead Pope Put on Trial at the Cadaver Synod?

https://www.thecollector.com/cadaver-synod-pope-formosus/
1•Tomte•5m ago•0 comments

Effects of acute cardiovascular exercise on memory encoding and consolidation

https://www.sciencedirect.com/science/article/abs/pii/S0149763420304450
1•RickJWagner•5m ago•1 comments

What Is This

1•lolhahahaha•7m ago•0 comments

China's Demographic Crisis and the Return to 400M

https://www.sinification.org/p/chinas-demographic-crisis-and-the
1•herbertl•9m ago•0 comments

Idiom of the Week: Herding Cats

https://englishexplorations.check.uni-hamburg.de/idiom-of-the-week-herding-cats/
2•jruohonen•9m ago•0 comments

My Takes on NeurIPS 2025

https://vindler.solutions/blog/neurips-2025-san-diego
1•cdutra•9m ago•0 comments

Show HN: Maestro-runner – Maestro alternative in Go (no JVM, 2-3x faster)

https://github.com/devicelab-dev/maestro-runner
1•omnarayan•10m ago•1 comments

The Missing Middle of Open Source

https://natemoo.re/posts/missing-middle/
1•speckx•10m ago•0 comments

A Telegram Assistant That Turns Brain Dumps into Structured Markdown

https://alexeyondata.substack.com/p/telegram-assistant
2•kavaivaleri•11m ago•0 comments

How Knowledge Poisoning Shapes What We Think Without Us Noticing

https://twitter.com/ellatravelslove/status/2018327430268690616
2•nailer•12m ago•0 comments

HTTP/1.1 from Scratch

https://kmcd.dev/posts/http1.1-from-scratch/
1•ingve•13m ago•0 comments

Show HN: GitGuessr – test your code reading skills in a GeoGuessr-like game

https://www.gitguessr.com/
1•nikhaldi•14m ago•0 comments

How to Accelerate the American Scientific Enterprise

https://ifp.org/accelerating-the-american-scientific-enterprise/
1•surprisetalk•14m ago•0 comments

A Parametric Mannequin for FreeCAD

https://incoherency.co.uk/blog/stories/freecad-mannequin.html
1•surprisetalk•14m ago•0 comments

Great Ball Contraption (GBC) at Japan Brickfest 2025 [video]

https://www.youtube.com/watch?v=5B6sGSleXZg
1•ColinWright•14m ago•0 comments

BigBotherLinux: An annoying, yet functional Linux distribution

https://github.com/BigBotherLinux/BigBother
1•surprisetalk•14m ago•0 comments

Tessellation Kit (2016)

https://sciencevsmagic.net/tes/#0.5.0.1.aaaaaaaaa
1•surprisetalk•14m ago•0 comments

A fungus living in our body can make melanoma more aggressive

https://www.ehu.eus/en/web/campusa-magazine/-/it-has-been-clarified-that-a-fungus-living-in-our-b...
4•geox•15m ago•0 comments

Advertising would be incompatible with Anthropic's vision

https://twitter.com/claudeai/status/2019024565398299074
2•taytus•18m ago•1 comments

Personal AI Is Here (and You're Probably Not Ready)

https://www.robert-glaser.de/personal-ai-is-already-here/
1•todsacerdoti•18m ago•0 comments

China to ban hidden door handles on cars starting in 2027

https://apnews.com/article/china-car-door-handles-ev-tesla-0c8a310e8d5b38804a725ec698c84f8f
4•bobwaycott•19m ago•0 comments

Show HN: Instantly surface the assumptions behind a UI screenshot

https://app.usercall.co/ai-user-testing
1•junetic•21m ago•0 comments

The Making of Kanjideck

https://alt-romes.github.io/posts/2026-01-30-from-side-project-to-kickstarter-a-walkthrough.html
1•romes•23m ago•0 comments