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•1y 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•1y 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•1y 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.

Self-healing autonomous AI dev system

https://huggingface.co/FerrellSyntheticIntelligence/Vitalis_Devcore
1•Neuro_Nomad•18s ago•1 comments

ReAPI – one API for 200 image, video, audio and chat models

https://reapi.ai
1•xbaicai•2m ago•0 comments

VA launches MDMA-assisted mental health therapy trial

https://news.va.gov/press-room/va-launches-mdma-assisted-mental-health-therapy-trial/
1•bushwart•2m ago•1 comments

Memory decline after menopause linked to loss of estrogen production in brain

https://news.northwestern.edu/stories/2026/05/memory-decline-after-menopause-linked-to-loss-of-es...
2•gmays•3m ago•0 comments

Social Media Giants to Pay $27M in School Suit Accord

https://www.bloomberg.com/news/articles/2026-05-29/social-media-giants-to-pay-27-million-to-settl...
1•1vuio0pswjnm7•4m ago•0 comments

I Don't Want to Learn Your UI. I Want to Give It Commands

https://www.halimahomogiafo.com/give-it-commands
1•Halimah•6m ago•0 comments

SQLite Does Not Accept Agentic Code

https://simonwillison.net/2026/May/27/sqlite-agents/
1•birdculture•8m ago•0 comments

Anthropic surpasses OpenAI to become most valuable AI startup

https://qazinform.com/news/anthropic-surpasses-openai-to-become-worlds-most-valuable-ai-startup
19•Bolat14•10m ago•5 comments

Should AI steal your job?

https://www.ft.com/content/aceabeb1-1152-43d1-ad76-e1531cd37f39
1•lkellar•11m ago•0 comments

Ageusia – The Loss of Taste in the AI Internet

https://kuber.studio/blog/Reflections/Ageusia
1•kuberwastaken•12m ago•0 comments

Canaries in the coal mine? How AI could reshape work in Ireland

https://www.rte.ie/news/primetime/2026/0530/1575914-canaries-in-the-coal-mine-how-ai-could-reshap...
1•austinallegro•13m ago•0 comments

Claude Mythos solves OpenAI's landmark Erdős problem with simple proof

https://the-decoder.com/claude-mythos-reportedly-solves-openais-landmark-erdos-problem-with-a-cut...
1•gmays•15m ago•0 comments

The automation of jobs will never end

https://metastable.org/never-end/
2•pbw•15m ago•0 comments

Workflow patterns behind Claude Dynamic Workflows

https://github.com/peymanvahidi/awesome-claude-dynamic-workflows
1•peymanvahidi•17m ago•0 comments

Muxy – A lightweight terminal multiplexer for Mac

https://muxy.app/
1•eustoria•19m ago•0 comments

The Science Behind 'Project Hail Mary'

https://science.nasa.gov/the-science-behind-project-hail-mary/
1•cstever•19m ago•0 comments

Mediabunny – A complete JavaScript media toolkit for the browser

https://mediabunny.dev/
1•eustoria•19m ago•0 comments

Show HN: Jynx, a matchmaking app to find gaming teammates

https://jynx.app/
1•akiro____•21m ago•0 comments

Coordinated, Until It Isn't: Moksha's 89-vuln XAPI drop

https://cje.io/2026/05/17/coordinated-until-it-isnt/
1•pavel_lishin•22m ago•0 comments

To access your creativity, start playing

https://bigthink.com/books/to-access-your-creativity-start-playing/
1•cstever•24m ago•0 comments

Using safe-area-inset to build mobile-safe layouts

https://polypane.app/blog/using-safe-area-inset-to-build-mobile-safe-layouts/
2•eustoria•24m ago•0 comments

Researchers let AI models run a simulated society; Claude safest, Grok extinct

https://tech.yahoo.com/ai/claude/articles/researchers-let-ai-models-run-070300865.html
2•spankibalt•25m ago•0 comments

Replace GnuPG with Sequoia-PGP (& Actively Warn Against GnuPG)

https://discuss.privacyguides.net/t/replace-gnupg-with-sequoia-pgp-actively-warn-against-gnupg/38238
2•Cider9986•27m ago•0 comments

Join the Independent Science Society! (A New Kinda Science Society)

https://chillphysicsenjoyer.substack.com/p/join-the-independent-science-society
2•crescit_eundo•29m ago•0 comments

JLink JTAG Access on the Pinecil

https://danielmangum.com/posts/jlink-jtag-pinecil/
2•hasheddan•29m ago•0 comments

NixOS 26.05 Released

https://nixos.org/blog/announcements/2026/nixos-2605/
3•trulyrandom•30m ago•1 comments

Problematic TF Providers

https://newsletter.masterpoint.io/p/problematic-tf-providers
1•mooreds•30m ago•0 comments

Why the U.S. cattle herd is at a 75-year low

https://text.npr.org/nx-s1-5719511
2•mooreds•31m ago•0 comments

Airlines Can't Charge You for What You Wear

https://voyagecoat.com/
3•mooreds•31m ago•1 comments

Spatial IDE's for agentic coding workflows

2•Imbiss•32m ago•1 comments