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.

Creating Games on Android

https://godotengine.org/article/gabe-stable-release/
1•__natty__•3m ago•0 comments

Publishers in UK can opt out of Google AI search results

https://www.bbc.co.uk/news/articles/c775pp26yz5o
1•todd-davies•6m ago•0 comments

Spidra

https://spidra.io
1•spidra•7m ago•1 comments

Microsoft forms partnership with Unsloth AI about local LLM execution

https://xcancel.com/UnslothAI/status/2061925637892297122
1•theanonymousone•9m ago•0 comments

Bending Light: How Optics Research Is Rewriting the Rules of Computing

https://www.allaboutcircuits.com/news/bending-light-how-optics-research-rewriting-rules-of-comput...
1•giuliomagnifico•11m ago•0 comments

Vim Classic 8.3 Released

https://vim-classic.org/news/vim-8.3-released.html
1•LaSombra•12m ago•0 comments

Azure HorizonDB: Enterprise-Ready Postgres, Engineered for the AI Era

https://techcommunity.microsoft.com/blog/adforpostgresql/azure-horizondb-enterprise-ready-postgre...
1•aamederen•14m ago•0 comments

SpaceX plans IPO price at $135 per share, targeting record $75B raise

https://www.reuters.com/business/media-telecom/spacex-plans-raise-75-billion-ipo-135-per-share-so...
2•JumpCrisscross•15m ago•0 comments

Homes.plus – Chrome extension overlaying investor metrics on Zillow

https://homes.plus/
2•ecuras•16m ago•1 comments

Revo, the Programming Language

https://gills.pages.dev/revo/
2•birdculture•18m ago•0 comments

GoPro Faces Bankruptcy

https://www.digitec.ch/captcha
2•teleforce•19m ago•0 comments

The Cloud vs. Edge Debate Is Over

https://marcobambini.substack.com/p/the-cloud-vs-edge-debate-is-over
2•marcobambini•19m ago•0 comments

Life and work is not meant to be spent in isolation

https://46elks.com/blog/2026/05/29/an-amazing-time-for-programmers
2•jlundberg•19m ago•0 comments

Block-Level CRDT: The Missing Piece for Collaborative AI Agent Memory

https://marcobambini.substack.com/p/block-level-lww-the-missing-piece
1•marcobambini•20m ago•0 comments

Casey Muratori's 'Wading Through AI' [video]

https://www.youtube.com/watch?v=bjO-s4rNPlY&list=PLEMXAbCVnmY6U_pA-7GKuP9xiv9utLaP4
3•xyzal•25m ago•0 comments

Microsoft CEO: We're moving from OS and apps to agents instead

https://9to5mac.com/2026/06/02/microsoft-ceo-were-moving-from-os-and-apps-to-agents-instead/
4•aragilar•27m ago•0 comments

Show HN: Who built this website? Check any domain

https://whosbuilt.com
2•hboon•27m ago•0 comments

StackPulse – One Command Kubernetes Observability Platform

https://github.com/shivamshashank/StackPulse
2•shashank-shivam•31m ago•1 comments

$10k bounty to break Pydantic's Python interpreter / sandbox

https://hackmonty.com/
2•weiliddat•32m ago•0 comments

MAI-Thinking-1: Building a Hill-Climbing Machine [pdf]

https://microsoft.ai/wp-content/uploads/2026/06/main_20260602_2.pdf
1•smaddrellmander•34m ago•0 comments

LLM_InSights

https://github.com/yuvhaim-gif/LLM_InSight
1•yuvalhaim•34m ago•1 comments

Apple M1 Chip Deep-Dive [video]

https://www.youtube.com/watch?v=mHEWMiHgyU8
1•mariuz•38m ago•0 comments

IdeaVibe – Anonymous idea voting, no signup required

https://ideavibe.netlify.app
1•fiker_sh•42m ago•0 comments

AeroSpace: An i3-like tiling window manager for macOS

https://github.com/nikitabobko/AeroSpace
1•thunderbong•42m ago•0 comments

Ensolabs/codimg: Transform your code blocks to SVG

https://github.com/ensolabs/codimg
1•cekrem•43m ago•0 comments

AI Engineers aren't safe from being replaced by AI

https://dmanco.dev/2025/08/17/fear-not-even-ai-engineers-will-be-replaced-by-ai.html
2•Doch88•52m ago•1 comments

Show HN: GymCoach – Self-hosted workout tracker where you bring your own LLM

https://github.com/Julien-Au/gymcoach
1•Julien-Au•53m ago•0 comments

Microrobots deliver stem cells for nerve regeneration

https://ethz.ch/en/news-and-events/eth-news/news/2026/06/microrobots-repair-spinal-cord.html
1•milmar55•56m ago•0 comments

Open Source alternative to Substack and Buttondown

https://github.com/scmmishra/picoletter
1•shivam-dev•56m ago•0 comments

Ask HN: What are good AI UIs now?

1•ramstar3000•57m ago•2 comments