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

Show HN: Differentiable Quantum Chemistry

https://github.com/lowdanie/hartree-fock-solver
1•lowdanie•49s ago•0 comments

Trump's 'Free Speech' Presidency Has Racked Up 200 Censorship Attempts

https://www.techdirt.com/2026/01/16/trumps-free-speech-presidency-racked-up-200-censorship-attemp...
1•HotGarbage•1m ago•0 comments

Writers and Their Day Jobs

https://lithub.com/the-work-behind-the-writing-on-writers-and-their-day-jobs/
1•keiferski•1m ago•0 comments

OpenAI will start testing ads in ChatGPT free and Go tiers

https://twitter.com/OpenAI/status/2012223373489614951
2•jcfrei•2m ago•0 comments

Show HN: HORenderer3: A C++ software renderer implementing OpenGL 3.3 pipeline

https://github.com/Hobanghann/HORenderer3
1•zghdls•2m ago•0 comments

Dutch parcel deliverers (PostNL, DHL) shamed online raises privacy concerns

https://nltimes.nl/2026/01/16/dutch-parcel-deliverers-publicly-shamed-online-raising-privacy-conc...
1•giuliomagnifico•2m ago•0 comments

Looking for cofounder(s) in next‑gen memory (theory-driven and materials)

1•feynman_quantum•3m ago•0 comments

The Cruel, Conceited Follies of Trump's Foreign Policy: 2026 Edition

https://notesonliberty.com/2026/01/15/the-cruel-conceited-follies-of-trumps-foreign-policy-2026-e...
2•brandonlc•4m ago•0 comments

I'm building the finviz of prediction markers

https://www.polyviz.io/
1•mattmerrick•5m ago•0 comments

Show HN: What if your menu bar was a keyboard-controlled command center?

https://extrabar.app/
4•pugdogdev•5m ago•0 comments

Ask HN: Feedback on an open cognitive framework (design and structure)

1•DELTA-X•6m ago•0 comments

Independent fellowships for post‑PhD next‑gen memory research

1•feynman_quantum•6m ago•0 comments

I Stopped Reading Fiction and How I Found It Again

https://leroy.works/articles/why-i-stopped-reading-fiction-and-how-i-found-it-again/
1•leroy-is-here•6m ago•0 comments

2025 was the third hottest year on record

https://www.economist.com/science-and-technology/2026/01/14/2025-was-the-third-hottest-year-on-re...
1•andsoitis•7m ago•0 comments

Bethesda's former Elder Scrolls loremaster on why he left

https://www.pcgamer.com/games/the-elder-scrolls/bethesdas-former-elder-scrolls-loremaster-on-why-...
1•cainxinth•9m ago•0 comments

Show HN: Open-source AI workflows for high converting social media videos

https://github.com/gptmarket/ai-workflows
1•tadasg•10m ago•0 comments

NATO members face tariffs increasing to 25% until Greenland purchase deal struck

https://www.cnbc.com/2026/01/17/trump-greenland-tariffs-nato.html
3•pseudolus•11m ago•1 comments

Dagwood Sandwich

https://en.wikipedia.org/wiki/Dagwood_sandwich
1•thunderbong•13m ago•0 comments

Claude Growing a Tomato Plant

https://autoncorp.com/biodome/
1•moebrowne•17m ago•0 comments

We Were Never Good Programmers

https://idiallo.com/blog/we-were-never-good-programmers
2•Brajeshwar•17m ago•0 comments

How to make a Blockbuster VHS sleeve for any movie

https://www.popsci.com/technology/how-to-make-blockbuster-sleeve/
1•Brajeshwar•18m ago•0 comments

Why the EU is ready to drop high tariffs on China-made EVs

https://restofworld.org/2026/why-the-eu-is-ready-to-drop-high-tariffs-on-china-made-evs/
1•Brajeshwar•18m ago•0 comments

Show HN: LifeCal – Life Calendar Live Wallpaper

https://play.google.com/store/apps/details?id=com.bufferlabs.lifecal&hl=en_US
1•sumit-paul•18m ago•0 comments

Show HN: Reddit GDPR Export Viewer – Built After Ban, Unban, Reban

https://github.com/guilamu/reddit-gdpr-export-viewer
3•guilamu•21m ago•1 comments

A project planner designed for developers

https://getfrostbyte.dev/
2•thamiltonsmith•23m ago•0 comments

Musk's Starlink faces high-profile security test in Iran crackdown

https://www.japantimes.co.jp/business/2026/01/17/tech/starlink-internet-test-iran-analysis/
4•everybodyknows•26m ago•0 comments

OpenAI to Test Targeted Ads in ChatGPT, Stepping Up Revenue Push

https://www.bloomberg.com/news/articles/2026-01-16/openai-to-test-targeted-ads-in-chatgpt-steppin...
2•1vuio0pswjnm7•28m ago•0 comments

How much TV is too much TV?

https://www.ft.com/content/12f57e3c-c824-4c4c-bab0-7cd9321a8be7
1•7777777phil•28m ago•0 comments

Ask HN: Purchasing a "Premium" Domain

1•devld•29m ago•1 comments

Trump to impose tariffs on European nations over Greenland

https://www.dw.com/en/trump-to-impose-tariffs-on-european-nations-over-greenland/a-75549367
7•lysace•30m ago•7 comments