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.

KTransformers – Flexible LLM Inference Framework

https://ktransformers.net/en
1•stareatgoats•23s ago•0 comments

OpenAI's Australian data centre drops water recycling plan

https://www.reuters.com/business/energy/openais-australian-data-centre-drops-water-recycling-plan...
1•adithyaharish•52s ago•0 comments

I gave Pi one tool and it ran for eight days

https://monotykamary.com/posts/i-gave-pi-one-tool/
1•kennyfrc•1m ago•0 comments

Why creators are hedging against the TikTok algorithm

https://www.officeos.co/blog/why-creators-are-hedging-against-the-tiktok-algorithm
1•Harro123•1m ago•0 comments

I'm helping DBA-less SQL Server Shops for free hoping that I can build my leads

https://consulting.marlonribunal.com/
1•MarlonPro•1m ago•0 comments

Ode to Jim Goad

https://counter-currents.com/2026/07/ode-to-jim-goad/
1•MrBuddyCasino•1m ago•0 comments

Distillation Is Not Anti-American, Weaponizing It Is

https://hardcoresoftware.learningbyshipping.com/p/241-distillation-is-not-anti-american
1•rbanffy•2m ago•0 comments

Show HN: Clipboard Saver – Browser extension to save and organize copied text

https://github.com/tejasashinde/clipboard-saver-extension
1•tejas_s•4m ago•0 comments

Find the prefect domain name with Gemeni and Agents (Antigravity)

https://rizz.dev/blog/guides/find-an-available-domain-name-with-ai
1•rizzdev•4m ago•0 comments

Besser is an open-source low-code platform to build all APIs, databases, agents

https://besser-pearl.org/
1•u1hcw9nx•5m ago•0 comments

Buzz – Where people and agents work together

https://buzz.xyz
1•blackdivine•6m ago•0 comments

World Artificial Intelligence Cooperation Organization

https://en.wikipedia.org/wiki/World_Artificial_Intelligence_Cooperation_Organization
1•iamflimflam1•7m ago•0 comments

Prefactoring: Clear the Way for Your New Feature

https://testing.googleblog.com/2026/07/prefactoring-clear-way-for-your-new.html
1•birdculture•8m ago•0 comments

Antares: Highly Efficient Open Weight AI Models for Vulnerability Localization

https://blogs.cisco.com/ai/introducing-antares-the-most-efficient-open-weight-ai-models-for-vulne...
1•shallow-mind•16m ago•0 comments

Iran strikes on CIA facilities prompt questions about possible Russian role

https://www.reuters.com/world/middle-east/iran-strikes-cia-facilities-prompt-questions-about-poss...
2•geox•18m ago•0 comments

Recent Data Graphics Pulling Their Weight

https://www.anychart.com/blog/2026/07/10/data-graphics-pull-their-weight/
1•latentframe•19m ago•0 comments

Valve give Steam Wishlist and Steam Gifts a major needed upgrade

https://www.gamingonlinux.com/2026/07/valve-give-steam-wishlist-and-steam-gifts-a-major-needed-up...
1•Erenay09•23m ago•0 comments

Graffiti (Conjecture-Generating Program)

https://en.wikipedia.org/wiki/Graffiti_(program)
1•YeGoblynQueenne•23m ago•0 comments

Show HN: Loop me in - Get looped into people's chats with AI. Help out. Get paid

https://www.loopmein.ai/
1•guico•24m ago•1 comments

Lira Engine – prove your data isn't in an LLM (AUC-ROC 1.000)

https://medium.com/@v_regis/why-self-auditing-your-ai-model-violates-eu-ai-act-article-53-22f693f...
1•roundcurtain•25m ago•0 comments

Incident Report for GitHub – Latency issues across a number of services

https://www.githubstatus.com/incidents/zq3c1jst2vkq
2•1f97•36m ago•0 comments

Show HN: OpenCode Session Tracker

https://github.com/ykocaman/opencode-session-tracker/tree/main
1•ykocaman•37m ago•1 comments

The Indie Hacker in the Age of AI: Renaissance, Reckoning, or Both?

https://thinkapedia.com/t/tk_dHo0EZsbg46G/document
3•chancedurham•38m ago•0 comments

Richard Sutton leaves Keen Technologies to Start Oak Lab

https://twitter.com/RichardSSutton/status/2076663628301058329
1•neuroticnews25•39m ago•0 comments

Does code quality still matter?

https://blog.ploeh.dk/2026/07/23/does-code-quality-still-matter/
4•vinhnx•43m ago•1 comments

Wall Street's Bots Are Cashing in on Trump's Truth Social Posts

https://www.wsj.com/finance/stocks/how-wall-streets-bots-are-cashing-in-on-trumps-truth-social-po...
1•doener•44m ago•0 comments

AI Slop: Why Philosophy Journals Should Reject AI-Written Prose

http://schwitzsplinters.blogspot.com/2026/07/ai-slop-and-evidence-about-evidence-why.html
4•Alien1Being•46m ago•0 comments

Deep Dive into SeaTunnel Engine: How FlushSignal Drives Architecture Evolution

https://meeting.tencent.com/dm/4bzAAZGmA84b
1•SeaTunnel•47m ago•0 comments

Stop Killing the Internet (European Citizens' Initiative)

https://citizens-initiative.europa.eu/initiatives/details/2026/000011_en
1•rzk•49m ago•1 comments

Show HN: OpenFDE – Can Running Native Android Apps and Android Studio on Linux

https://github.com/openfde/openfde/blob/main/README.en.md
1•aaaa5455555a•50m ago•0 comments