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.

Zperiod: Interactive Periodic Table with 118 elements and 3D atom models

https://zperiod.app/
1•itherseed•51s ago•0 comments

Bunk beds for economy passengers take off on Air New Zealand's new planes

https://www.cnn.com/2026/04/14/travel/air-new-zealand-bunk-beds
1•1659447091•2m ago•0 comments

Intro to Synthesis

https://signalfunctionset.com/projects/intro-to-synthesis/
1•stuart78•5m ago•0 comments

Aethon: A reference-based instantiation primitive for stateful AI agents

https://arxiv.org/abs/2604.12129
1•swanandr•5m ago•0 comments

Ask HN:Multi-microservices e2e tests solution

1•tonyxia•8m ago•0 comments

X.org Security Advisory: multiple security issues X.Org X server and Xwayland

https://lists.x.org/archives/xorg-devel/2026-April/059446.html
1•voxadam•9m ago•0 comments

The Origin of AI's 'Reasoning' Abilities

https://www.theatlantic.com/technology/2026/04/4chan-ai-dungeon-thinking-reasoning/686794/
1•a_w•10m ago•0 comments

Traffic fatalities in US increased 15% on same days big albums were released

https://www.nytimes.com/2026/04/10/well/car-crashes-streaming-friday-harvard.html
2•bookofjoe•16m ago•1 comments

Iran's nuke confession blows reasons for America's war wide open

https://www.dailymail.co.uk/sciencetech/article-15732615/iran-nuclear-bomb-confession-ali-motahar...
1•Bender•25m ago•1 comments

Show HN: Idea File for LLM Cycling Coach

https://gist.github.com/leourbina/4db27d9a0a86b9e1551bf9d4b3fd6dad
1•leourbina•26m ago•0 comments

An open source template for building cloud agents

https://github.com/vercel-labs/open-agents
1•obilgic•28m ago•0 comments

Open Agents by Vercel

https://open-agents.dev/
1•obilgic•28m ago•0 comments

Grok Imagine 2.0 – AI-Powered Image Generation

https://grokimagine2.io
2•danielmateo773•31m ago•0 comments

Voxtral TTS – High-Quality Text-to-Speech API

https://voxtral-tts.com
1•danielmateo773•32m ago•0 comments

I built a local real estate site for Ottawa with neighborhood market data

https://maisonpropertygroup.ca
1•thugdrama•36m ago•0 comments

Scandinavian Governance: A Story of Trust and Shared Power

https://polycentricleadership.com/casestudies/scandinavian-governance-a-story-of-trust-and-shared...
1•thunderbong•36m ago•0 comments

The Accursèd Alphabetical Clock

https://boat.horse/clock/index.html
3•ohjeez•47m ago•0 comments

Not Even Noise-Cancelling Headphones Can Block This Bicycle Bell

https://www.carscoops.com/2026/04/skoda-duobell-anc/
1•ohjeez•50m ago•0 comments

Ask HN: What's with the Wargames-like UX lately?

3•beatthatflight•51m ago•3 comments

Why QA and Cyber Security Matter More Than Ever [video]

https://www.youtube.com/watch?v=4K2p7eXAYTM
1•taleodor•51m ago•0 comments

Woman with three deadly diseases has 'remarkable' recovery after cell therapy

https://www.theguardian.com/science/2026/apr/09/autoimmune-diseases-cell-therapy-immune-reset
5•gmays•54m ago•0 comments

Sheaf, a minimal custom 65% keyboard

https://github.com/nxrmqlly/sheaf65
1•sadeshmukh•54m ago•0 comments

Show HN: Memwright – Self-hosted memory for multi-agent teams, no LLM in path

https://github.com/bolnet/agent-memory
1•Bolnet•54m ago•0 comments

Understanding the FFT Algorithm (2013)

https://jakevdp.github.io/blog/2013/08/28/understanding-the-fft/
1•peter_d_sherman•56m ago•0 comments

FL man arrested for running multi-state Ponzi scheme, defrauding victims in MA

https://www.boston25news.com/news/local/florida-man-arrested-running-multi-state-ponzi-scheme-def...
1•1vuio0pswjnm7•1h ago•0 comments

Ask HN: Apple force-updated me to Tahoe. Worth fighting?

2•strogonoff•1h ago•2 comments

Show HN: Keynot – Kill PowerPoint with HTML

https://github.com/shawnzam/keynot
2•shawnzam•1h ago•0 comments

Dependency cooldowns turn you into a free-rider

https://calpaterson.com/deps.html
2•pabs3•1h ago•0 comments

One size fits none: let communities build for themselves

https://werd.io/one-size-fits-none-let-communities-build-for-themselves/
1•benwerd•1h ago•0 comments

Glyphosate resistance: a driver for multidrug-resistant clinical strains?

https://www.frontiersin.org/journals/microbiology/articles/10.3389/fmicb.2026.1740431/full
1•PaulHoule•1h ago•0 comments