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.

Show HN: Generate safe WebMCP tools from your OpenAPI spec or validation schemas

https://github.com/SouravInsights/webmcp-stack
1•SouravInsights•1m ago•0 comments

Show HN: Main Street Toolbox – Calculators for small business owners

https://mainstreettoolbox.com/
1•devinjin•3m ago•0 comments

LLM-as-a-Verifier

https://github.com/llm-as-a-verifier/llm-as-a-verifier
1•simonpure•8m ago•0 comments

Show HN: 4D Chess

https://4dchess.org/
1•nadermx•8m ago•0 comments

The Shape and Feel of the Post-AI Data Stack

https://www.iandmacomber.com/blog/post-ai-data-stack/
1•nlpnerd•12m ago•1 comments

B.C. man lost for 5 nights in mountains near Squamish shares survival story

https://www.cbc.ca/lite/story/9.7333975
1•colinprince•14m ago•0 comments

Trump signs order to remove endangered species protection for grey wolves

https://www.bbc.com/news/articles/c62k677d4lzo
1•Alien1Being•14m ago•0 comments

Show HN: Deterministic Synthetic Fingerprints from a Seed

https://github.com/1etu/actual-fingerprints
1•1etu•15m ago•0 comments

Surfing the Purple Ocean

https://architectureintel.com/surfing-the-purple-ocean-97907b95f3bb?postPublishedType=initial
1•younss•16m ago•0 comments

Seaside, Florida

https://en.wikipedia.org/wiki/Seaside,_Florida
1•hyperific•24m ago•0 comments

BLLM / ALLM – before and after LLM

1•orian•31m ago•0 comments

VMware Intros Private AI Cloud

https://www.nextplatform.com/cloud/2026/09/01/vmware-intros-private-ai-cloud-ai-factory-as-worklo...
1•jonbaer•38m ago•1 comments

I was offered money to scare you of AI [video]

https://www.youtube.com/watch?v=lPdmYMHrWKg
1•nomilk•40m ago•1 comments

Show HN: Laterbot – an anti-todo app for all the stuff you save for later

https://laterbot.app/
1•blitzritz•42m ago•2 comments

More of the universe appears to be more playable than we expected

https://contraptions.venkateshrao.com/p/the-curiously-playable-universe
1•thedreammachine•43m ago•0 comments

The Psychological Warfare of the Modern Sterile Interior

https://lussoarchive.substack.com/p/the-psychological-warfare-of-the
2•evo_9•46m ago•0 comments

Show HN: SetDPI – Change image DPI without re-encoding (runs in browser)

https://setdpi.com/
1•caseymarlin•47m ago•0 comments

The importance of stupidity in scientific research

https://fermatslibrary.com/s/the-importance-of-stupidity-in-scientific-research
1•wslh•47m ago•0 comments

Show HN: Say Toucan – my feedback board 3x'd its price, so I built my own

https://saytoucan.com
1•artoonie•52m ago•0 comments

AI-Assisted Design of a Post-Quantum Cryptographic Accelerator

https://arxiv.org/abs/2609.04058
1•sbulaev•54m ago•0 comments

AI Stock Research Assistant · Streamlit

https://ai-stock-research-kiaan.streamlit.app
2•KiaanKothari•54m ago•0 comments

Routed: Local, zero-token hybrid router for AI agent skills (<20ms)

https://github.com/bshea-1/Routed
2•bshea1•56m ago•0 comments

Boston, 1960s Video

https://www.youtube.com/watch?v=v23f7rQ4E6Q
1•sheri•57m ago•0 comments

Make infectious disease data boring again

https://www.statnews.com/2026/09/04/pennsylvania-measles-deaths-data-cdc-director-rfk-jr/
2•EA-3167•1h ago•0 comments

The Innovative HP Computer Behind a Hedge Fund Pioneer

https://thechipletter.substack.com/p/the-innovative-hp-computer-behind
1•chmaynard•1h ago•0 comments

What Linux does when you malloc()?

https://medium.com/@ankitadhiman650/what-linux-actually-does-when-you-malloc-162caa460052
1•syumei•1h ago•0 comments

Nvidia Personal AI Router (Pair)

https://github.com/NVIDIA/Personal-AI-Router
2•ystad•1h ago•0 comments

Spike – alerts when a competitor's YouTube video hits N views in T hours

https://spike.yt
1•astarostenkov•1h ago•0 comments

Accelerating LLM Inference with Lossless Speculative Decoding Algorithms (2025)

https://arxiv.org/abs/2502.05202
1•wslh•1h ago•0 comments

Title: A local signed notebook for AI agents, with CLI and MCP interfaces

https://github.com/davidnichols-ops/aafp-commons
1•davidnicholsops•1h ago•1 comments