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.

I open-sourced a small library for drawing SVGs progressively

https://www.npmjs.com/package/@penwell/draw-on
1•Pratiksingh067•1m ago•0 comments

I run a production AI app for €60 a month. Here is the actual bill.

https://tailstory-app.com/en/blog/what-production-ai-actually-costs
1•Mohsentr•2m ago•0 comments

Show HN: WebMCP Registry of Websites That Agents Can Use

https://www.wmcp.ai/
1•jusquan•2m ago•0 comments

Show HN: Groupicorn directory of IOP group therapy programs

2•cs1996•2m ago•0 comments

Ancient DNA reveals pervasive directional selection across West Eurasia

https://www.nature.com/articles/s41586-026-10358-1
1•gmays•3m ago•0 comments

Code similarity detection using Tree-sitter

https://github.com/dsummersl/treepeat
1•91awebsi•4m ago•1 comments

ES Archive – a new memory system for AI, running natively on Mac

https://github.com/apocryphx/ES-Archive
1•ApocryphX•4m ago•0 comments

Claude Opus 5.5: Intelligence, Performance and Price Analysis

https://artificialanalysis.ai/models/claude-opus-5-5
1•theanonymousone•6m ago•0 comments

Barbara Mazzolai Wants to Build a New Field of Robotics

https://spectrum.ieee.org/sustainability-robotics-barbara-mazzolai
1•SamuraiLion•6m ago•0 comments

Siri AI Settlement Website Now Live

https://www.macrumors.com/2026/09/20/siri-ai-settlement-website-now-live/
1•JumpCrisscross•7m ago•0 comments

Xeno-Interpretability: Investigating the Alien Minds of LLMs

https://arxiv.org/abs/2609.20408
1•potent_latent•7m ago•0 comments

Aging may be a program, not a breakdown

https://www.quantamagazine.org/why-aging-may-be-a-program-not-a-breakdown-20260814/
6•elo2000•9m ago•0 comments

We Rebuilt Jev's API on an Open Model and Used It to Play Doom

https://blocks.ai/blog/jev-open-model-doom
2•stephenblum•10m ago•1 comments

How do you best protect against copycats?

1•thereisnotry•10m ago•0 comments

Tables and Strings in COBOL - Big Data like it's 1985

https://www.datagubbe.se/cobtab/
1•rbanffy•11m ago•0 comments

Show HN: graf (1000x faster graphify in Rust)

https://github.com/ctxrs/graf
1•ripped_britches•11m ago•0 comments

GameStop shares up 30% since earnings; CEO, other board members disclose buys

https://finance.yahoo.com/markets/article/gamestop-stock-jumps-as-ceo-ryan-cohen-buys-26-million-...
1•frmersdog•11m ago•0 comments

Armenia on track to become one of leading hubs for US AI infrastructure

https://armenpress.am/en/article/1261009
1•melicerte•12m ago•1 comments

Apple Developing New Fitness Tracker Aimed at Rivaling Whoop

https://www.bloomberg.com/news/articles/2026-09-22/apple-is-developing-new-fitness-tracker-aimed-...
2•elo2000•13m ago•0 comments

A framework for frontier AI and the dawning of a new age

https://institute.deepmind.com/essays/a-framework-for-frontier-ai-and-the-dawning-of-a-new-age/
2•LyalinDotCom•13m ago•0 comments

Ask HN: Did your side projects ever become something big enough to sustain you?

2•learner_yearner•14m ago•1 comments

18-year-old thought she'd take a gap year. Instead, she joined the S.F. Symphony

https://www.sfchronicle.com/entertainment/classical/article/sf-symphony-starla-breshears-22362042...
1•TMWNN•14m ago•0 comments

OpenRouter Batch API: half-price inference by bundling requests

https://openrouter.ai/blog/announcements/batch-api/
1•porridgeraisin•16m ago•0 comments

'Coding Kids' by Natasha Singer: An Education for the Future That Hasn't Worked

https://www.wsj.com/arts-culture/books/coding-kids-review-an-education-for-the-future-af7fa2a6
1•theanonymousone•16m ago•0 comments

The most difficult daily word game

https://un-scrabbled.com
1•jakespider•16m ago•0 comments

ProudSend – cold outreach drafts that cite the line they came from

https://proudsend.com
1•heypetar•17m ago•0 comments

Show HN: I gave Jev my forum database so he could find the most relevant

https://forumbacklinks.org/demo/setup
1•bigmuzzy•17m ago•0 comments

Go-System-One: Jev-Like Results in Pure Go and SIMD/PTX

https://github.com/rcarmo/go-system-one
1•rcarmo•18m ago•1 comments

Benchmarks are more broken than we could have imagined

https://www.horizonanalyticslabs.com/research/public-benchmark-dataset-audit
3•chillacy•18m ago•1 comments

AI Is Not the End of the World

https://www.everythingisbullshit.blog/p/ai-is-not-the-end-of-the-world
1•swolpers•18m ago•0 comments