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

Sticks, Stones, and Light Speed

https://alexoppenheimer.substack.com/p/sticks-stones-and-light-speed
2•crescit_eundo•1m ago•0 comments

Nvidia faces its biggest threat yet as tech giants build their own AI chips

https://www.latimes.com/business/story/2026-05-06/nvidia-faces-its-biggest-threat-yet-as-tech-gia...
2•1vuio0pswjnm7•1m ago•0 comments

Motherboard sales are now collapsing amid unprecedented shortages fueled by AI

https://www.tomshardware.com/pc-components/motherboards/motherboard-sales-collapse-by-more-than-2...
2•speckx•4m ago•0 comments

The war between fast and legitimate is here

https://www.joanwestenberg.com/the-war-between-fast-and-legitimate-is-here/
2•alcazar•5m ago•0 comments

Show HN: Kon – A Coding Agent with a System Prompt under 270 tokens

https://github.com/0xku/kon
2•krumboy•7m ago•0 comments

I Want to Live Like Costco People

https://tastecooking.com/i-want-to-live-like-costco-people/
4•speckx•8m ago•0 comments

Behind the Curtain: Intelligence Explosion

https://www.axios.com/2026/05/07/anthropic-jack-clark-ai-intelligence-explosion
2•Brajeshwar•9m ago•0 comments

Lisping at JPL Revisited (2023)

http://blog.rongarret.info/2023/01/lisping-at-jpl-revisited.html
2•tosh•11m ago•0 comments

Dream Physics

https://seths.blog/2026/05/dream-physics/
3•herbertl•12m ago•0 comments

What Are 'Teen Takeovers,' and Why Are Police Struggling to Stop Them?

https://www.nytimes.com/2026/05/07/us/teen-takeovers.html
3•mikhael•12m ago•1 comments

Favorite Chinalt (2020)

https://www.omnifoo.info/pages/Favorite%20Chinalt.html
2•surprisetalk•12m ago•0 comments

The Informal Org Chart

https://alearningaday.blog/2026/05/07/the-informal-org-chart/
3•herbertl•13m ago•0 comments

The world reveals itself to those who travel by foot

https://www.henrikkarlsson.xyz/p/travel-by-foot
4•herbertl•15m ago•1 comments

Anthropic's Boris Cherny: Why Coding Is Solved, and What Comes Next [video]

https://www.youtube.com/watch?v=SlGRN8jh2RI
3•zikani_03•16m ago•0 comments

Steam Controller: What Reviewers Are Saying

https://boilingsteam.com/the-2026-steam-controller-what-reviewers-are-saying/
3•ekianjo•17m ago•0 comments

Wankel Engine

https://en.wikipedia.org/wiki/Wankel_engine
2•tosh•18m ago•0 comments

Show HW: LiteParser – An embeddable SQLite parser

https://github.com/sqliteai/liteparser
2•marcobambini•19m ago•0 comments

(Official) Claude FM music for thinking and building [video]

https://www.youtube.com/watch?v=AUQKjgKQF7w
2•Ravi-Oli•19m ago•1 comments

Ask HN: Are we gonna back less powerful local LLMs

3•omertt27•20m ago•2 comments

Show HN: RVW – A transformer model capable of online continual learning

https://zenodo.org/records/20064618
1•jballanc•21m ago•0 comments

Psychologist Who Specializes in Founders

https://www.drjeneverchick.com/founders
1•peterchane•22m ago•0 comments

India's first space tech unicorn emerges as Skyroot gears up for orbital launch

https://techcrunch.com/2026/05/07/indias-first-space-tech-unicorn-emerges-as-skyroot-gears-up-for...
1•SilverElfin•23m ago•0 comments

Show HN: Essentials for Safari – Arc-style Essentials panel

https://essentialsforsafari.app/
2•azizuysal•23m ago•0 comments

Flight Attendant Hospitalized as Hantavirus Testing Starts in Singapore

https://www.newsweek.com/hantavirus-outbreak-latest-dutch-flight-attendant-hospitalized-two-teste...
3•ceejayoz•24m ago•0 comments

Show HN: Gosd: High-performance Stable Diffusion inference in pure Go(no CGO)

https://github.com/l8bloom/gosd
1•krakato•24m ago•0 comments

Google shuts down Project Mariner

https://www.theverge.com/tech/925559/google-project-mariner-shut-down
2•Brajeshwar•25m ago•0 comments

True-spectrum photography with structural color

https://hackaday.com/2026/05/03/true-spectrum-photography-with-structural-color/
1•Xcelerate•25m ago•0 comments

AlphaEvolve: Gemini-powered coding agent scaling impact across fields

https://deepmind.google/blog/alphaevolve-impact/
34•berlianta•25m ago•1 comments

I take antidepressants. You're welcome

https://acesounderglass.com/2025/10/08/12045/
2•surprisetalk•27m ago•0 comments

Why RLHF Will Never Solve Sycophancy

https://jinyili.substack.com/p/resident-ai-the-missing-layer-in
1•Jinyibruceli•33m ago•0 comments