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.

Term-wm: Cross-platform floating/tiling terminal window multiplexer

https://crates.io/crates/term-wm
1•zombiej5•30s ago•0 comments

Show HN: Equivalency Kernel – mapping emotions to recursive system states

https://github.com/jamesberge-coder/equivalency-kernel
1•jamesberge•4m ago•0 comments

Global Call Threat Report (2025) [pdf]

https://work.hiya.com/hubfs/2025/Global%20Call%20Threat%20Report_2025Q2.pdf
1•dredmorbius•4m ago•0 comments

Virtual accelerated GPU device for macOS VMs

https://reims-vgpu.com/
2•vsrinivas•8m ago•1 comments

How to Build a Real-Time Indexing Pipeline with Redis and PostgreSQL 19

https://bytepith.com/article/postgresql-19-fixes-notify-redis-pipelines-scale
1•khanhnguyen8386•17m ago•0 comments

Geometric Dimensioning and Tolerancing

https://en.wikipedia.org/wiki/Geometric_dimensioning_and_tolerancing
1•electricboots•20m ago•0 comments

Oslo Report

https://en.wikipedia.org/wiki/Oslo_Report
2•petethomas•23m ago•0 comments

The coming de-enshittification boom (2025)

https://blog.zgp.org/de-enshittification/
1•ludicrousdispla•31m ago•0 comments

Fine-Tuning from First Principles: LoRA, QLoRA, Serverless Fine-Tuning

https://debnsuma.github.io/my-blog/posts/lora-serverless-fine-tuning/
1•eigenBasis•32m ago•0 comments

Hardening Google Cloud IAM with CEL Conditions and Deny Policies

https://cloud.google.com/blog/topics/developers-practitioners/generosity-under-conditions-hardeni...
1•minherz•37m ago•0 comments

What’s new in Svelte: August 2026

https://svelte.dev/blog/whats-new-in-svelte-august-2026
1•ErenayDev•38m ago•0 comments

What Liberal Arts Education Is for (2024)

https://innig.net/teaching/liberal-arts-manifesto
4•mr_wiglaf•43m ago•0 comments

SuperDuperer

https://www.shirt-pocket.com/blog/supererduperer
1•MBCook•44m ago•0 comments

A LangGraph pipeline that generates compiling Flutter apps (with a repair loop)

https://github.com/carlosge492/app-generation-microservice
1•m2magents•50m ago•0 comments

Arch Linux AUR Package Adoptions Halted

https://www.phoronix.com/news/Arch-Linux-AUR-Adoptions-Halted
2•wanderer2323•54m ago•0 comments

Mastodon new TOS: we may restore your self-deleted content from backup

https://mastodon.social/terms-of-service/2026-08-31
4•meysamazad•55m ago•0 comments

Trouble at lunchtime as Hong Kong private club spat escalates

https://www.ft.com/content/da564e49-d7bb-48c9-a5d9-b847b596b23e
2•petethomas•59m ago•3 comments

A Sovereign Coding Agent on macOS – Pi in an Apple Container; Zero NPM on Host

https://medium.com/@michael.hannecke/a-sovereign-coding-agent-on-macos-pi-in-an-apple-container-z...
1•rguiscard•59m ago•0 comments

Ace Sidecar – Efficiency Optimization for Local AI Coding

https://acefleet.dev/blog/announcing-the-ace-sidecar
1•flyingfishisme•1h ago•1 comments

Inducing language models to assert their own consciousness restores human

https://arxiv.org/abs/2607.28607
1•sbulaev•1h ago•0 comments

BMW Is Showing Commercials on Their Car's Dash Screens

https://www.theautopian.com/bmw-is-showing-commercials-on-their-cars-dash-screens-and-they-want-y...
2•Tomte•1h ago•0 comments

Last 30 Days (Skill) – AI Agent for Reddit, X, YT, HN, Web and Polymarket

https://github.com/mvanhorn/last30days-skill
2•ms7892•1h ago•0 comments

In Silicon Valley, Some Say an A.I. Bubble Would Be Just Fine

https://www.nytimes.com/2026/07/30/technology/ai-bubble-venture-capital.html
2•mitchbob•1h ago•2 comments

About 100 firefighters are convicted of arson, every year

https://www.firerescue1.com/arson-investigation/articles/expert-firefighter-arson-a-long-standing...
12•gurjeet•1h ago•10 comments

Fireside Friday, July 31, 2026 (On The Odyssey)

https://acoup.blog/2026/07/31/fireside-friday-july-31-2026-on-the-odyssey/
2•Tomte•1h ago•0 comments

Loora: Design files your agent can edit

https://loora.design/
1•handfuloflight•1h ago•0 comments

A.I. Books Sneak Their Way into Stores

https://www.nytimes.com/2026/07/28/books/ai-bookselling-amazon.html
2•lxm•1h ago•0 comments

Climate Change Is Moving Mountains

https://www.theatlantic.com/science/2026/07/climate-change-land/688129/
1•littlexsparkee•1h ago•0 comments

Ask HN: Anyone got DeepSeek-v4-flash-0731 running using antirez/ds4?

1•freakynit•1h ago•0 comments

BMW Spider-Man in-car advertising

https://consumerrights.wiki/w/BMW_Spider-Man_in-car_advertising
120•goplayoutside•1h ago•47 comments