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.

We built a free AI local newspaper for towns that lost theirs

https://news.minir.ai/explore?town=chesterton
1•ToukoTok•2m ago•2 comments

The HArc Stack – A Web Stack Built on Raku

https://harcstack.org
1•TheWiggles•5m ago•0 comments

Show HN: Apc-CLI – sync AI memory across Claude Code, Cursor, Copilot

https://github.com/FZ2000/apc-cli
1•FZ2000•7m ago•0 comments

Ask HN: Building on-device call screening–no cloud, just local ML. Realistic?"

1•dorjedev•8m ago•0 comments

"Warn about PyPy being unmaintained"

https://github.com/astral-sh/uv/pull/17643
2•networked•9m ago•0 comments

New Strides Made on Deceptively Simple 'Lonely Runner' Problem

https://www.quantamagazine.org/new-strides-made-on-deceptively-simple-lonely-runner-problem-20260...
1•tzury•11m ago•0 comments

Don't bet that The Pentagon – or Anthropic – is acting in the public interest

https://www.theguardian.com/commentisfree/2026/mar/03/anthropic-openai-pentagon-ethics
1•gnabgib•11m ago•0 comments

Peter Pan (1928)

https://www.gutenberg.org/cache/epub/78131/pg78131-images.html
1•petethomas•11m ago•0 comments

Local News

https://news.minir.ai/
1•MRviber•12m ago•1 comments

OpenClaw Partners with VirusTotal for Skill Security

https://openclaw.ai/blog/virustotal-partnership
1•Wjh555777•14m ago•0 comments

Chinese Open Source: A Definitive History

https://interconnect.substack.com/p/chinese-open-source-a-definitive
1•mountainview•15m ago•0 comments

The Hive Mind

https://jacquesmattheij.com/the-hive-mind/
1•BatFastard•16m ago•1 comments

Voice Agents Latency

https://substack.com/home/post/p-189696660
2•agentropy•19m ago•0 comments

Roblox Is Minting Teen Millionaires

https://www.bloomberg.com/news/articles/2026-03-06/roblox-s-teen-millionaires-are-disrupting-the-...
3•petethomas•24m ago•0 comments

Secure Snake Home (SSH)

https://snake.eieio.games
1•fratellobigio•25m ago•1 comments

How AI Is Turbocharging the War in Iran

https://www.wsj.com/tech/ai/how-ai-is-turbocharging-the-war-in-iran-aca59002
1•JumpCrisscross•30m ago•0 comments

Anthropic and The Pentagon

https://www.schneier.com/blog/archives/2026/03/anthropic-and-the-pentagon.htmll
1•benwen•31m ago•2 comments

British Columbia makes daylight saving time permanent

https://text.npr.org/nx-s1-5741076
2•bvanderveen•31m ago•1 comments

Will the U.S. confirm that aliens exist before 2027?

https://kalshi.com/markets/kxaliens/aliens/KXALIENS-27
1•pinkmuffinere•32m ago•0 comments

Metrics Make Us Miserable

https://www.derekthompson.org/p/how-metrics-make-us-miserable
1•gmays•34m ago•0 comments

Best Music Distributors in 2026

1•anonyxbiz•40m ago•0 comments

Pushing and Pulling: Three Reactivity Algorithms

https://jonathan-frere.com/posts/reactivity-algorithms/
1•frogulis•47m ago•0 comments

Science Fiction Is Dying. Long Live Post Sci-Fi?

https://www.typebarmagazine.com/science-fiction-is-dying-long-live-post-sci-fi/
10•KittenInABox•47m ago•0 comments

On the road to C4 rice: Advances and perspectives

https://onlinelibrary.wiley.com/doi/full/10.1111/tpj.14562
1•lawrenceyan•51m ago•0 comments

The Intelligence Monopoly Is Over

https://www.spatialintelligence.ai/p/the-intelligence-monopoly-is-over
1•beauzero•52m ago•1 comments

Why can't you just ask AI to find you a trading edge? You can now

https://github.com/augiemazza/varrd
1•varrd1•52m ago•2 comments

Cloud VM benchmarks 2026: performance/price for 44 VM types over 7 providers

https://devblog.ecuadors.net/cloud-vm-benchmarks-2026-performance-price-1i1m.html
25•dkechag•1h ago•2 comments

Human brain cells on a chip learned to play Doom in a week

https://www.newscientist.com/article/2517389-human-brain-cells-on-a-chip-learned-to-play-doom-in-...
3•doener•1h ago•0 comments

The San Francisco lunch that launched Silicon Valley 70 years ago

https://davidlaws.medium.com/the-san-francisco-lunch-that-launched-silicon-valley-70-years-ago-3b...
2•DavidLawsCHM•1h ago•0 comments

NexusMods (game modding application for Linux) code repo is now read-only

https://github.com/Nexus-Mods/NexusMods.App
1•wingmanjd•1h ago•1 comments