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

Qjp – turn any JSON file into a quick TUI menu

https://github.com/plainas/qjp
1•todsacerdoti•1m ago•0 comments

DailyBoard – With a Unique Queue Logic

https://dailyboard.xyz/
1•niyoseris•1m ago•1 comments

Ask HN: How Do You Prepare for Research Internship Interviews?

1•earaujo•5m ago•0 comments

IWannaHub

https://www.iwannahub.com
1•hhdyhaha•7m ago•0 comments

Wol AI – The AI workspace that gets shit done

https://wolai.lovable.app/
1•WOL_AI•14m ago•1 comments

Show HN: Tuby.dev – Indexing Rails videos via Vision AI code analysis

https://tuby.dev/
1•alanalvestech•16m ago•0 comments

Where Can You Find

http://info.bossgoodemo.com/where-can-you-find-an-electrical-lift-1.html
1•alicebossgoo•18m ago•1 comments

Book Review: Algorithms of Armageddon: Impact of AI on Future Wars

https://ssi.armywarcollege.edu/SSI-Media/Recent-Publications/Article/4311743/book-review-algorith...
1•KnuthIsGod•26m ago•0 comments

Frog gut bacterium eliminates cancer tumors in mice with a single dose

https://newatlas.com/cancer/frog-reptile-microbes-cancer/
3•0in•30m ago•0 comments

Show HN: QR Code API – Because existing solutions are overpriced

https://www.qrcodeapi.io
1•malachi_dev•30m ago•1 comments

A Petabyte in the Palm of My Hand – Kioxia Factory Tour [video]

https://www.youtube.com/watch?v=ivLvsTnp9fI
1•latchkey•33m ago•0 comments

Negotiations over US-UK tech deal still live

https://www.bbc.com/news/articles/c79x54dprngo
1•1659447091•38m ago•0 comments

Mozilla's new CEO: Firefox will become an "AI browser"

https://www.osnews.com/story/144027/mozillas-new-ceo-firefox-will-become-an-ai-browser/
3•XiS•39m ago•2 comments

The guy inventing a $1000 human-ish robot

https://sfalexandria.com/
1•aadillpickle•44m ago•0 comments

One Bottle – everyone gets one upload before 2026

1•Peterrrrpark•47m ago•0 comments

A Note about Freeware (2003)

https://arachnoid.com/freeware/index.html
1•Tomte•51m ago•0 comments

Find your dream job at a company that cares

https://calmcompanies.club/
1•adrianthedev•52m ago•0 comments

A New Philosophy of Defense (1986)

https://www.nybooks.com/articles/1986/02/13/a-new-philosophy-of-defense/
1•Tomte•52m ago•1 comments

App Feedback

https://versionary.app
1•trubalca•54m ago•2 comments

China Chipmaker MetaX Jumps 755% After Oversubscribed IPO

https://www.bloomberg.com/news/articles/2025-12-16/china-chipmaker-metax-debuts-after-wildly-over...
1•KnuthIsGod•54m ago•0 comments

Open source - phone agent automation

https://github.com/zai-org/Open-AutoGLM
2•impact_sy•54m ago•0 comments

When Red in the US Is Green in India – The AQI Disparity Problem

https://www.airgradient.com/blog/aqi-disparity-problem/
1•ahaucnx•57m ago•0 comments

Show HN: FitSaver – A small app I built to turn fitness content into habits

https://lavender-staple-090021.framer.app/
1•chetansorted•57m ago•0 comments

America's collapsing consumption is the disenshittification opportunity

https://pluralistic.net/2025/12/16/k-shaped-recovery/#disenshittification-nations
2•xeonmc•1h ago•1 comments

Judge: Louisiana law requiring age verification on social media unconstitutional

https://www.nola.com/news/courts/louisiana-social-media-age-verification-unconstitutional/article...
1•akersten•1h ago•0 comments

GitHub – The Early Days

https://web.archive.org/web/20080514210148/http://github.com/
1•ratatougi•1h ago•0 comments

Why "negative vectors" can't delete data in FAISS – but weighted kernels can

https://github.com/nikitph/bloomin/tree/master/negative-vector-experiment
1•loaderchips•1h ago•0 comments

Create human-quality content at scale that avoids AI content penalties

https://humantext.pro
1•felayplay•1h ago•1 comments

US Government launches 'Tech Force' to hire AI talent

https://www.cnn.com/2025/12/15/tech/government-tech-force-ai
1•mgh2•1h ago•2 comments

High-Speed Traders Are Feuding over a Way to Save 3.2Bths of a Second

https://www.wsj.com/finance/high-speed-traders-are-feuding-over-a-way-to-save-3-2-billionths-of-a...
3•KnuthIsGod•1h ago•0 comments