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.

Forking the Web

https://dillo-browser.org/lab/web-fork/
1•wrxd•2m ago•0 comments

The Rebels Who Fought Enterprise Java – Spring: The Documentary [video]

https://www.youtube.com/watch?v=0Gb1z-2SjHY
1•arbayi•7m ago•0 comments

Show HN: Anycrap – REST API for 35k absurdist AI-generated products

https://anycrap.shop/developers
2•astrokaf•8m ago•0 comments

Architecting on Cloudflare

https://architectingoncloudflare.com/
1•Lwrless•12m ago•0 comments

Show HN: Concord – Feature rich TUI for discord

https://github.com/chojs23/concord
3•jpellamo•13m ago•1 comments

The groundbreaking AI tool helping Victorian rangers protect native species

https://www.abc.net.au/news/2026-04-27/ai-helps-parks-victoria-manage-native-species-pests-after-...
1•aeonfox•15m ago•0 comments

UniPool: A Globally Shared Expert Pool for Mixture-of-Experts

https://arxiv.org/abs/2605.06665
1•danborn26•16m ago•0 comments

A History of IDEs at Google

https://laurent.le-brun.eu/blog/a-history-of-ides-at-google
1•laurentlb•21m ago•0 comments

Aids Creeps Back in Parts of Zambia, a Year After U.S. Cuts to HIV Assistance

https://www.nytimes.com/2026/04/25/health/pepfar-hiv-aids-zambia.html
2•susiecambria•21m ago•0 comments

Project Cybersyn: Chile's Radical Experiment in Cybernetic Socialism (2023)

https://thereader.mitpress.mit.edu/project-cybersyn-chiles-radical-experiment-in-cybernetic-socia...
1•pseudolus•27m ago•0 comments

The Audience Nobody Saw

https://fromthelittoral.substack.com/p/the-audience-nobody-saw
2•MrVandemar•29m ago•0 comments

Nvidia releases CUDA-Oxide 0.1 for experimental Rust-to-CUDA compiler

https://www.phoronix.com/news/NVIDIA-CUDA-Oxide-0.1
2•birdculture•31m ago•0 comments

Musk vs. Altman week 2: OpenAI fires back, and Shivon Zilis reveals that Musk tr

https://www.technologyreview.com/2026/05/08/1137008/musk-v-altman-week-2-openai-fires-back-and-sh...
1•joozio•33m ago•0 comments

GpxFix – A tool to repair recordings of outdoor activities

https://www.gpxfix.eu/
1•taccp•35m ago•0 comments

LLMs are underutilized due to sub optimal management

https://alexzhang13.github.io/blog/2026/mgh/
1•melonmars•37m ago•0 comments

Show HN: DuoSolve – Daily grammer practice game

https://duobook.co/duosolve
1•celltalk•40m ago•0 comments

Vladimir Putin is losing his grip on Russia

https://www.economist.com/by-invitation/2026/05/06/vladimir-putin-is-losing-his-grip-on-russia
9•bazzmt•40m ago•4 comments

Practice reviewing risky AI-generated engineering output

https://www.proreview.dev/
1•shaad1337•42m ago•0 comments

Your Computer Doesn't Belong to You Anymore

https://aquisthoughts.substack.com/p/your-computer-doesnt-belong-to-you
5•ethanplant•45m ago•0 comments

Show HN: Memory Vault – local-first memory, hybrid search, knowledge graph

https://github.com/MihaiBuilds/memory-vault
1•mihaibuilds•48m ago•0 comments

Show HN: Aptmatic – a TUI for managing apt across a bunch of Debian boxes

https://crates.io/crates/aptmatic
1•growse•49m ago•0 comments

Kanvly – notes and boards with AI, now on iOS

https://kanvly.com
1•trotskomain•55m ago•0 comments

Lua as a practical "soft-bedrock" language

https://portal.mozz.us/gemini/zaibatsu.circumlunar.space/~solderpunk/gemlog/lua-as-a-practical-so...
3•karl42•1h ago•2 comments

Agentwerk: A minimal Rust crate for agentic apps

https://github.com/canvascomputing/agentwerk
1•schirrmacher•1h ago•0 comments

The Chiplet Illusion: New Moore's Law or the Most Expensive Cover-Up?

https://sourceryintel.com/reports/the-chiplet-illusion
1•freakynit•1h ago•0 comments

Show HN: Transformer Math Explorer

https://simonramstedt.com/tools/transformer/
4•rmst•1h ago•1 comments

Solar on canals reduces water evaporation by 70% and algae growth by 85%

https://www.pv-magazine.com/2026/05/04/solar-on-canals-reduces-water-evaporation-by-70-and-algae-...
4•ndr42•1h ago•1 comments

Free guided journaling during the Mental Health Awareness Month

https://journal.cubitoo.com/en
2•pawelkomarnicki•1h ago•1 comments

The Cost of Downsizing Social Security

https://www.newyorker.com/news/deep-state-diaries/the-real-cost-of-downsizing-social-security
2•littlexsparkee•1h ago•1 comments

Experimental Rust-to-CUDA Compiler

https://github.com/NVlabs/cuda-oxide
1•cgravill•1h ago•1 comments