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.

Independent researcher: AI shouldn't be judged by human standards (paper)

https://zenodo.org/records/22117566
1•KitCrowCo•16s ago•0 comments

Xanadu Was Waiting for Agents

https://zed.dev/blog/agentic-xanadu
1•nsm•38s ago•0 comments

We got to drive the Aptera solar electric car

https://electrek.co/2026/06/17/we-finally-got-to-drive-the-aptera-solar-electric-car/
1•debo_•1m ago•0 comments

Industry Standard Tools

https://industrystandard.tools/
1•greedo•2m ago•0 comments

100% local chat with a model in the browser using WebAssembly written in TinyGo

https://hybridgroup.github.io/yzma-wasm-example/
1•deadprogram•2m ago•0 comments

The point of a system is fewer decisions

https://www.antonsten.com/articles/the-building-was-never-the-hard-part/
2•meetpateltech•2m ago•0 comments

James Dyson Sold Us on a $400 Hair Dryer. Now He's Trying a $499 Toothbrush

https://www.wsj.com/cmo-today/james-dyson-sold-us-on-a-400-hair-dryer-now-hes-trying-a-499-toothb...
1•fortran77•3m ago•1 comments

What's the Scam?

https://www.schneier.com/blog/archives/2026/09/whats-the-scam.html
2•speckx•4m ago•0 comments

Working to Make Python Lazy

https://iscinumpy.dev/post/flake8-lazy/
1•js2•6m ago•0 comments

Show HN: Personal AI Use Policies

https://howiai.directory
1•emilesilvis•7m ago•0 comments

Ask HN: Anyone struggling to do data work with Claude Code or codex?

1•mukeshkg•9m ago•0 comments

The sales system for service businesses

https://zencal.io/
1•42echo•10m ago•0 comments

Is this the simplest/ most surprising sorting algorithm ever (2021)

https://arxiv.org/abs/2110.01111
1•Tomte•11m ago•0 comments

The Story of Entrepreneurship [video]

https://www.youtube.com/watch?v=xza2Hf0Tycw
1•mooreds•11m ago•0 comments

Ask HN: Do you know the non-tech version of Hacker News?

1•zerodollar•11m ago•0 comments

Hi: )

https://substack.com/profile/110893156-mukesh-kg/note/c-327508187
1•mukeshkg•12m ago•0 comments

I used Fable to rewrite 65kLoC of Go in Rust. It cost $400

https://iurii.net/en/blog/posts/software-engineering/i-used-fable-to-rewrite-65kloc-to-rust/
2•aka-rider•12m ago•1 comments

DuckLabs to Join AWS, Projects to Remain Open Source

https://duckdb.org/2026/08/26/ducklabs-to-join-aws
1•antimora•12m ago•0 comments

Ventoy: Create drag-and-drop bootable usbs

https://www.ventoy.net/en/index.html
1•fcjr•14m ago•0 comments

FTC, States Sue Amazon over Secret Ad Surcharge Scheme

https://www.ftc.gov/news-events/news/press-releases/2026/08/ftc-states-sue-amazon-over-secret-ad-...
3•stefan_•15m ago•0 comments

Show HN: MeridianOS – free website builder that turns your site into a retro OS

https://meridianos.zip
1•deastwood•15m ago•1 comments

Manim but with Julia – Preview [video]

https://www.youtube.com/watch?v=gvlq-2SRcZc
1•pbshgthm•15m ago•0 comments

Show HN: Kaden Terminal – Bloat / AI Free Terminal for Linux

https://github.com/glitcher255/Kaden-Terminal
1•Glitcher255•15m ago•0 comments

How accurate have Ed Zitron's AI skeptic predictions been?

https://danluu.com/zitron/
2•jatins•16m ago•0 comments

Show HN: Gopdfrab – Open-source PDF/A processing for Go

https://gopdfrab.voidrab.com/
1•sudostar•16m ago•0 comments

Natel

https://en.wikipedia.org/wiki/Natel
1•reconnecting•16m ago•0 comments

A/B Tests Are Limiting What Your Software Can Learn

https://adaptivesoftware.substack.com/p/your-ab-tests-are-limiting-what-your
1•rafaelc•17m ago•0 comments

How the Meta Settlement Could Change the Internet

https://www.newyorker.com/news/the-lede/how-the-meta-settlement-could-change-the-internet
2•mkmk•18m ago•1 comments

Grumble: Local Meeting Transcription and TTS

https://grumble.computer/
1•fcjr•19m ago•0 comments

John Deere's unexpected AI-era boom? Moving dirt for data centers

https://www.groundlevel-ai.com/p/john-deere-ai-data-center-boom
1•thm•19m ago•0 comments