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.

Show HN: See if bloated 'skills' are degrading your coding agent's performance

https://seoagent.com/skill-grader
1•aleclindz•1m ago•0 comments

What Production Incidents Taught Our Team About Authentication

https://www.howdy.com/blog/what-production-incidents-taught-us-about-authentication
1•claudioscheerjr•1m ago•0 comments

Time complexity of operations on Python's built-in types

https://docs.python.org/3.16/library/time-complexity.html
1•theanonymousone•1m ago•0 comments

Show HN: Systemg compares to other process managers

https://www.sysg.dev/blog/2026-08-21/how-systemg-compares
1•ra0x3•1m ago•0 comments

Situational Awareness: The Decade Ahead

https://situational-awareness.ai/
1•sss111•3m ago•0 comments

Show HN: Keenable – A different web search API for AI agents

https://keenable.ai/
1•matt4711•4m ago•0 comments

Show HN: Hunch – a macOS AI assistant that uses your Mac in the background

https://www.tryhunch.ca
1•prithviseran•4m ago•0 comments

Free and open source Minecraft launcher with fetures

1•sozip•5m ago•0 comments

Show HN: Rust Analyzer MCP Server Crate – std-thread bridge (no async)

https://crates.io/crates/r3bl-rust-analyzer-mcp-server
1•nazmulidris•5m ago•0 comments

Nvidia Super Acceleration for MiniMax H3 Video

https://nvlabs.github.io/Sana/Sol-Engine/H3-Super-Acceleration/
2•samspenc•6m ago•0 comments

Show HN: A hash-chained ledger for AI reasoning you can verify yourself

https://www.sdi-protocol.org
1•dj_johnsonMid•7m ago•0 comments

Beyond Good and Evil: Nietzsche and the Great War

https://www.historytoday.com/archive/feature/beyond-good-and-evil-nietzsche-and-great-war
2•samizdis•7m ago•0 comments

If you're not using SSH certificates you're doing SSH wrong (2024)

https://smallstep.com/blog/use-ssh-certificates/
1•Tomte•7m ago•0 comments

MCPs Aren't APIs, So Stop Treating Them Like One

https://shiftmag.dev/mcps-arent-apis-stop-treating-them-like-one-11420/
1•leachh•9m ago•0 comments

Muro 3.0 – Free, native live wallpapers for macOS

https://github.com/MrRockySL/Muro
1•rockyxsl•13m ago•1 comments

Meat Proxy

https://sfisms.org/meat-proxy
1•karakoram•13m ago•0 comments

Online forums, not quite gone, not quite forgotten

https://disassociated.com/online-forums-not-quite-gone-not-quite-forgotten/
1•Brajeshwar•13m ago•0 comments

Accessible Arcan Out of Sight (2024)

https://arcan-fe.com/2024/10/18/accessible-arcan-out-of-sight/
1•kogasa240p•14m ago•0 comments

Semicolon Inspector

https://semicolon.trm.sh/
1•LorenDB•14m ago•0 comments

Trees 'giving up': climate change hammers historic English gardens

https://www.yahoo.com/news/science/articles/trees-giving-climnate-change-hammers-055600335.html
1•hbcondo714•15m ago•0 comments

DB-Engines Ranking

https://db-engines.com/en/ranking
1•ronfriedhaber•15m ago•0 comments

Show HN: Skills Wiki – Connect Skills to AI

https://skillwiki.app
1•yzliual•15m ago•1 comments

Trailer

https://incoherency.co.uk/blog/stories/trailer.html
1•surprisetalk•16m ago•0 comments

Show HN: Rank21 – the AI product outbid board where earlier boosts cost less

https://outbidlol.ai/
1•14mnobody•17m ago•1 comments

RACE – terminal multiplexer built as an infinite canvas

https://race-term.com/
1•xlii•18m ago•0 comments

Switch Mac desktop background contents by script

https://infinidesk.app
1•ben_s_e•18m ago•1 comments

Sort branches by last commit date

https://ryangreenberg.com/til/git-branches-by-commit-date/
2•speckx•20m ago•0 comments

Python Data Classes Beyond the Boilerplate

https://www.kdnuggets.com/python-dataclasses-beyond-the-boilerplate
1•eigenBasis•20m ago•0 comments

I made a rock climbing tool using computer vision [video]

https://www.youtube.com/watch?v=TPMtqozf4MI
1•dr_blueberry•20m ago•1 comments

Why Are Rivers So Mathematical?

https://www.quantamagazine.org/why-are-rivers-so-mathematical-20260810/
3•karakoram•20m ago•0 comments