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

The world is rejecting science and truth, here are 5 ways to fight back

https://www.theguardian.com/commentisfree/2026/apr/28/world-rejecting-science-truth-five-ways-fig...
1•JeanKage•37s ago•0 comments

Native vs. Cross Compilation: A Love Story,a War Story and a Debugging Nightmare

http://carminatialessandro.blogspot.com/2026/04/native-vs-cross-compilation-love-story.html
2•throw324du•2m ago•0 comments

Back Up and Running

https://blog.tindie.com/2026/04/back-up-and-running/
2•zimpenfish•4m ago•1 comments

Vanishing Culture: A New Book on the Loss of Our Digital Memory

https://blog.archive.org/2026/04/23/introducing-vanishing-culture-a-new-book-on-the-loss-of-our-d...
3•robtherobber•5m ago•0 comments

The Great Oxidation Event: How Cyanobacteria Changed Life

https://asm.org/articles/2022/february/the-great-oxidation-event-how-cyanobacteria-change
2•thunderbong•5m ago•0 comments

How to distribute skills to your engineers

https://newsletter.port.io/p/how-to-build-a-skills-library-for-your-engineering-team
4•krakenwake•6m ago•0 comments

Predictive pursuit emerges in high-dimensional recurrent neural networks

https://www.biorxiv.org/content/10.64898/2026.04.23.720457v1
1•paraschopra•6m ago•0 comments

Beijing Auto Show: more EV models in each of 17 halls than in the US

https://electrek.co/2026/04/26/beijing-auto-show-2026-insane-glimpse-future-auto-industry/
2•Geekette•9m ago•0 comments

Rusternetes : A ground-up reimplementation of Kubernetes in Rust

https://github.com/calfonso/rusternetes
7•mariuz•10m ago•0 comments

Our first paying user found us from China in 4 days – zero marketing

https://mfkvault.com
2•faiyaz2139•14m ago•1 comments

Ask HN: Should it be acceptable that Excel needs to update 2-3 times/month?

2•simonebrunozzi•15m ago•0 comments

Big AI Cluster Little Power the 8x Nvidia GB10 Cluster – ServeTheHome

https://www.servethehome.com/big-cluster-little-power-the-8x-nvidia-gb10-cluster-marvell-cisco-ub...
3•rbanffy•15m ago•0 comments

Stevens Online World of Blade Runner (2001)

http://www.users.globalnet.co.uk/~stvens/BLADE.htm
2•exvi•15m ago•0 comments

The players who lost big money on Peter Molyneux's failed Legacy

https://arstechnica.com/gaming/2026/04/how-legacy-became-a-costly-crypto-bust-for-players-and-a-b...
3•rbanffy•17m ago•0 comments

Curiosity Rover Finds New Organic Molecules on Mars

https://www.universetoday.com/articles/msl-curiosity-found-new-organic-chemicals-on-mars-proof-th...
7•rbanffy•18m ago•0 comments

Tooling Up Hermes Agent

https://nedkarlovich.com/writing/tooling-up-hermes-agent
3•birdwhistler•18m ago•0 comments

openclaw ggsql

https://clawhub.ai/fanzhidongyzby/openclaw-ggsql
6•fanzhidongyzby•21m ago•0 comments

Carrot Disclosure

https://dustri.org/b/carrot-disclosure.html
3•pabs3•22m ago•0 comments

From Convergence to Confidence: Push-Button Verification for RDTs

https://kcsrk.info/verification/rdts/lean/2026/04/28/from-convergence-to-confidence/
4•matt_d•26m ago•0 comments

Show HN: Agents in Whisper Memos

https://whispermemos.com/agents
8•Void_•28m ago•0 comments

Space meteor showers visualization powered by SpaceKit.js

https://www.meteorshowers.org/
8•axbyte•32m ago•0 comments

Despite everything, a small praise of GitHub

https://davidpoblador.com/blog/despite-everything-a-small-praise-of-github.html
6•nirvanis•35m ago•0 comments

Paper Age

https://marcin.cylke.com.pl/til/2026-04-28-til-paper-age/
11•janisz•36m ago•0 comments

Workers Training Meta's AI Could Be Laid Off

https://www.wired.com/story/meta-covalen-ai-workers-layoffs/
11•tijana3290•39m ago•0 comments

The Site for Prevention of Laptop Sales

https://lars.ingebrigtsen.no/2026/03/23/the-site-for-prevention-of-laptop-sales/
6•internet_points•40m ago•0 comments

The Downfall and Enshittification of Microsoft in 2026

https://caio.ca/blog/the-downfall-and-enshittification-of-microsoft.html
9•birdculture•42m ago•1 comments

Britain's Solar Revolution Is Here; We Should Be Shouting It from the Rooftops

https://bylinetimes.com/2026/04/22/britains-solar-revolution-is-here-and-we-should-be-shouting-it...
7•robtherobber•43m ago•0 comments

Show HN: C# based Kubernetes Operator to deploy SurrealDB

https://github.com/stevefan1999-personal/surrealdb-operator
6•stevefan1999•49m ago•1 comments

Wire to Replace Signal as Standard in the Bundestag

https://www.heise.de/en/news/Digital-Sovereignty-Wire-to-Replace-Signal-as-Standard-in-the-Bundes...
24•raffael_de•53m ago•14 comments

Why Codex works better than Claude Code for my production monolith

12•anophelon•54m ago•1 comments