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.

Civilization and Its Discontents (1930)

https://gutenberg.org/cache/epub/78221/pg78221-images.html
1•petethomas•22s ago•0 comments

Busdayaxis: Matplotlib scale collapsing weekends and off-hours on datetime axis

https://github.com/saemeon/busdayaxis
1•saemeon•42s ago•0 comments

40k-line AI platform built solo with Rails, self-hosted GPU, and an agent

https://austn.net/blog/building-an-ai-native-web-platform
1•frogr•2m ago•1 comments

China is running multiple AI races

https://www.brookings.edu/articles/china-is-running-multiple-ai-races/
2•hunglee2•5m ago•0 comments

Velvet-auth – Production-ready auth plugin for Elysia and Bun

https://github.com/raloonsoc/velvet-auth
1•raloonsoc•12m ago•0 comments

C++ Algorithms Library

https://en.cppreference.com/w/cpp/algorithm.html
1•tosh•14m ago•0 comments

Ask HN: We need to learn algorithm when there are Claude Code etc.

3•JasonHEIN•16m ago•0 comments

Slope Rider

https://slopeonline.online/slope-rider
1•charelie142•20m ago•1 comments

Clawforge SaaS Starter: OpenClaw and Nvidia Starter for Local AI SaaS Workflows

https://github.com/autopilotaitech/clawforge-saas-starter
2•autopilotaitech•23m ago•0 comments

Ask HN: Is it time for "organic" coding?

2•lexi-k•31m ago•4 comments

Using AI a man developed a custom mRNA cancer vaccine for his dying dog

https://fortune.com/2026/03/15/australian-tech-entrepreneur-ai-cancer-vaccine-dog-rosie-unsw-mrna/
1•aureliusm•33m ago•0 comments

HitPaw VikPea

https://www.hitpaw.com/vikpea-video-enhancer.html
1•HitPaw•33m ago•0 comments

Show HN: I Built StatusDrop

https://statusdrop.dev
1•razvanmac•33m ago•0 comments

Folgpris.no (followprice) – A way to track any price from any store

https://folgpris.no/
2•falense•34m ago•1 comments

Mistral AI partners with Nvidia to accelerate open frontier models

https://mistral.ai/news/mistral-ai-and-nvidia-partner-to-accelerate-open-frontier-models
1•tosh•36m ago•0 comments

Clawdoc – Find out where your OpenClaw agents went wrong and get recommendations

https://github.com/ashishjaingithub/clawdoc
2•jainashish•37m ago•0 comments

Out-of-Context Reasoning in LLMs: A short primer and reading list

https://outofcontextreasoning.com/
1•Anon84•38m ago•0 comments

Orc – multi-agent orchestration framework

https://github.com/PietroPasotti/orc
1•ppasotti•40m ago•0 comments

Peter Thiel's Antichrist lectures in Rome spark questions in Italian parliament

https://www.euractiv.com/news/peter-thiels-antichrist-lectures-in-rome-spark-questions-in-italian...
4•vrganj•45m ago•0 comments

From black boxes to black holes

https://www.hypertesto.me/en/blog/2026/03/from-black-boxes-to-black-holes
1•sebtron•46m ago•0 comments

Bit Blit

https://en.wikipedia.org/wiki/Bit_blit
1•tosh•47m ago•0 comments

US health care spending is not an outlier

https://randomcriticalanalysis.com/2016/09/25/high-us-health-care-spending-is-quite-well-explaine...
1•MrBuddyCasino•47m ago•0 comments

Show HN: Create your own online community

https://kraa.io/kraa/trees
1•levmiseri•52m ago•0 comments

Encyclopedia Britannica sues OpenAI over AI training

https://www.reuters.com/legal/litigation/encyclopedia-britannica-sues-openai-over-ai-training-202...
5•1vuio0pswjnm7•56m ago•0 comments

Engine‑Lang: A New Experimental Programming Language

https://github.com/annuaicoder/Engine-Lang
1•User49•57m ago•0 comments

SymbolicAI: A Neuro-Symbolic Perspective on Large Language Models

https://extensityai.gitbook.io/symbolicai
1•sigalor•58m ago•0 comments

Show HN: Smartipedia - Wikipedia for Agents

https://smartipedia.com/
1•sksareen1•1h ago•1 comments

PWAs Without the Browser?

https://kver.ca/2026/03/strand-slipshod-vibe-coded-pwas-for-the-desktop/
1•MarcellusDrum•1h ago•0 comments

Ask HN: What signals do you look for when hiring?

4•kathir05•1h ago•2 comments

Overwhelmed as a PO? Build Systems

https://www.leadinginproduct.com/p/the-product-owner-bottleneck
1•benkan•1h ago•0 comments