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.

The take-off in African solar that official statistics can't yet see – Ember

https://ember-energy.org/latest-insights/the-take-off-in-african-solar-that-official-statistics-c...
1•xbmcuser•1m ago•0 comments

Scientists build tiny robots without motors that can fly using sound waves alone

https://www.livescience.com/technology/robotics/scientists-build-tiny-robots-without-motors-that-...
1•n1b0m•1m ago•0 comments

Ask HN: A translation pipeline that doesn't chew up long HTML pages

1•lym11248•3m ago•0 comments

P(Kill-Switch|Detection)

https://www.lesswrong.com/posts/tvaQniyER4BmsQpbq/p-kill-switch-or-detection
1•kp1197•3m ago•0 comments

Cancelation Terminology

https://matklad.github.io/2026/08/31/cancelation-terminology.html
1•surprisetalk•3m ago•0 comments

All Grand Canyon hotels to close after flash floods, with no reopening date

https://www.sfchronicle.com/outdoors/article/grand-canyon-hotels-water-22410294.php
1•bookofjoe•4m ago•1 comments

numba-enzyme: Automatic differentiation of Numba functions

https://github.com/EnzymeAD/numba-enzyme
1•cl3misch•5m ago•0 comments

Ask HN: How did you improve agent's output readability?

1•futurecat•5m ago•0 comments

A Sword, a Surrender, and a Text to End a Twelve-Year Rabbit Hole

https://brianketcham786410.substack.com/p/a-sword-a-surrender-and-a-text-to
1•goles•7m ago•0 comments

Why Chinese Daily Life Vloggers Are Exploding on YouTube [video]

https://www.youtube.com/watch?v=-znk0dg59cA
1•acqbu•9m ago•0 comments

The Invisible Layers Holding Games Back [video]

https://www.youtube.com/watch?v=s5qKN2Yxaok
1•softwaredoug•9m ago•0 comments

Why good local decisions add up to a bad global one

https://www.thesignalist.io/s/the-silo-paradox/
1•cirio•12m ago•0 comments

A plugin that converts any DAW to 3D

https://main.audiocube.app/space
1•noahfk•13m ago•1 comments

I wish we had more time

https://kg.dev/thoughts/more-time
1•kashnote•13m ago•0 comments

Instinct.co

https://instinct.co/
1•abricq•13m ago•0 comments

A milestone in expanding access to AI

https://openai.com/index/expanding-access-to-ai-with-chatgpt-ads/
1•tosh•14m ago•0 comments

OpenAI,Anthropic etc. 100 companies call for action to defend against rogue AI

https://techcrunch.com/2026/08/27/openai-anthropic-google-and-100-other-companies-call-for-action...
3•deepmem•16m ago•0 comments

The Lost Art of Carrying Loads

https://www.carryology.com/insights/the-lost-art-of-carrying-loads/
2•surprisetalk•17m ago•0 comments

The Coming Case for Firing Your CIAM Provider

https://ciamweekly.substack.com/p/the-coming-case-for-firing-your-ciam
1•mooreds•18m ago•0 comments

The Art of Leaping Out of Planes to Fight Wildfires

https://www.newyorker.com/magazine/2026/09/07/the-art-of-leaping-out-of-planes-to-fight-wildfires
1•adrianhon•18m ago•0 comments

Grokking Apache Iceberg

https://thingsworthsharing.dev/iceberg/
1•stivikivi•20m ago•0 comments

Tim Cook's last day as Apple CEO

https://finance.yahoo.com/markets/stocks/article/its-tim-cooks-last-day-as-apple-ceo-investors-ar...
3•ludovicianul•21m ago•2 comments

Race to bottom in Indias voice AI market (0.15 cents/min)

https://twitter.com/rajananandan/status/2092952143078490550
2•kinj28•22m ago•0 comments

PyDPainter: A usable pixel art program written in Python

https://pydpainter.org/
1•doener•22m ago•0 comments

Show HN: Hybrids – a daily flower logic puzzle

https://hybrids.rudyp.dev
2•rudyp_dev•24m ago•1 comments

What's the best way to label speakers in a transcript? I measured every option

https://lyonesse.app/blog/speaker-diarization-benchmark.html
1•get-inscribe•26m ago•0 comments

Show HN: Nos4.fun – A functional iOS 4 recreation in the browser

https://github.com/1etu/nos4
2•1etu•26m ago•0 comments

Show HN: A dedicated hub to find, test, and serve LLM adapters

https://aptai.dev
1•ab613•26m ago•0 comments

Show HN: Decispher – persistent engineering context and memory for coding agents

5•iamalizaidi•28m ago•0 comments

For a Thirsty American West, It's Either Cows or Humans

https://www.bloomberg.com/opinion/articles/2026-08-31/colorado-river-cuts-will-force-southwest-to...
1•littlexsparkee•28m ago•1 comments