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.

Show HN: CubeLV – AI that designs your automation before building it

https://app.cubelv.com
1•qqrun•1m ago•0 comments

UK's Rudest Street Names

https://digitaleditions.telegraph.co.uk/data/2565/reader/reader.html?#!preferred/0/package/2565/p...
2•librasteve•11m ago•0 comments

When AI Acts, Who Remembers What Happened?(cogextai.com)

1•cogext•13m ago•0 comments

The Year of Internal Tools

https://www.geocod.io/code-and-coordinates/2026-09-23-the-year-of-internal-tools
2•thecodemonkey•17m ago•0 comments

Nuros – AI study tools from notes, PDFs, videos, and links

https://nuros.app/
3•AntoineValton•18m ago•0 comments

Show HN: Air-gapped file encryption as self-decrypting HTML page

https://cms-sfx-demo.apeleg.com/
2•emurlin•18m ago•0 comments

Flatpark: A more inclusive Flatpak app store for Linux, alternative to Flathub)

https://flatpark.org/apps/
3•grigio•22m ago•0 comments

Meta Launches $1,299 VR Headset That Look Like Glasses

https://www.bloomberg.com/news/articles/2026-09-23/meta-launches-1-299-vr-headset-that-look-like-...
4•tosh•23m ago•2 comments

Italian parliament backs Meloni's plan to restart nuclear power

https://www.reuters.com/world/italian-parliament-backs-melonis-plan-restart-nuclear-power-2026-09...
2•mpweiher•24m ago•1 comments

Wealth Taxes Could Kill Privately-Owned Companies

https://www.palladiummag.com/2026/09/22/wealth-taxes-could-kill-privately-owned-companies/
3•pr337h4m•28m ago•1 comments

Google Private AI Compute with server-side memory

https://deepmind.google/blog/advancing-private-ai-compute-with-secure-server-side-memory/
2•cagz•28m ago•0 comments

Meta VR Glasses Announced, 100 grams, OLED, $1300

https://www.uploadvr.com/meta-vr-glasses-officially-announced-connect-2026/
3•cubefox•31m ago•0 comments

Six Ways to Integrate Jev

https://vercel.com/i/jev-integrations
2•flashbrew•32m ago•0 comments

GPT-6 Sol vs. Luna

https://vercel.com/i/gpt-6-sol-vs-luna
2•flashbrew•32m ago•0 comments

Ex-cop turned CEO sold U.S. agencies forensics software built in Russia

https://www.justice.gov/usao-cdca/pr/tech-ceo-russian-national-arrested-complaint-alleging-they-h...
3•Scrounger•32m ago•1 comments

Bitflix – MCP Apps Example Application for Video

https://github.com/bitmovin/bitflix-mcp-apps-example
2•tosh•33m ago•0 comments

New Meta VR Glasses

https://www.meta.com/fr/en/vr-glasses/
1•redox_•34m ago•0 comments

IT mistake erases 11 years of viewing history for hospitals' maternity records

https://arstechnica.com/information-technology/2026/09/it-mistake-erases-11-years-of-viewing-hist...
3•joozio•38m ago•1 comments

Initial DIY Cleanroom Experimentation

https://www.jefftk.com/p/initial-diy-cleanroom-experimentation
2•luu•38m ago•0 comments

Show HN: A modern favicon generator designed for clean UI and quality icon set

https://favicon.kumardeepak.com
1•kumardeepakcom•38m ago•0 comments

Show HN: Carosello. A faster image/video viewer for Linux in Rust and gtk4

https://github.com/grigio/carosello
2•grigio•40m ago•0 comments

How tech workers are feeling in 2026: a workforce splitting in two

https://www.lennysnewsletter.com/p/how-tech-workers-are-feeling-in-2026
2•fagnerbrack•40m ago•0 comments

Rat King

https://en.wikipedia.org/wiki/Rat_king
2•Eridanus2•40m ago•0 comments

Super Resolution and Frame Generation on Snapdragon Mobile Platforms

https://www.qualcomm.com/developer/blog/2026/09/introducing-adreno-neural-fusion-sdk-for-snapdrag...
1•Re-Tails•45m ago•1 comments

Contrastive Language Model (CLM): An Ultra-Fast System One Model

https://twitter.com/jackyk02/status/2102905335925424285
1•piyushsthr•46m ago•0 comments

It took 20 yrs to start regulating social media – will AI controls come sooner?

https://www.rnz.co.nz/news/business/1557652/it-took-20-years-to-start-regulating-social-media-wil...
4•billybuckwheat•46m ago•2 comments

TabVault – Open-source tab manager with atomic crash recovery

https://github.com/jarvissing/tabvault
1•jarvissing•49m ago•1 comments

Tales from the Software Factory: The Cron and the VM

https://blog.exe.dev/cron-vs-vm
1•vinhnx•56m ago•0 comments

I built a language model out of cellular automata

https://ssenthilnathan3.github.io/blog/cellular-automata-language-model/
2•nathaah3•58m ago•1 comments

Update: Source Download – Inspect, grab assets, screenshot and record video/GIF

https://chromewebstore.google.com/detail/source-download/nockdgincmpfojabnhbofkddgcmnodpd
1•2rundev•59m ago•0 comments