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

Hollywood Invented the Girlboss

https://jacobin.com/2026/05/criterion-office-romances-women-workplace
1•robtherobber•8m ago•0 comments

Use LLMs to get an news report from the last week without the negativity

https://gist.githubusercontent.com/223740/16fcd4b403e5671e3c2d0aff0b11642c/raw/
1•alexander8776•9m ago•0 comments

Gabelle & Sel de devoir – French tax on & mandatory purchase of salt until 1946

https://en.wikipedia.org/wiki/Gabelle
1•burnt-resistor•10m ago•1 comments

Contributor Poker and Zig's AI Ban

https://kristoff.it/blog/contributor-poker-and-ai/
1•birdculture•10m ago•0 comments

Soviet Radio-86RK/i8080 computer IDE: emulator, assembler, C and PL/M compilers

https://rk86.ru
1•begoon•12m ago•0 comments

Asymmetric Flow Models

https://arxiv.org/abs/2605.12964
1•yorwba•18m ago•0 comments

FuriPhone FLX1s Linux Phone

https://sitespawn.ai
1•thunderbong•19m ago•0 comments

Show HN: Decentralized compute API on DePIN – scraping, OCR, JavaScript sandbox

https://revolution-network.fr/
1•korn_333•20m ago•0 comments

Australia orders China-linked investors to sell Northern Minerals stake

https://www.reuters.com/business/australia-treasurer-orders-six-shareholders-divest-northern-mine...
2•leonidasrup•23m ago•0 comments

Three's a party: US, China, and now Russia are on the prowl in GEO

https://arstechnica.com/space/2026/05/threes-a-party-us-china-and-now-russia-are-on-the-prowl-in-...
2•rbanffy•24m ago•0 comments

Ask HN: Could free/low cost LLMs be a momentary thing?

1•senda•29m ago•1 comments

Arcweave: Build interactive stories at the speed of thought

https://arcweave.com
1•doener•36m ago•0 comments

Two Autonomous Humanoid Robots Seamlessly Work Together to Make the Bed

https://laughingsquid.com/robots-make-bed/
1•air7•36m ago•0 comments

Show HN: Agent-QA: Open-source AI end-to-end testing for web and mobile apps

https://vostride.com
1•pranshuchittora•36m ago•1 comments

Two Americans Arrested After Crypto Stunt in Punch the Monkey's Zoo Enclosure

https://www.tokyoweekender.com/japan-life/news-and-opinion/american-arrested-ichikawa-zoo-punch-m...
2•razorbeamz•37m ago•0 comments

Apple May Add Auto-Deleting Chats to Siri as Gemini Powers Back End AI

https://firethering.com/apple-siri-revamp-privacy-google-gemini/
4•steveharing1•38m ago•3 comments

EchoPitch analyses emotional credibility in presentations before you deliver

https://echopitch.io
1•cavefishAI•42m ago•0 comments

Ask HN: Is Java the ideal language for LLM-assisted coding?

1•fragmede•42m ago•1 comments

New Design for the FreeBSD Website

https://cgit.freebsd.org/doc/commit/?id=c9c518d9dbb70240c23810f300ce4a5ba60442c6
1•vintagedave•42m ago•1 comments

Nobody's negotiating for the people here: Charlie Berens takes on AI datacenters

https://www.theguardian.com/us-news/ng-interactive/2026/may/17/comedian-charlie-berens-ai-datacen...
2•beardyw•43m ago•0 comments

Electric Clojure: Differential Dataflow for UI [video]

https://www.youtube.com/watch?v=ML8cFrWkWeg
1•farhanhubble•44m ago•0 comments

AI Foundry – Flat-Fee Unlimited LLM Inference on Blackwell GPUs in NZ

https://app.aifoundry.co.nz/auth/login?redirectTo=%2F
1•itsjpv•44m ago•0 comments

TechForges – Zero-Infra Software via Flux AI and Vibe-Mesh

https://sites.google.com/view/techforges/
1•SharavFounder•44m ago•0 comments

Human Code Reviews Are Dead

https://craftbettersoftware.com/p/human-code-reviews-are-dead
1•TheAnkurTyagi•49m ago•0 comments

OpenClaw creator burns through $1.3 mio in OpenAI API tokens in a single month

https://www.tomshardware.com/tech-industry/artificial-intelligence/openclaw-creator-burns-through...
2•m0do1•51m ago•0 comments

The Mercury logic programming system

https://github.com/Mercury-Language/mercury
1•Antibabelic•53m ago•0 comments

AI Won't Run Your Company by Itself

https://www.caimito.net/en/blog/2026/05/18/ai-wont-run-your-company-by-itself.html
5•berlianta•55m ago•0 comments

Grills and Smokers of 2026: Smart, Portable, Pellet

https://www.wired.com/story/best-grills-and-smart-grills/
1•joozio•55m ago•0 comments

Why the Spotify icon is a disco ball

https://mashable.com/article/spotify-disco-ball-icon-20-anniversary
1•doppp•56m ago•0 comments

Surprise AI bills leave AWS and Google Cloud users aghast

https://www.theregister.com/ai-ml/2026/05/18/surprise-ai-bills-leave-aws-and-google-cloud-users-a...
4•medalblue•56m ago•0 comments