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.

Net worth and income percentiles by age, city and industry, from Fed SCF data

https://www.keepingup.com/benchmarks
1•jpmulhausen•11s ago•0 comments

Windows Native Trading App

https://abelhelton.gumroad.com/l/vantex
1•Played•1m ago•0 comments

I Was a Meat Proxy for a Day

https://mayberay.bearblog.dev/i-was-a-meat-proxy-for-a-day/
1•mugamuga•1m ago•0 comments

Americans Trust in Federal Government Sinks to New Depths

https://news.gallup.com/poll/715361/trust-federal-government-sinks-new-depths.aspx
2•giuliomagnifico•1m ago•0 comments

Popcorn: A security workbench of disposable microVMs

https://github.com/KunalSin9h/Popcorn
1•kunalsin9h•1m ago•0 comments

ASI and Liberty

https://legacymode.substack.com/p/asi-and-liberty
1•r_a_d•1m ago•0 comments

What we learned from building 1M+ cloud agents

https://unreallabs.ai/blog/what-we-learned-from-building-cloud-agents/
7•VeriuMaxon•2m ago•0 comments

How the 1904 Marathon Became One of the Weirdest Olympic Events of All Time

https://www.smithsonianmag.com/history/how-the-1904-marathon-became-one-of-the-weirdest-olympic-e...
1•Tomte•2m ago•0 comments

I designed a hyper-realistic moonbase for my music video and here are the specs

https://moongazing.cc/
1•qiqing•3m ago•0 comments

Isocast, OBS Rewrite in Rust

https://twitter.com/ryanvogel/status/2110047677866017087
1•ryanvogel•4m ago•0 comments

The Palantir Mafia is changing modern warfare

https://proton.me/blog/palantir-modern-warfare
2•runtimewire•4m ago•0 comments

Quirkiest Web Remixes This Week

https://gogoserengeti.vercel.app/
1•DrDizzle•4m ago•0 comments

Unix Style, or cat -v Considered Harmful

https://harmful.cat-v.org/cat-v/
1•theanonymousone•8m ago•0 comments

Click this PostHog survey link and your account is hacked

https://www.strix.ai/blog/posthog-survey-account-takeover
2•bearsyankees•8m ago•0 comments

Show HN: Mac Markdown reader for your AI agents

1•kirillzubovsky•8m ago•0 comments

The problem is noise, not N: why increasing the sample size isn't all that

https://statmodeling.stat.columbia.edu/2026/10/10/the-problem-is-noise-not-n-why-increasing-the-s...
1•theanonymousone•10m ago•0 comments

Gemini 4 Argon is now available for developers

https://blog.google/innovation-and-ai/technology/developers-tools/build-with-gemini-4-argon/
1•swolpers•10m ago•1 comments

Agentic Large Language Models

https://arxiv.org/abs/2610.13455
1•Anon84•12m ago•0 comments

A Chrome extension that catches duplicate tabs

https://chromewebstore.google.com/detail/duplicate-tab-guard/ekcnfjaambmnbgjcgbdfdajmhifbcelm
2•arttaboi•13m ago•0 comments

The Rising Counterculture of Silicon Valley Smokers

https://www.businessinsider.com/smoking-cigarettes-silicon-valley-counterculture-2026-9
2•bohaska•13m ago•0 comments

How to be more ambitious: A tutorial for humans with models

https://felixrieseberg.com/how-to-be-more-ambitious-a-tutorial-for-humans-with-models/
2•meetpateltech•14m ago•0 comments

Failing to give Meta Muse a soul

https://github.com/bkawa-io/muse-souls
2•bkawa-bot•14m ago•1 comments

Did Ente Locker copy my code without attribution?

https://fairscan.org/blog/did-ente-locker-copy-my-code-without-attribution/
4•ibobev•14m ago•0 comments

The Agent Autonomy Trifecta, or How to Build Agents That Need Less Babysitting

https://prberg.com/posts/2026/agent-autonomy-trifecta/
2•PaulRBerg•14m ago•1 comments

Frugal Computing Revisited

https://limited.systems/articles/frugal-computing-revisited/
2•speckx•14m ago•0 comments

Show HN: Lowlight – Dim your MacBook keyboard backlight below the macOS minimum

https://github.com/Isaac-Harper/lowlight
2•isaacharper•15m ago•0 comments

Programmers maxing out a $12 VPS

https://www.youtube.com/watch?v=QGWKCaglSBI
2•dofi4ka•15m ago•0 comments

Flappy Letters – Wordle Meets Flappy Bird

https://flappyletters.com/
2•alex-slax•16m ago•0 comments

Brax Wink available for pre-order

https://braxtech.net/products/wink
2•monooso•16m ago•0 comments

Chinese cheap LLMs could trigger trillion-dollar AI infrastructure reset

https://www.theregister.com/paas-and-iaas/2026/10/13/cheap-chinese-and-open-source-llms-could-tri...
4•runtimewire•17m ago•0 comments