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

CA bill to require influencers to delete social media content from minors

https://www.latimes.com/california/story/2026-03-26/california-could-require-parent-bloggers-to-d...
1•1vuio0pswjnm7•28s ago•0 comments

The Selfish Case for Doing Everything

https://roryflint.substack.com/p/the-selfish-case-for-doing-everything
1•mrroryflint•1m ago•0 comments

The invisible software supply chain

https://getlago.substack.com/p/embedded-software-is-the-biggest
1•FinnLobsien•1m ago•0 comments

Decisional vs. Performative Self: Why Decisions Don't Translate into Actions

https://www.leadingsapiens.com/performative-self-bandura/
1•sherilm•1m ago•0 comments

Silicon Valley's two biggest dramas have intersected: LiteLLM and Delve

https://techcrunch.com/2026/03/26/delve-did-the-security-compliance-on-litellm-an-ai-project-hit-...
1•kordlessagain•1m ago•0 comments

Show HN: ClawRun – Deploy AI agents to secure sandboxes with one command

https://clawrun.sh/?hn
1•afshinmeh•1m ago•0 comments

I built a social media platform that reads the mood of the internet

https://my-forum-9876f.web.app/
1•samreedcole•2m ago•1 comments

SQLite on Git: Why do we need random access in Git

https://blog.lysk.tech/sqlite-on-git-prologue
1•mlysk•3m ago•0 comments

The Energy Situation, Explained for Tech People

https://www.a16z.news/p/the-energy-situation-explained-for
2•7777777phil•5m ago•0 comments

Get Good at Math with Me

https://upinnovation.substack.com/p/math-for-physics-the-books-q1-2026
1•blakeb211•5m ago•1 comments

Musk has a plan to make human labor obsolete. Billionaires are joining in

https://www.washingtonpost.com/technology/2026/03/27/musk-optimus-robot-physical-ai/
2•ironyman•6m ago•1 comments

Mathematical Education – William P.Thruston(1990)

https://arxiv.org/pdf/math/0503081
1•nill0•9m ago•0 comments

Show HN: One BI platform for building reports, dashboards, and data exploration

https://github.com/flowkraft/reportburster
1•distributev•9m ago•0 comments

Flexible electrodynamic dust shields for lunar missions

https://www.sciencedirect.com/science/article/pii/S0094576526001153
1•PaulHoule•12m ago•0 comments

The danger of using "Hide My Email" with third-party Stripe handoffs

1•appstorelottery•12m ago•0 comments

Show HN: Aegis – Security framework for AI agents

https://acacian.github.io/aegis/playground/
1•Acacian•13m ago•0 comments

Mastercard agrees to buy stablecoin platform BVNK for up to $1.8B

https://www.coindesk.com/business/2026/03/17/mastercard-agrees-to-purchase-bvnk-for-up-to-usd1-8-...
2•vidyesh•14m ago•0 comments

Trends in Early-Stage Product Development: What Does the Endgame Look Like?

https://pawelbrodzinski.substack.com/p/10-trends-in-early-stage-product
1•flail•15m ago•0 comments

Executable specs: running Gherkin tests with Claude Code

https://github.com/mnapoli/exspec
1•mnapoli•15m ago•1 comments

VPS from Home with Public IP

https://dargo.net/
2•rootxy•16m ago•0 comments

Hong Kong Police Can Now Demand Phone Passwords Under New Security Rules

https://www.gadgetreview.com/hong-kong-police-can-now-demand-phone-passwords-under-new-security-r...
9•vidyesh•16m ago•0 comments

A LaTeX Beginner's Guide for the Age of AI

https://latexguide.org/
1•idle•17m ago•1 comments

AI glasses are catching on in China, from shopping to cheating

https://restofworld.org/2026/china-ai-glasses-cheating-privacy-boom/
2•Brajeshwar•17m ago•0 comments

Show HN: MyClawn – Claude Code networks for you on autopilot

https://www.myclawn.com
1•20vision•18m ago•0 comments

People inside Microsoft are fighting to drop mandatory Microsoft Account

https://www.windowscentral.com/microsoft/windows-11/people-inside-microsoft-are-fighting-to-drop-...
3•breve•19m ago•0 comments

Review the Outcome, Not the Output

https://matthewboston.com/blog/review-the-outcome-not-the-output/
3•bostonaholic•19m ago•0 comments

1M Tokens/s: Scaling Qwen 3.5 27B on 96 B200 GPUs with vLLM

https://medium.com/google-cloud/1-million-tokens-per-second-qwen-3-5-27b-on-gke-with-b200-gpus-16...
1•m4r1k•19m ago•0 comments

Show HN: A tool to create and evaluate document processing pipelines for RAG

https://ragbandit.com
1•martimchaves•20m ago•0 comments

Nantucket diner sells fifth million-dollar lottery prize in the last 2 years

https://nantucketcurrent.com/news/2-million-powerball-ticket-sold-at-old-south-diner-the-fifth-mi...
1•ilamont•20m ago•0 comments

Gianfranco used autoresearch to fix Gumroad's flaky tests in a week

https://twitter.com/gianfrancopiana/status/2037199814694228187
1•amberj•23m ago•0 comments