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

Did a prize-winning novelist steal a woman's life story?

https://www.theguardian.com/books/2026/feb/17/did-a-prize-winning-novelist-steal-a-woman-life-sto...
1•brandonlc•1m ago•0 comments

Gay men have long been rumored to run Silicon Valley - WIRED investigates

https://www.wired.com/story/inside-the-gay-tech-mafia/
2•helloplanets•4m ago•0 comments

How AI Is Rewiring Winemaking and Wine Collecting - Shirley M. Mueller M.D.

https://www.psychologytoday.com/us/blog/the-mind-of-a-collector/202602/how-ai-is-rewiring-winemak...
1•omkar-foss•8m ago•1 comments

GPU Rack Power Density, 2015–2025

https://syaala.com/blog/gpu-rack-density-timeline-2026
1•jaynamburi•11m ago•1 comments

Lessons from Building Claude Code: Prompt Caching Is Everything

https://twitter.com/trq212/status/2024574133011673516
1•tosh•12m ago•0 comments

The Whispering Earring by Scott Alexander

https://croissanthology.com/earring?
1•nvader•14m ago•0 comments

Show HN: CLI tool to analyze your Vector Embeddings!

https://github.com/dakshjain-1616/Embedding-Evaluator
1•gauravvij137•15m ago•1 comments

A Buried History – Wooden Water Mains [video]

https://www.youtube.com/watch?v=1fntV0c-fYE
1•thunderbong•18m ago•0 comments

Large banner featuring Trump's face is displayed on Justice Department HQ

https://apnews.com/article/donald-trump-banner-justice-department-pam-bondi-13f3d901c9bd6d179e206...
1•stopbulying•18m ago•2 comments

Paul Ford: 'The A.I. Disruption Has Arrived, and It Sure Is Fun'

https://www.nytimes.com/2026/02/18/opinion/ai-software.html
2•polyglotfacto•19m ago•1 comments

Gemini 3.1 Pro be like

https://twitter.com/Google/status/2024598510499426433
1•chvid•19m ago•0 comments

N64 Game-Engine and Editor using libdragon and tiny3d

https://github.com/HailToDodongo/pyrite64
1•jdboyd•22m ago•0 comments

Show HN: ESP32-S3 probe – a UART "flight recorder" with auto frame decoder

https://github.com/choihimchan/linkscope-bpu-uart-analyzer
1•octablock•23m ago•0 comments

Show HN: PhotoMeh – Repair cost estimates from photos – in under 60 seconds

https://photomeh.com
1•arturss•36m ago•1 comments

On Artificial Intelligence by Naval

https://www.youtube.com/watch?v=sXCKgEl9hBo
1•mottiden•38m ago•1 comments

The Electric Tipping Point – Electric Aircraft

https://cascadiannick.substack.com/p/the-electric-tipping-point-electric
1•xbmcuser•44m ago•1 comments

Show HN: Wc-template – create custom elements using template and link

https://github.com/mfcc64/wc-template
1•mfcc64•45m ago•0 comments

Show HN: Fostrom, an IoT Cloud Platform built for developers

https://fostrom.io/
3•arjunbajaj•46m ago•0 comments

Show HN: Photobomb – cards against humanity but for your camera roll

https://www.photobomb.online/
1•alhwyn•48m ago•0 comments

Real Life Superpowers

https://jarbus.net/blog/real-life-superpowers/
1•jarbus•49m ago•0 comments

Proof Assistants in the Age of AI

https://leodemoura.github.io/blog/2026/02/18/proof-assistants-in-the-age-of-ai.html
1•matt_d•51m ago•0 comments

Show HN: Syne – AI agent that remembers everything, built on PostgreSQL

2•riyogarta•55m ago•0 comments

Edgequake-litellm – Rust-backed drop-in replacement for LiteLLM (v0.1)

https://github.com/raphaelmansuy/edgequake-llm
2•raphaelmansuy•57m ago•1 comments

Show HN: An e-ink air traffic monitor built with Cloudflare Workers

https://github.com/Jay9185/Trmnl-Aviation-monitor
3•jerr12939•1h ago•0 comments

Show HN: Intentify – Point at your UI, describe a change, get a PR

https://intentify.dev/
2•slad•1h ago•0 comments

A Guide to Which AI to Use in the Agentic Era

https://www.oneusefulthing.org/p/a-guide-to-which-ai-to-use-in-the
2•vinhnx•1h ago•0 comments

Show HN: Sinkai – Let AI agents hire humans for real-world tasks

https://sinkai.tokyo/for-agents
2•tetubrah•1h ago•0 comments

Who moved my cheese? [pdf]

https://ia800305.us.archive.org/17/items/WhoMovedMyCheese_201604/Who%20Moved%20My%20Cheese.pdf
1•johnmw•1h ago•0 comments

Deceived – On Happiness

https://www.newsweek.com/macphersons-week-53-deceived-151417
1•milkcircle•1h ago•0 comments

Designing and Creating a Game Engine for Use in the Classroom [pdf]

https://airccse.org/journal/ijcgde/papers/1113cgdeij01.pdf
2•andsoitis•1h ago•0 comments