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.

Save the balti Can Birmingham's best dish come back from the brink?

https://www.theguardian.com/food/2026/jun/02/balti-birmingham-best-dish-back-from-brink
1•YeGoblynQueenne•1m ago•0 comments

Idea for New Social Media

1•thisIsNotRandom•3m ago•0 comments

Small businesses can leverage AI

https://www.technologyreview.com/2026/06/02/1138227/how-small-businesses-can-leverage-ai/
1•joozio•4m ago•0 comments

Elon's Trillions (text-transformer-generated)

https://pastebin.com/LH0FRzVA
1•joebig•5m ago•0 comments

The Metaverse Fever-Dream

https://pxlnv.com/blog/metaverse-fever-dream/
1•ch_sm•5m ago•0 comments

Show HN: Whirligig

https://whirligig.live
1•idiocache•6m ago•0 comments

Can LLMs Play Baba Is You?

https://meffmadd.github.io/samplesurium/posts/baba_is_agent/
1•gychoi•7m 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•Klaster_1•8m ago•0 comments

State Is No Good

https://yusufaytas.com/state-is-no-good
5•creativesober•9m ago•0 comments

Seritor – Bookmark Specific Messages Across Claude, ChatGPT, Gemini, and Grok

https://chromewebstore.google.com/detail/seritor-ai-conversation-b/dnehmimnheiflolgbdnbfeakbaealbla
1•logic_engine•9m ago•0 comments

Shotcut 26.2 Beta released bringing OpenFX plugin support

https://www.neowin.net/news/shotcut-262-beta-released-finally-bringing-openfx-plugin-support/
1•bundie•10m ago•0 comments

There's No Photos Allowed at the Studio Ghibli Amusement Park

https://petapixel.com/2026/06/02/theres-no-photos-allowed-at-the-studio-ghibli-amusement-park/
2•ilreb•12m ago•0 comments

Why do Nigerian Scammers Say They are from Nigeria? (2016) [pdf]

https://www.microsoft.com/en-us/research/wp-content/uploads/2016/02/WhyFromNigeria.pdf
1•tosh•13m ago•0 comments

Show HN: Best of AI – Handpicked and Curated Open-Source List of AI Tools

https://bestofai.io
2•dariubs•14m ago•0 comments

Proof of (Human) Thought

https://erik.wiffin.com/posts/proof-of-thought/
1•tony-vlcek•14m ago•0 comments

ClickHouse Table per Tenant in Production

https://ananthakumaran.in/2026/06/02/clickhouse-table-per-tenant-in-production.html
1•ananthakumaran•16m ago•0 comments

A Zipper Patent Sat in a Garage for 40 Years. Now It's Real.

https://www.yankodesign.com/2026/05/31/a-zipper-patent-sat-in-a-garage-for-40-years-now-its-real/
2•bookofjoe•19m ago•0 comments

Show HN: PoC to use the Chrome Prompt API on other people's machine

https://datm.nl/chat-together/
2•psyonity•20m ago•0 comments

Gabon's TLD .ga seems to be somewhat down

https://www.mon.ga/
1•elikoga•20m ago•0 comments

We think giant pterosaurs could fly (2018)

http://markwitton-com.blogspot.com/2018/05/why-we-think-giant-pterosaurs-could-fly.html
1•downbad_•27m ago•0 comments

Amazon molly fish species survived 100k years without males

https://www.bbc.com/future/article/20260601-amazon-molly-the-fish-thats-lived-for-100000-years-wi...
1•giuliomagnifico•30m ago•0 comments

Chasing Ghosts: On progress, memory, and its generations

https://msavina.substack.com/p/chasing-ghosts
1•archival_moth•32m ago•0 comments

HTML Deployer – Publish HTML from AI Chats to a Website

https://chromewebstore.google.com/detail/html-deployer-1-click-ai/gihmknkabkkghpiocgnoiejagngdegea
1•quysala1•35m ago•0 comments

1979: Will Word-Processors start a home revolution?

https://www.youtube.com/watch?v=b6URa-PTqfA
1•madradavid•36m ago•0 comments

Jellycat: a Rust CLI for Turning Jujutsu Changesets into GitHub PR Stacks

https://github.com/fanzeyi/jellycat
1•mos3abof•36m ago•1 comments

Reverse-Engineered Userspace Driver for Asus ZenVision Lid OLED on Linux"

https://github.com/tarpediem/zenvision-linux
3•berlianta•37m ago•0 comments

His Chatbot Nearly Ruined Him. To Recover, He Had to Destroy It

https://www.wsj.com/tech/personal-tech/chatgpt-addiction-chatbots-recovery-7977308e
1•Michelangelo11•37m ago•1 comments

A Review of QucsStudio

https://electroagenda.com/en/a-review-of-qucsstudio/
1•teleforce•38m ago•0 comments

Consolidated AI First Startup Guide

https://benemson.com/resources/ai-first-startup-guide
1•emson•38m ago•1 comments

Basil and fennel compound may build up dangerous DNA damage in vulnerable people

https://medicalxpress.com/news/2026-06-basil-fennel-compound-dangerous-dna.html
3•XzetaU8•38m ago•0 comments