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.

PlainMarkdown v1.6: Clean conversion on heavy sites, AI actions and Exports

https://plainmarkdown.com
1•p_bits•2m ago•1 comments

The Ask

https://randsinrepose.com/archives/the-ask/
1•digitallogic•2m ago•0 comments

Build with Modern Web Guidance

https://developer.chrome.com/docs/modern-web-guidance
1•spking•2m ago•0 comments

Show HN: NanoApps: Run custom homebrew apps on iPod nano 7th generation

https://twitter.com/freemyipod/status/2058920520708468974
1•user890104•7m ago•0 comments

Liquid processed more transactions in three months than it did in all of 2024

https://blog.liquid.net/liquid-federation-quarterly-update-q1-2026/
1•janandonly•7m ago•0 comments

xscp - Interactive scp wrapper + transfer history, fuzzy matching, TUI browsing

https://codeberg.org/LuminaNAO/xscp.git
1•javruben•8m ago•0 comments

Fast is better than slow

https://dubroy.com/blog/fast-is-better-than-slow/
1•surprisetalk•8m ago•0 comments

Grappling with AI

https://hgrsd.nl/blog/grappling-with-ai/
1•RyeCombinator•11m ago•0 comments

Greek swimmer only athlete to beat world record at controversial Enhanced Games

https://www.bbc.com/sport/articles/cx211xyd298o
1•only_in_america•12m ago•1 comments

RADV Driver Lands Support for VK_KHR_shader_fma

https://www.phoronix.com/news/RADV-VK_KHR_shader_fma
1•doener•12m ago•0 comments

Why Ctrl+V won't paste images in Claude Code on WSL, with a fix

https://rajveerbachkaniwala.com/blog/2026/05/24/on-the-difficulty-of-pasting-a-picture/
2•rajveerb•12m ago•0 comments

Open AI and YC

https://www.marginpoints.com/issues/2026-05-20-openai-and-yc-ipo-oxygen-hacky-sack
1•historian1066•12m ago•0 comments

GrillKit – self-hosted AI technical interview trainer with voice

https://github.com/GrillKit/grillkit
1•vitchenkokir•13m ago•0 comments

Claude Mission Control *real *free

https://github.com/BEKO2210/My_Dash
1•Beko2210•13m ago•1 comments

JS Crossword: a crossword where the clue = eval(answer)

https://lyra.horse/fun/jscrossword/
1•thunderbong•14m ago•0 comments

Java Card

https://en.wikipedia.org/wiki/Java_Card
2•tosh•18m ago•0 comments

LPeg – Parsing Expression Grammars for Lua

https://www.inf.puc-rio.br/~roberto/lpeg/
1•tosh•18m ago•0 comments

One-and-Done Heart Disease Prevention? Scientists Show It May Be Possible

https://www.nytimes.com/2026/05/25/health/cholesterol-ldl-gene-therapy.html
1•brandonb•19m ago•0 comments

Regular Expression Matching Can Be Simple and Fast (2007)

https://swtch.com/~rsc/regexp/regexp1.html
1•tosh•20m ago•0 comments

I tracked London housing data: We are staying in our homes for 10 years

https://area360.uk/blog/27-how-long-londoners-stay
1•clean_field•22m ago•0 comments

Washington Diary

https://worksinprogress.co/issue/a-washington-diary/
1•surprisetalk•23m ago•0 comments

The Cost of Safetyism

https://stevemagness.substack.com/p/the-cost-of-safetyism
3•obscurette•23m ago•0 comments

The Coming Coordination Calamity

https://surfingcomplexity.blog/2026/05/24/the-coming-coordination-calamity/
1•azhenley•24m ago•0 comments

Why most engineers design systems too early

https://thescalableengineer.substack.com/p/why-most-engineers-design-systems
2•lucyb0207•25m ago•0 comments

Show HN: Smriti: Shared Reasoning State for Claude Code and Codex

https://github.com/himanshudongre/smriti/
1•himanshudongre•25m ago•0 comments

Kirill Dmitriev, the Magician of the Kremlin

https://www.theatlantic.com/international/2026/05/russia-putin-kirill-dmitriev/687283/
1•chmaynard•28m ago•0 comments

The problem with Rust for back end services

https://kerkour.com/rust-backend-services-problems
3•randomint64•28m ago•0 comments

Vitalik Buterin on the future of the Ethereum Foundation

https://twitter.com/VitalikButerin/status/2058583593102844111
1•bushwart•29m ago•0 comments

On Grindslop – By Will Manidis

https://minutes.substack.com/p/on-grindslop
2•karakoram•29m ago•0 comments

SQLite-Vector now with Google TurboQuant for a 38x speedup

https://github.com/sqliteai/sqlite-vector
2•marcobambini•29m ago•0 comments