frontpage.
newsnewestaskshowjobs

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.

In the Footsteps of Robert Moses

https://aresluna.org/in-the-footsteps-of-robert-moses/
1•throwaway270925•47s ago•0 comments

Mother of Invention

https://www.economist.com/1843/2018/02/27/mother-of-invention
1•geneticdrifts•2m ago•0 comments

Show HN: Keep batch LLM jobs from starving interactive traffic (TypeScript)

https://github.com/janbalangue/async-bulkhead-llm
1•janbalangue•2m ago•0 comments

Show HN: Xpt – minimalist C package manager

https://git.sr.ht/~juanvel400/xpt
1•juanvel400•6m ago•0 comments

Contributing to the Lean Mathlib Library – Tanner Duve

https://www.youtube.com/watch?v=GqsBVW3d_vc
1•abaradwaj•8m ago•1 comments

Ask HN: Why Connected Home Appliances?

1•ripe•9m ago•0 comments

circle rain sin

https://openprocessing.org/@u141185/2376570
1•bookofjoe•11m ago•0 comments

Beer Nuts

https://en.wikipedia.org/wiki/Beer_Nuts
1•reaperducer•11m ago•0 comments

Senior Scala/Java Developer

1•ali_rezvani•11m ago•1 comments

A simple fix for LLM tail latency

https://engineering.myhoai.com/posts/a-simple-fix-for-llm-tail-latency/
1•zhixuan•11m ago•0 comments

Cats and dogs are missing meals after a popular smart feeder went down

https://www.theverge.com/tech/979295/petlibro-outage-smart-pet-feeders
1•speckx•13m ago•0 comments

Solo founder, non-technical, $100M raised

https://solofounders.beehiiv.com/p/solo-founder-non-technical-100m-raised
1•spking•14m ago•0 comments

Chestnut

https://blog.comma.ai/chestnut/
2•simonpure•16m ago•0 comments

87-Webcam Multiview of the 2026 Eclipse

https://ostwilkens.se/blog/eclipse
1•ostwilkens•19m ago•0 comments

Show HN: VolumeM8 – Volume Control for Chrome

https://chromewebstore.google.com/detail/volumem8-volume-control/nacgakdfnhfmoipjhfbbpicfpkdajomg
1•louisblythe•20m ago•0 comments

ICE equipping agents with gloves that deliver electric shocks

https://www.bbc.com/news/articles/c20d292gdp4o
1•dabinat•20m ago•0 comments

Turning molecules into reliable electronic devices

https://news.mit.edu/2026/turning-molecules-into-reliable-electronic-devices-0803
1•signa11•21m ago•0 comments

Unless nderstanding std:counting_semaphore and std:binary_semaphore from C++20

https://www.cppstories.com/2026/semaphore/
1•signa11•23m ago•0 comments

The End of Mathematics

https://www.daniellitt.com/blog/2026/8/11/the-end-of-mathematics
1•rzk•23m ago•0 comments

Rubber Chicken AI

https://teambuildingschool.com
1•tylerhayden•25m ago•1 comments

My Ten Years in No Man's Sky

https://nmsspot.com/2026/08/09/my-ten-years-in-no-mans-sky/
2•blakespot•26m ago•1 comments

Show HN: TimeM8 – Time Tracking and Invoicing

https://chromewebstore.google.com/detail/timem8-–-time-tracking-in/mchhcaboohohmhedhmghenjnfjgk...
1•louisblythe•26m ago•0 comments

Show HN: DarkM8 – Dark Mode Chrome Extension

https://chromewebstore.google.com/detail/darkm8/ilhmpipdbgkiogeiicdjcmpgijeicpdb
1•louisblythe•28m ago•0 comments

Elasticsearch Hybrid Search Recipes – Benchmarked (2025)

https://softwaredoug.com/blog/2025/03/13/elasticsearch-hybrid-search-strategies
1•softwaredoug•30m ago•0 comments

Anyone play the Half-Life games recently?

2•Singular_Child•33m ago•0 comments

Why Wall Street and Nvidia Are Building an Exotic Money Pipeline for the AI Boom

https://www.wsj.com/tech/ai/why-wall-street-and-nvidia-are-building-an-exotic-money-pipeline-for-...
1•lesbarclays•34m ago•1 comments

I never changed careers, only systems

https://www.silvestri.cloud/blogs/i-never-changed-careers-only-systems/
1•dev_marco•36m ago•0 comments

ByteDance launches SeedRealtime: native full-duplex audio-video model

https://ainexusdaily.vercel.app
1•qrify_app•37m ago•0 comments

Initial Listing of Two Compute Futures Contracts

https://www.cmegroup.com/notices/ser/2026/08/ser-9785.html
1•JumpCrisscross•39m ago•0 comments

Cerebras Hardware Business Declines After 'Lumpy' Orders

https://www.bloomberg.com/news/articles/2026-08-12/cerebras-hardware-business-declines-in-sign-of...
1•lesbarclays•39m ago•0 comments