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.

Tokens Are the New Transistors

https://www.anantjain.xyz/posts/tokens-are-the-new-transistors
1•anant90•1m ago•0 comments

Show HN: Knotch – a hub-and-spoke voice agent

https://github.com/akshatvasisht/knotch
1•akshatvasisht•2m ago•0 comments

The Pope isn't AGI-pilled

https://www.theverge.com/ai-artificial-intelligence/937933/pope-ai-encyclical-tech-industry-react...
2•1vuio0pswjnm7•3m ago•0 comments

RNG: Flat Datacenter Networks at Scale

https://arxiv.org/abs/2604.15261
2•bschne•5m ago•0 comments

Rise of the Forward Deployed Engineer

https://newsletter.gtmengineering.ai/p/forward-deployed-engineering-101
2•alexjl1226•6m ago•1 comments

https://freeaiwebsiteaudit.com/ I built this wdyt?

2•snowbirdsong•6m ago•0 comments

Lix v0.6 – Embeddable version control system for AI agents

https://twitter.com/samuelstroschei/status/2061531328517111826
2•samuelstros•7m ago•0 comments

Walt Disney's MultiPlane Camera (1957) [video]

https://www.youtube.com/watch?v=YdHTlUGN1zw
3•imnot404•10m ago•0 comments

Alphabet to Raise $80B in Equity Capital for Al Spending

https://www.bloomberg.com/news/articles/2026-06-01/alphabet-to-raise-80-billion-in-equity-capital...
2•di•11m ago•0 comments

Bank Balance Is a Lie, and Fragmentation Is Why Nobody Can Prove It

https://heavenslive.com
2•bbenevolence•16m ago•0 comments

Information Theory for Complex Systems [pdf]

https://annas-archive.pk/md5/2f7824216767bc996173fcf234842cc2
2•gdss•16m ago•0 comments

The Filamentary Funnels That Form Stars

https://www.universetoday.com/articles/the-filamentary-funnels-that-form-stars
2•leephillips•16m ago•0 comments

NuCS vs. Choco: a pure-Python solver meets a JVM veteran

https://github.com/yangeorget/nucs/blob/main/articles/NuCS%20vs%20Choco/nucs-vs-choco.mdsummar
2•yan_georget•16m ago•0 comments

Updates to GitHub Copilot billing and plans

https://github.blog/changelog/2026-06-01-updates-to-github-copilot-billing-and-plans/
2•agluszak•17m ago•0 comments

De Maquinas Y Seres Vivos – Humberto Maturana, Francisco Varela

https://z-library.im/book/8WkmBWGpJj/de-maquinas-y-seres-vivos.html
2•gdss•17m ago•0 comments

Alphabet Announces $80B Equity Capital Raise to Expand AI Infra and Compute

https://abc.xyz/investor/news/news-details/2026/Alphabet-Announces-Proposed-80-Billion-Equity-Cap...
23•gregschlom•21m ago•9 comments

Going multi-cloud with an in-housed status page

https://blog.railway.com/p/multi-cloud-status-page
4•ndneighbor•22m ago•0 comments

What "Memory Compiler" Means: From Bitcells to GDS Tiling

https://thecloudlet.github.io/technical/compiler/memory-compiler/
3•sillysaurusx•25m ago•0 comments

A court just decided how much foot movement counts as 'pedaling' an e-bike

https://electrek.co/2026/05/31/a-court-just-decided-how-much-foot-movement-counts-as-pedaling-an-...
3•Bender•25m ago•0 comments

Verkada Publicly Disparages Major Competitors with Private Google VC Doc

https://ipvm.com/reports/verkada-nps-comp
5•jhonovich•25m ago•0 comments

Bill Maher becomes latest liberal to throw support behind Spencer Pratt

https://www.dailymail.com/media/article-15865069/bill-maher-spencer-pratt-club-random-la-los-ange...
2•Bender•25m ago•0 comments

FastStream 0.7: MQTT support – in-memory tests, AsyncAPI generation and more

https://github.com/ag2ai/faststream/releases/tag/0.7.0
3•Lancetnik•27m ago•0 comments

Red Hat packages backdoored through its offical NPM channel

https://arstechnica.com/security/2026/06/dozens-of-red-hat-packages-backdoored-through-its-offica...
3•jjbinx007•30m ago•0 comments

AI music is flooding streaming services, but who wants it?

https://www.theverge.com/column/921599/ai-music-is-flooding-streaming-services-but-who-wants-it
3•1vuio0pswjnm7•34m ago•0 comments

Show HN: Mqtt Broker for 10 Years

https://github.com/skittleson/mqtt_broker_esp
3•skittleson•34m ago•0 comments

Willis Lamm's traffic light collection

https://www.kbrhorse.net/signals/signals01.html
3•fanf2•34m ago•0 comments

My 15-year-old relative was killed for refusing to marry her cousin

https://www.theguardian.com/global-development/2026/jun/01/kawthar-al-husayjawi-killed-refusing-f...
30•Anon84•35m ago•6 comments

Florida Sues OpenAI over Chatbot Safety Concerns

https://www.nytimes.com/2026/06/01/technology/florida-sues-openai-chatgpt-safety.html
3•1vuio0pswjnm7•35m ago•1 comments

Open Source Initiative Helps G7 Deliver Vision on AI Openness

https://opensource.org/blog/open-source-initiative-helps-g7-deliver-vision-on-ai-openness
2•jomaris•36m ago•1 comments

Debug Project

https://debug.com/
15•Eridanus2•36m ago•1 comments