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.

Pesticides may drastically shorten fish lifespans, study finds

https://www.theguardian.com/environment/2026/jan/15/pesticides-shorten-fish-lifespan-study
1•breve•7m ago•0 comments

Gnome 50 Alpha Released with the X11 Code Gutted

https://www.phoronix.com/news/GNOME-50-Alpha
2•breve•13m ago•0 comments

Hax: Verifying Security-Critical Rust Software Using Multiple Provers

https://eprint.iacr.org/2025/142
1•forks•14m ago•0 comments

Filen Hiring Senior Full-Stack Developer React and React Native and TypeScript

https://filen.io/hub/were-hiring-senior-full-stack-developer-react-react-native-typescript-m-f-d/
1•reader9274•16m ago•0 comments

The year ahead – Optimism with footnotes

https://www.gatesnotes.com/the-year-ahead-2026
1•notagoodidea•16m ago•0 comments

Show HN: An opinionated fork of micro, built for vibe coders who enjoy code

https://github.com/elleryfamilia/thicc
1•e-clinton•17m ago•0 comments

USB VSense – Design Deep Dive #3 – Thermal Resilience

https://www.crowdsupply.com/meticulous-technologies/usb-vsense/updates/design-deep-dive-3-thermal...
1•bariumbitmap•25m ago•0 comments

Show HN: Humanizer AI: Humanize AI Text in Your Own Voice – Creaibo

https://www.creaibo.net
1•Yinp•29m ago•0 comments

My Week with OpenCode

https://deadsimpletech.com/blog/week_with_opencode
2•kristianp•29m ago•1 comments

Let's Talk About What It Means to Rest for the Sake of Rest

https://electricliterature.com/lets-talk-about-what-it-means-to-rest-for-the-sake-of-rest/
1•herbertl•43m ago•0 comments

In search of our own voice

https://www.animationxpress.com/latest-news/guest-column-in-search-of-our-own-voice/
1•herbertl•43m ago•0 comments

Pokémon card thefts on the rise [video]

https://www.youtube.com/watch?v=ZEDXXascuTw
2•mgh2•44m ago•0 comments

Germany's shut down of nuclear plants a 'huge mistake', says Merz

https://brusselssignal.eu/2026/01/germanys-shut-down-of-nuclear-plants-a-huge-mistake-says-merz/
55•walterbell•44m ago•9 comments

A beautifully designed particle mouse effect

https://chromewebstore.google.com/detail/crazy-cursor-magical-part/eejfljdgkaanachdckmpmfgjhncihfmd
1•spacedogs•47m ago•0 comments

Trump wants tech companies to foot bill for new power plants due to AI

https://www.cnbc.com/2026/01/16/trump-wants-tech-companies-to-foot-the-bill-for-new-power-plants-...
3•jnord•48m ago•0 comments

How Etsy Uses LLMs to Improve Search Relevance

https://www.etsy.com/codeascraft/how-etsy-uses-llms-to-improve-search-relevance
1•zdw•54m ago•0 comments

Nvidia suppliers halt H200 output after China blocks chip

https://www.ft.com/content/02a3eb7c-684f-4e39-87b8-36e9595ef800
4•SanjayMehta•58m ago•1 comments

Ask HN: What are good tools for creating a video or interactive demo for a SaaS?

3•rishabhpoddar•1h ago•0 comments

Intuition why the derivative of $e^x$ is itself

https://math.stackexchange.com/questions/3511144/intuition-why-the-derivative-of-ex-is-itself
2•throwoutway•1h ago•0 comments

A Calif. teen trusted ChatGPT's drug advice. He died from an overdose

https://www.sfgate.com/tech/article/calif-teen-chatgpt-drug-advice-fatal-overdose-21266718.php
7•freediver•1h ago•0 comments

Gas Town is a glimpse into the future

https://johncodes.com/archive/2026/01-16-a-glimpse-into-the-future/
2•jpmcb•1h ago•0 comments

Building a Quake PC

https://fabiensanglard.net/quake_pc/index.html
3•zdw•1h ago•1 comments

China Clamps Down on High-Speed Traders, Removing Servers

https://www.bloomberg.com/news/articles/2026-01-16/china-clamps-down-on-high-speed-traders-removi...
9•petethomas•1h ago•2 comments

Astronaut Charlie Duke (2021) [video]

https://www.youtube.com/watch?v=U7jWk0u4K-E
1•ceroxylon•1h ago•1 comments

I skipped Japan's university exam to write a "computational metaphysics" exam

5•fumi2026•1h ago•1 comments

Grand Illusion

https://chrishedges.substack.com/p/grand-illusion-read-by-eunice-wong
2•chmaynard•1h ago•0 comments

Artisanal Code

https://sunnyamrat.com/posts/2026-01-17-artisanal-code/
3•sunnyam•1h ago•0 comments

Lucasfilm President Kathleen Kennedy to step down

https://www.latimes.com/entertainment-arts/business/story/2026-01-15/lucasfilm-president-kathleen...
4•iancmceachern•1h ago•1 comments

Stay-at-home sons are here – and they're not going anywhere

https://www.washingtonpost.com/style/trends/2026/01/16/stay-at-home-sons/
2•blondie9x•1h ago•2 comments

Show HN: Agent Coworking,Multi-agent networks for AI collaboration (open source)

https://openagents.org/showcase
2•snasan•1h ago•0 comments