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.

Hard-Won Lessons from a Year of Using AI

https://spin.atomicobject.com/lessons-year-ai/
1•henrik_w•54s ago•0 comments

Benchmarking SlateDB vs. RocksDB

https://nixiesearch.substack.com/p/benchmarking-slatedb-vs-rocksdb
1•shutty•1m ago•0 comments

Charities decry UK plan to use AI to assess age of young asylum seekers

https://www.theguardian.com/uk-news/2026/jun/01/charities-decry-uk-plan-to-use-ai-to-assess-age-o...
2•beardyw•1m ago•0 comments

Is Python Becoming Pinyin?

https://lernerpython.com/2026/05/19/is-python-becoming-pinyin/
1•reuven•3m ago•0 comments

Accounting's Time Machine: How Modern Finance Steals the Future

https://www.taxresearch.org.uk/Blog/2026/06/01/debate-ammunition-the-accounting-time-machine/
2•berlianta•4m ago•0 comments

Livia – Executive Assistant

https://github.com/giuerr/livia
1•giuerrp•8m ago•0 comments

FindMyPipe – Query Apple Find My from Linux for AI Agents

https://github.com/corryl/FindMyPipe
1•AgataVire•9m ago•0 comments

Show HN: Agent skill for creating product launch videos with Remotion

https://github.com/memex-lab/product-launch-video-skill
1•sparkleMing•10m ago•0 comments

RecruitMyself – AI job search copilot for resumes and applications

https://recruitmyself.com
1•RahulAa•12m ago•0 comments

AI coding agents and the erosion of system understanding

https://www.thesignalist.io/s/the-frictionless-trap/
1•kodesko•12m ago•0 comments

The 'Resting' Generation and South Korea's Youth Recession

https://thediplomat.com/2026/02/the-resting-generation-and-south-koreas-youth-recession/
1•palerdot•13m ago•1 comments

A 1B humanizer that matches human writing on an AI detector

https://mlx-optiq.com/blog/humanizer-stacked-lora
1•codelion•16m ago•0 comments

AMD Computex 2026: 10 Years of AM4, AM5 Support Through 2029

https://www.amd.com/en/blogs/2026/amd-computex-2026-10-years-of-am4-am5-support-through.html
1•ankitg12•18m ago•0 comments

Docker Networking Explained

https://sanyamserver.online/posts/docker-networking/
1•theanonymousone•19m ago•0 comments

Textbooks in Tokenland

https://systemsapproach.org/2026/06/01/textbooks-in-tokenland/
1•ankitg12•20m ago•0 comments

Key Chemistry Question Answered, No Quantum Computer Required

https://www.quantamagazine.org/key-chemistry-question-answered-no-quantum-computer-required-20260...
1•isaacfrond•21m ago•0 comments

Gifts For Retrocomputing Fans – remix yesterday's tech with a modern spin

https://spectrum.ieee.org/retrocomputing-gift-guide
1•asdefghyk•27m ago•1 comments

Miscellany № 49: introducing the quasiquote – Shady Characters

https://shadycharacters.co.uk/2014/06/miscellany-49-quasiquote/
1•rcarmo•30m ago•0 comments

Amazon Thinks the Future of Data Centers Is a Technical Problem It Just Solved

https://www.wired.com/story/amazon-thinks-the-future-of-data-centers-depends-on-a-technical-probl...
3•gozzoo•31m ago•0 comments

Why does ASTC use ISE when almost nothing else does?

https://fgiesen.wordpress.com/2026/05/29/why-does-astc-use-ise-when-almost-nothing-else-does/
1•croottree•31m ago•0 comments

A brief history of the UUID (2017)

https://www.twilio.com/en-us/blog/developers/a-brief-history-of-the-uuid
1•downbad_•32m ago•0 comments

Flying High Unpressurized (2016)

https://planeandpilotmag.com/flying-high-unpressurized/
1•downbad_•32m ago•0 comments

Five Years of Trying to Add Recursion to Lychee

https://endler.dev/2026/lychee-recursion/
1•croottree•32m ago•0 comments

How British comfort food won over the French

https://www.ft.com/content/74710f54-358d-49c9-81b1-2b49f63ed383
2•helsinkiandrew•34m ago•0 comments

Blorp Language

https://blorp-lang.org/
1•croottree•36m ago•0 comments

Decache – you might have the internet's lost media in your PC's cache folders

https://sindexmon.github.io/decache/
2•notRobot•37m ago•0 comments

Criminal Activities and Migration

https://www.michelecoscia.com/?p=2545
1•mikk14•38m ago•0 comments

A free, open-source library of DESIGN.md files for AI-generated UIs

https://design-md-web.pages.dev/
1•albemala•38m ago•1 comments

Dune's Butlerian Jihad and the Future of AI

https://technology.inquirer.net/147084/dunes-butlerian-jihad-and-the-future-of-ai
9•SVI•40m ago•1 comments

MiniMax M3

https://xcancel.com/MiniMax_AI/status/2061266317815296322
2•44za12•41m ago•0 comments