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.

I built a free Wordle × GeoGuessr for the stock market

https://benginn.github.io/stockguesser/
1•obepozdemir•32s ago•0 comments

Show HN: Andurel Web Framework Releases v1.0.0

https://github.com/mbvlabs/andurel
1•mbvisti•5m ago•0 comments

ChatGPT Work

https://openai.com/chatgpt-work/
1•modinfo•7m ago•0 comments

Gene-edited babies are now closer. The ethical debate is far from settled

https://www.cnn.com/2026/07/08/science/human-embryo-gene-editing
1•giuliomagnifico•9m ago•0 comments

New dinosaur species as long as cricket pitch discovered in Thailand

https://www.bbc.com/news/articles/crely7g8xepo
1•zdkaster•9m ago•0 comments

Element 26.07.3, a Matrix client, adds content scanning infrastructure

https://github.com/element-hq/element-x-ios/releases/tag/release%2F26.07.3
1•nickslaughter02•9m ago•1 comments

Skill nostalgia - The radical reasons why you dream of making things by hand

https://aeon.co/essays/the-radical-reasons-why-you-dream-of-making-things-by-hand
1•pseudolus•10m ago•0 comments

Ofcom Wants American Police to Collect Its Speech Fine

https://reclaimthenet.org/ofcom-wants-american-police-to-collect-its-speech-fine
1•delichon•13m ago•0 comments

Show HN: Axletic – a local-first workout tracker for iPhone

https://www.axletic.app
1•bjar2•14m ago•0 comments

Larry Page: "I think we should look into acquiring (2005) [YouTube]

https://twitter.com/TechEmails/status/1433837480449613839
2•downbad_•14m ago•0 comments

China recovered its first reusable rocket and showed a new way to do it

https://arstechnica.com/space/2026/07/china-recovered-its-first-reusable-rocket-and-showed-a-new-...
3•pseudolus•15m ago•0 comments

fastcore v2

https://github.com/AnswerDotAI/fastcore
1•tosh•16m ago•0 comments

Show HN: Find introduction path between you and someone you want to reach

https://reloadium.com/reloadium-contacts/
1•julienreszka•18m ago•1 comments

AI Surveillance and Social Progress

https://www.schneier.com/blog/archives/2026/07/ai-surveillance-and-social-progress.html
2•ahamez•20m ago•0 comments

Jelly Trim ReviEwS (2026): We Tried It My Honest Review

https://gamma.app/embed/Jelly-Trim-ReviEwS-2026-We-Tried-It-My-Honest-Review-53eqnkqqiyo7hbs
1•nahqsakr•20m ago•0 comments

An Ex‑Apple Designer Built an EV with No Doors and a Top Speed of 40 MPH

https://www.inc.com/connor-jewiss/an-ex-apple-designer-built-an-ev-with-no-doors-and-a-top-speed-...
2•connorjewiss•24m ago•2 comments

Trident – macOS menu-bar utility that remaps trackpad gestures

https://github.com/cyanyux/trident
2•cyanyux•25m ago•0 comments

Show HN: Python SDK for signing digital content with revocable signatures

https://github.com/lyfeninja/lyfeninja_blkseal_python_sdk
1•lyfeninja•29m ago•0 comments

Karpathy LLM Wiki (Obsidian Plugin)

https://llmwiki.greenerai.top/
1•rahimnathwani•33m ago•0 comments

OptiAir Portable Cooler ReviEwS (July 2026): We Tried It My Honest Review

https://gamma.app/embed/OptiAir-Portable-Cooler-ReviEwS-July-2026-We-Tried-It-My-Honest-R-llbyvuc...
2•gaxyjaik•33m ago•0 comments

World-War-Ⅱ-era telephone line still in use in Upper Tanana Valley Alaska (2021)

https://www.sketchesofalaska.com/2021/03/world-war-ii-era-telephone-line-still.html
2•Lammy•33m ago•1 comments

Who cleans up after the vibe-coding party?

https://www.ft.com/content/cec8df9e-b43b-4cd1-8feb-c07e804e8d33
2•msephton•35m ago•1 comments

Page Weight Matters

https://nh3.dev/blog/05-bloat
2•birdculture•35m ago•1 comments

Soofi: European sovereign LLM trained in 2 months

https://huggingface.co/spaces/Soofi-Project/Pretraining-Tech-Report
5•hibijibies•37m ago•2 comments

Show HN: Directed Contexts – repo-owned instruction modules for coding agents

https://github.com/TGPSKI/directed-contexts
1•tgpski•37m ago•0 comments

pgrust passes 100% of the Postgres regression tests

https://malisper.me/pgrust-passes-100-of-postgresqls-regression-tests/
16•tosh•38m ago•7 comments

Erexafil ReviEwS (July 2026): We Tried It My Honest Review

https://gamma.app/embed/Erexafil-ReviEwS-July-2026-We-Tried-It-My-Honest-Review-qdrcohhldd0lfot
1•gaxyjamq•42m ago•0 comments

What's in the Housing Bill That Just Became Law

https://www.nytimes.com/2026/07/11/business/economy/housing-bill-affordability.html
2•JumpCrisscross•44m ago•0 comments

Claude Code weekly limits will be lower from Jul 13th

https://old.reddit.com/r/ClaudeAI/comments/1tc9oa0/claude_code_weekly_limits_are_increasing_50_now/
2•freely0085•45m ago•4 comments

As better chatbots get harder to build, AI turns to simulated worlds

https://www.science.org/content/article/better-chatbots-get-harder-build-ai-turns-simulated-worlds
2•pseudolus•49m ago•0 comments