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•11mo 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•11mo 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•11mo 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.

Recursive Self-Improvement

https://www.hyperdimensional.co/p/on-recursive-self-improvement-part
1•andsoitis•33s ago•0 comments

Creating Baby Geniuses to Thwart the AI Threat?

https://www.motherjones.com/politics/2026/04/gene-editing-optimization-thiel-altman-armstrong-and...
1•speckx•1m ago•0 comments

Show HN: Allplix – 60 file tools that run in the browser

https://www.allplix.com/en
1•shadoxise•2m ago•0 comments

Show HN: DecisionBox – Autonomous AI agent runs data discovery on your warehouse

https://github.com/decisionbox-io/decisionbox-platform
2•seltug•4m ago•0 comments

Ask HN: Are LLMs Just Philosophical Zombies?

1•slipknotfan•4m ago•1 comments

Regression Testing – An Introductory Guide

https://keploy.io/blog/community/regression-testing-an-introductory-guide
1•sophielane•4m ago•0 comments

The Quiet Standardization of AI Agent Skills

https://www.agensi.io/learn/the-quiet-standardization-of-ai-agent-skills
1•Samuellrose•5m ago•0 comments

Forge: CLI for Multiple Git Forges

https://nesbitt.io/2026/03/13/forge.html
1•8organicbits•5m ago•0 comments

Gecko: A fast GLR parser with automatic syntax error recovery

https://vnmakarov.github.io/parsing/compilers/c/open-source/2026/04/22/gecko-glr.html
1•ibobev•5m ago•0 comments

The Billionaire Math Geek Who Turned AI into a Money-Printing Machine

https://www.wsj.com/finance/alex-gerko-xtx-markets-ai-d155626a
1•pondsider•5m ago•0 comments

RGC-Basic v2.0: Mod Tracker Music and Modern Games Capabilities

https://retrogamecoders.com/announcing-rgc-basic-v2/
2•ibobev•5m ago•0 comments

We Removed the Immune System

https://gothburz.substack.com/p/we-removed-the-immune-system
1•gmays•6m ago•1 comments

GameHub – Play Windows Games on Mac

https://www.gamemac.com/en/
1•norman784•7m ago•0 comments

The Atari 1200XL

https://www.goto10retro.com/p/inside-the-atari-1200xl
2•ibobev•7m ago•0 comments

Anthropic: Long-running Claude for scientific computing

https://www.anthropic.com/research/long-running-Claude
1•theorchid•9m ago•0 comments

Why Keynes Was Wrong

https://thecritic.co.uk/why-keynes-was-wrong/
1•RickJWagner•9m ago•0 comments

Ask HN: What's your favorite Emacs package?

2•blenderob•11m ago•0 comments

Can a geometric manifold solve AI hallucinations better than probability?

1•enitylabsindia•12m ago•0 comments

Markdown (2004)

http://www.aaronsw.com/weblog/001189
1•lr0•13m ago•0 comments

The Factor Behind Your Home Insurance Cost: Your Credit History

https://www.nytimes.com/interactive/2026/03/09/climate/home-insurance-credit-scores.html
1•therobots927•17m ago•1 comments

Show HN: Kadō, an open source habit tracker app for iOS

https://github.com/scastiel/kado
2•scastiel•18m ago•0 comments

Show HN: An elegant HN client with built-in translation

https://haiker.app/en
1•djyde•18m ago•1 comments

Tim Cook: Great for Apple Investors Not Great for America. Gift Article

https://www.nytimes.com/2026/04/23/opinion/apple-tim-cook-outsourcing-china.html
3•oldnetguy•18m ago•0 comments

Thinky Games

https://thinkygames.com/
1•agnishom•18m ago•0 comments

Permission Slip – Self-hostable approval layer for destructive OpenClaw actions

https://github.com/supersuit-tech/permission-slip
1•chiedo•18m ago•1 comments

Millions of Americans may now also be considered Canadian under new law

https://apnews.com/article/canadian-citizenship-americans-new-law-5b8f7da8ce6cfea759b85a3577150407
2•geox•22m ago•1 comments

Keycloak in Production: On-Prem, IaaS, PaaS, or SaaS

https://www.cloud-iam.com/post/keycloak-in-production/
1•Cloud-IAM•29m ago•0 comments

The Download: introducing the Nature issue

https://www.technologyreview.com/2026/04/23/1136346/the-download-introducing-nature-issue/
1•joozio•29m ago•0 comments

Why drawing eyes on food packaging could stop seagulls stealing your chips

https://theconversation.com/why-drawing-eyes-on-food-packaging-could-stop-seagulls-stealing-your-...
1•PaulHoule•30m ago•0 comments

Lawsuit: Nintendo is getting tariff refunds–customers should get them instead

https://arstechnica.com/tech-policy/2026/04/lawsuit-nintendo-is-getting-tariff-refunds-its-custom...
6•LorenDB•31m ago•0 comments