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

AdminForth – Open-source admin framework with a built-in AI agent [video]

https://www.youtube.com/watch?v=4tB8uzY__uk
1•nixy71•58s ago•0 comments

An open question about how AI agent skills should be distributed

https://github.com/hymhub/skill-indexer
1•1749207188•1m ago•0 comments

Trump admin creates $1.7B fund for allies of the president

https://www.cnn.com/2026/05/18/politics/trump-irs-lawsuit-fund-for-allies
1•tdeck•1m ago•0 comments

All the Bugs They Found

https://andreapivetta.com/posts/all-the-bugs-they-found.html
1•ziggy42•3m ago•0 comments

Show HN: Barstool, a Prettier macOS Menubar

https://barstool.lotl.dev/
1•thecommieaxo•3m ago•0 comments

Show HN: ShakeToFocus – blur everything except your active window on macOS

https://beinlife.gumroad.com/l/shake-to-focus
1•BeInLife•3m ago•0 comments

The million-dollar math problem hardly anyone is trying to solve

https://www.scientificamerican.com/article/the-riemann-hypothesis-is-a-million-dollar-math-proble...
1•baruchel•4m ago•0 comments

Before Making It Configurable

https://rugu.dev/en/blog/before-making-it-configurable/
1•kugurerdem•5m ago•0 comments

Adobe Lightroom CC on Linux via Wine

https://github.com/sander110419/lightroom-cc-on-linux
1•sdoering•9m ago•0 comments

Automate shitty tasks with dog agents

https://handinger.com
3•masylum•12m ago•0 comments

The founder's playbook: Building an AI-native startup

https://claude.com/blog/the-founders-playbook
3•nsoonhui•18m ago•0 comments

An uptime monitor that knows the difference between a blip and an outage

https://monitrova.com/
1•SourceCodeES•18m ago•0 comments

OpenAI, Microsoft and Friends Build a Better, More Scalable Ethernet

https://www.nextplatform.com/connect/2026/05/12/openai-microsoft-and-friends-build-a-better-more-...
2•rbanffy•18m ago•0 comments

Ascetic Computing

https://ratfactor.com/ascetic-computing
1•ingve•18m ago•0 comments

Growing bread queues in Gaza as Israel restricts fuel, flour imports

https://www.aljazeera.com/news/2026/5/18/growing-bread-lines-gaza-israel-restricts-fuel-flour
1•hebelehubele•21m ago•0 comments

How Socialism Could Work

https://confrontingcapitalism.substack.com/p/how-socialism-could-really-work
2•avidphantasm•25m ago•2 comments

Iran invites CNN to show "a call to arms", arming and training 7-8 year olds

https://www.cnn.com/2026/05/18/world/video/iran-tehran-call-to-arms-chance-intldsk
2•spwa4•27m ago•0 comments

Rust: Project Goals Update

https://blog.rust-lang.org/2026/05/18/project-goals-2026-04/
1•f311a•28m ago•0 comments

Bito's AI Architect Boosts Claude Opus's task success rate by 35%

https://bito.ai/benchmarks/swe-bench-pro-evaluation/
1•Sushrutkm•34m ago•0 comments

All the a Trading Zone, and All the Languages Merely Pidgins

https://everythingstudies.com/2017/04/29/all-the-worlds-a-trading-zone/
2•paraschopra•35m ago•0 comments

How to Lose a Fight (skillfully) (2011)

https://expertboxing.com/how-to-lose-a-fight-skillfully
2•nephihaha•36m ago•0 comments

Hunting orphan objects: 45% off our ClickHouse storage bill and a near data-loss

https://www.tinybird.co/blog/how-we-deal-with-cloud-orphan-objects
1•gnzjgo•38m ago•0 comments

A detailed introduction to Kakoune for the aspiring power user

https://ficd.sh/blog/kakoune-is-a-text-editor/
1•birdculture•41m ago•0 comments

Collect as many lottery tickets as you can (2022)

https://adayeo.substack.com/p/collect-as-many-lottery-tickets-as
1•itzlambda•41m ago•0 comments

Open-Source Agentic QA Harness with Memory

https://github.com/vostride/agent-qa
40•pranshuchittora•43m ago•4 comments

I built a free Open Sourced, local audio stem separation

https://github.com/stemdeckapp/stemdeck
4•thclpr•45m ago•0 comments

More Tagged Union Subsets with Comptime in Zig

https://sinclairtarget.com/blog/2026/05/18/even-more-tagged-union-subsets-with-comptime/
3•xngbuilds•45m ago•0 comments

The small sample trap in A/B testing

https://hadid.dev/posts/averages-lie/
3•mustaphah•47m ago•0 comments

Secure Boot Certificate Expiry (Windows and Linux)

https://www.youtube.com/watch?v=_AwzaZmRNsI
1•nullpwr•50m ago•0 comments

The Windows DLL loader lock: how a Rust thread can hang your JVM

https://questdb.com/blog/windows-dll-loader-lock-rust-jni-deadlock/
3•bluestreak•51m ago•0 comments