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.

What You Gain by Building Your Own Game Engine

https://eliasfarhan.ch/gamedev/cpp/2026/08/14/srnative-01-why-a-custom-engine.html
1•kwakwa_cat•1m ago•0 comments

CAKE: Compiler-Agent Co-Design for Frontier Kernel Evolution

https://arxiv.org/abs/2608.12629
1•matt_d•2m ago•0 comments

Niteshift.dev – The full-stack cloud for coding agents

https://niteshift.dev
1•ishener•3m ago•0 comments

Memory failure predicted by attention lapsing and media multitasking

https://www.nature.com/articles/s41586-020-2870-z
1•u1hcw9nx•3m ago•0 comments

Jason Arday Found Dead

https://www.telegraph.co.uk/gift/9d2ca09b7c07688a
1•theanonymousone•3m ago•0 comments

The Mysterious Syndrome Destroying Endurance Athletes

https://www.outsideonline.com/health/training-performance/running-empty/
1•cwwc•3m ago•0 comments

Ontario Launches Data Centre Playbook

https://news.ontario.ca/en/release/1007871/ontario-launches-data-centre-playbook
1•ChrisArchitect•4m ago•0 comments

Trump administration cancels Biden-era power line construction efforts

https://thehill.com/policy/energy-environment/6028881-energy-dept-scraps-transmission-corridors/
1•gok•4m ago•0 comments

How to Get Rich in America

https://kyla.substack.com/p/how-to-get-rich-in-america
1•cwwc•5m ago•0 comments

How Claude's text watermarking works

https://www.anthropic.com/news/claude-text-watermark
1•surprisetalk•6m ago•0 comments

Agentic OT system for plant operations

https://app.valak.ai
1•mickymultani•7m ago•1 comments

Bluehouse: Ingesting a social network and getting the vibe

https://oleander.dev/bluehouse
1•phixMe•7m ago•0 comments

Tescreal

https://en.wikipedia.org/wiki/Main_Page
1•dgellow•7m ago•0 comments

Counting push-ups live with iOS: brightness, Apple pose, then an LSTM

https://www.bdywrk.app/blog/blind-at-the-bottom
1•studiobokehai•8m ago•0 comments

I know how to talk to God and Hear them, too

https://www.CosmicGovernmentsAmbassador.com/
1•Lbesecker195•8m ago•0 comments

Mama Saturn's Virtual Concert [video]

https://www.youtube.com/watch?v=i2XUrySbdUE
1•consumer451•10m ago•1 comments

High-Performance Array-Backed LRU Hash Table

https://github.com/adanil-code/LRUHashTable
2•adanil_•10m ago•0 comments

Data-eng-bench, Snowflake's data engineering benchmark for agents

https://github.com/Snowflake-Labs/data-eng-bench
1•marcociavarella•12m ago•0 comments

The Great Logistics Mosaic: Who Is Truly Constructing the US ECom Parcel Network

https://chinesellers.substack.com/p/the-great-logistics-mosaic-who-is
1•iamnothere•12m ago•0 comments

Demo for Parameter Sniffing and Memory Grant Feedback

https://marlonribunal.com/demo-for-parameter-sniffing-and-memory-grant-feedback/
1•MarlonPro•12m ago•0 comments

ActivityPub Won by Being Boring

https://o.ee/blog/activitypub-won-by-being-boring/
2•speckx•13m ago•2 comments

The Waldo Moment

https://en.wikipedia.org/wiki/The_Waldo_Moment
1•cs702•13m ago•0 comments

Ask HN: What are you building with Mojo lang?

1•maxchisto•14m ago•0 comments

Open WireGuard Endpoints

https://proxylity.com/articles/now-available-open-wireguard-endpoints-and-async-lambda.html
1•mlhpdx•16m ago•0 comments

OpenAI talent exodus raises 'huge red flag' ahead of IPO

https://www.cnbc.com/2026/08/14/open-ai-ipo-red-flag.html
3•DGAP•16m ago•0 comments

Why did I build a product no one needs?

https://metedata.substack.com/p/017-why-did-i-build-a-product-no
1•young_mete•17m ago•0 comments

How AI is changing how I build software with Simon Willison, on Talking Postgres

https://talkingpostgres.com/episodes/how-ai-is-changing-software-development-with-simon-willison
2•clairegiordano•17m ago•0 comments

Omarchy Quattro [video]

https://www.youtube.com/watch?v=F7fe9pa8OeE
2•nomilk•18m ago•0 comments

Firefox is now the last major browser that still supports uBlock Origin

https://www.pcworld.com/article/3212428/firefox-is-now-the-last-major-browser-that-still-supports...
10•DemiGuru•18m ago•2 comments

Cloudflare for Government Achieves FedRAMP Class D (High) Certified

https://blog.cloudflare.com/fedramp-class-d-certification/
2•cebert•19m ago•0 comments