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•8mo 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•8mo 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•8mo 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.

NYC Bans Hidden Hotel Fees Ahead of World Cup Tourist Influx

https://www.bloomberg.com/news/articles/2026-01-21/nyc-bans-hidden-hotel-fees-ahead-of-world-cup-...
1•toomuchtodo•53s ago•0 comments

Show HN: Infinate –O(k)constant-time spatial attention for unlimited LLM context

https://github.com/ch1pu/infinate
1•ch1pu•2m ago•0 comments

ChatGPT needs a persistent workspace layer

2•LostBeacon•2m ago•0 comments

Show HN: PFAS Reporting 2026 – Triage tool for the EPA's 2011–2026 lookback rule

https://pfasreporting2026.com
1•todaycompanies•3m ago•1 comments

NexPhone: Android, Linux, and Windows 11 in a single device

https://nexphone.com/
1•gessha•4m ago•0 comments

Show HN: Find what you should play next

https://gamebrain.co
1•dsky•4m ago•0 comments

The Truth About Toilet Swirl

https://www.smartereveryday.com/toiletswirl
1•ColinWright•4m ago•0 comments

Get Closer So I Can Hear the Birds

https://terratauri.com/blog/get-closer-so-i-can-hear-the-birds/
2•terramauthe•6m ago•0 comments

Show HN: Ably AI Transport - a transport layer for agentic apps

https://ably.com/docs/ai-transport
1•mchristensen•7m ago•0 comments

Face Shape Detector

https://whatismyfaceshape.net/
1•adilblati3•8m ago•1 comments

Show HN: Tandem – open-source cross-platform AI coworker (Tauri)

1•frumu•12m ago•1 comments

Show HN: TerabyteDeals – Compare storage prices by $/TB

https://terabytedeals.com
1•vektor888•12m ago•0 comments

Oldest Cave Art Discovered in Indonesia

https://www.barrons.com/news/world-s-oldest-cave-art-discovered-in-indonesia-3ddd2a48
1•wjb3•13m ago•0 comments

Typeframe PS-85 – portable inspired by Alien

https://www.typeframe.net/docs/ps-85
2•vpribish•13m ago•1 comments

Show HN: An Ishihara (colorblindness) test generator

https://connorboyle.io/ishihara/
1•connorboyle•15m ago•0 comments

What if AI is both good and not that disruptive?

https://deadneurons.substack.com/p/what-if-ai-is-both-really-good-and
1•nr378•15m ago•0 comments

Grok exposes detailed account suppression information

https://twitter.com/realstewpeters/status/2013848860771144075
3•gravisultra•16m ago•1 comments

TV Screen Type Explained [video]

https://www.youtube.com/watch?v=8x1imoz5nrs
1•debesyla•17m ago•0 comments

Yes, code review is the bottleneck, no you're not doing it right

https://cognition.ai/blog/devin-review
1•agtestdvn•17m ago•1 comments

eBay Explicitly Bans AI "Buy for Me" Agents in User Agreement Update

https://www.valueaddedresource.net/ebay-bans-ai-agents-updates-arbitration-user-agreement-feb-2026/
3•bdcravens•18m ago•0 comments

My First Product Launch

https://veloblanco.global/
1•TBaronG•19m ago•1 comments

NeurIPS accepted research papers with 100 AI-hallucinated citations

https://fortune.com/2026/01/21/neurips-ai-conferences-research-papers-hallucinations/
1•Jimmc414•19m ago•0 comments

Spain's rail network under scrutiny after second deadly crash in three days

https://www.theguardian.com/world/2026/jan/21/spain-rail-network-scrutiny-after-second-train-crash
1•geox•21m ago•0 comments

I Built a Localhost Tunneling Tool in TypeScript – Here's What Surprised Me

https://softwareengineeringstandard.com/2026/01/20/i-built-a-localhost-tunnel-in-typescript-and-h...
1•aussieguy1234•25m ago•0 comments

Stevey's Birthday Blog

https://steve-yegge.medium.com/steveys-birthday-blog-34f437139cb5
2•squirrel•26m ago•0 comments

Beam Bots – Resilient Robotics

https://beambots.dev/
3•lawik•27m ago•0 comments

High-Availability Feature Flagging at Databricks

https://www.databricks.com/blog/high-availability-feature-flagging-databricks
3•bcongdon•28m ago•0 comments

Safety, Efficiency, and Workload of Predictive Display in Simulated Teledriving

https://www.mdpi.com/1424-8220/26/1/221
1•PaulHoule•31m ago•0 comments

Comparing 15 AI video models side-by-side using identical prompts

https://lmarena.ai/?chat-modality=video
2•leanvector•32m ago•2 comments

A macOS cache cleaner for browser and dev and AI caches (Clean / DeepClean)

https://clutterfall.app
1•darekhta•33m ago•2 comments