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

AI's Feeding Frenzy Killed My Sites (2023)

https://thessdguy.com/ais-feeding-frenzy-killed-my-sites/
1•speckx•40s ago•0 comments

You suck at dating apps because you're straight

https://viverricious.substack.com/p/you-suck-at-dating-apps-because-youre
1•eatitraw•1m ago•0 comments

The Work Worth Doing

https://nik.art/the-work-worth-doing/
1•herbertl•2m ago•0 comments

Techno-Optimism Archive

https://technooptimism.org/
1•pmm•2m ago•1 comments

We still don't have a more precise value for "Big G"

https://arstechnica.com/science/2026/04/we-still-dont-have-a-more-precise-value-for-big-g/
1•rbanffy•3m ago•0 comments

Output Isn't Design

https://linear.app/now/output-isn-t-design
1•julian_digital•5m ago•0 comments

We Are Not Language Machines

https://www.shishyko.com/essays/we-are-not-language-machines.html
1•shishy•5m ago•0 comments

Show HN: Groundtruth – Stop hook that blocks Claude Code from saying done

https://github.com/vnmoorthy/groundtruth
1•vnmoorthy•5m ago•0 comments

FTWA – Free the Web Apps

https://ftwa.mathix.dev/why/
1•mathix•6m ago•0 comments

Creation of Canada's first sovereign wealth fund

https://www.cbc.ca/lite/story/9.7178238
1•colinprince•7m ago•0 comments

AI gives back more equality than it takes away

3•Bashkiroff•10m ago•1 comments

The 2 Hour [Marathon] barrier has been smashed

https://stevemagness.substack.com/p/the-2-hour-barrier-has-been-smashed
2•lordleft•11m ago•0 comments

A Tiny Polish Startup Became the Multi-Billion-Dollar Voice of AI

https://www.forbes.com/sites/iainmartin/2025/12/01/how-a-tiny-polish-startup-became-the-multi-bil...
3•Anon84•12m ago•0 comments

Running DOS and Unix on an 8-bit Commodore (2024) [video]

https://archive.fosdem.org/2024/schedule/event/fosdem-2024-2334-running-dos-unix-on-an-8-bit-comm...
4•michalpleban•14m ago•0 comments

17th-century astrolabe heads to London sale with £2.5M estimate

https://www.turkiyetoday.com/culture/17th-century-jaipur-astrolabe-heads-to-london-sale-with-25m-...
3•geox•15m ago•0 comments

AI apathy is a tragedy, falling behind is a crime

https://loworbitsecurity.com/radar/radar-18/
2•7777777phil•16m ago•0 comments

Maybe you should learn something

https://www.marginalia.nu/log/a_135_learn/
2•ingve•18m ago•0 comments

Supabase Feature Preview: RLS Tester

https://github.com/orgs/supabase/discussions/45233
2•siegers•21m ago•0 comments

On the LOC Controversy

https://github.com/garrytan/gstack/blob/main/docs/ON_THE_LOC_CONTROVERSY.md
2•tie-in•21m ago•0 comments

China orders Meta to unwind $2B buy of AI startup Manus

https://www.reuters.com/world/asia-pacific/china-blocks-foreign-acquisition-ai-startup-manus-2026...
2•kilroy123•22m ago•1 comments

Make Europe the Electro Union

https://www.norrsken.org/goodnews/make-europe-the-electro-union
2•imartin2k•22m ago•0 comments

Why QVC's Operational Excellence Became Its Undoing

https://gadallon.substack.com/p/the-inflexible-stack-why-qvcs-operational
3•JumpCrisscross•26m ago•0 comments

The Iran war is hitting the AI supply chain where it hurts

https://thenextweb.com/news/iran-war-pcb-supply-chain-sabic
3•skeledrew•26m ago•0 comments

Securing AI Agents and MCP at the network layer with Tailscale and Highflame

https://www.businesswire.com/news/home/20260403439638/en/Highflame-and-Tailscale-Partner-to-Secur...
3•grumblemumble•28m ago•1 comments

LogMeIn – Instant Login Links, No Password Sharing

https://logmein.today
2•imkost•30m ago•1 comments

Corporate America Is Minting Money–and Not Just in Tech and Finance

https://www.wsj.com/business/earnings/corporate-america-is-minting-moneyand-not-just-in-tech-and-...
2•JumpCrisscross•33m ago•0 comments

Ketamine, psychedelics, GHB: is the US falling out of love with cocaine?

https://www.theguardian.com/us-news/2026/apr/21/cocaine-ketamine-psychedelics-ghb
2•JumpCrisscross•34m ago•0 comments

Chatting with myself about AI

https://2earth.github.io/website/20260426.html
2•2earth•35m ago•1 comments

Ask HN: Is anyone building/selling VT220-type terminals?

3•vrypan•36m ago•4 comments

Taiwan's stock market surpasses the UK's, thanks to AI

https://www.tomshardware.com/tech-industry/taiwan-stock-market-overtakes-the-uk
2•giuliomagnifico•36m ago•0 comments