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.

PocketJS: UI runtime for every kind of computer

https://pocketjs.dev/
3•tomcam•11m ago•1 comments

Transitous – Community-run public transport routing service

https://transitous.org
1•rickcarlino•12m ago•0 comments

Learn about Meshtastic and Austin Mesh

https://www.austinmesh.org/about/
1•simonpure•16m ago•0 comments

Cursor launches Origin code hosting platform as GitHub outage exposes opening

https://venturebeat.com/infrastructure/cursor-launches-origin-code-hosting-platform-as-github-out...
2•gmays•19m ago•0 comments

Minutes to 33 Seconds

https://luca.lowndes.net/blog/bun-tests-10-minutes-to-33-seconds
1•lucalow•22m ago•0 comments

Sitegeist – The ultimate design extraction toolkit

https://chromewebstore.google.com/detail/sitegeist/npgjkgkkjcbbafihmojgodekkfgnjgdc
1•BillyMangino•22m ago•0 comments

Gram Editor Release 3.3.0

https://gram-editor.com/posts/release-3.3.0/
1•signa11•32m ago•0 comments

Google Maps Changes Lake Ontario to 'Lake America' on US Phones

https://thehill.com/policy/transportation/6059553-google-maps-renames-lake-america/
5•LopRabbit•32m ago•0 comments

Armageddon by Anthropomorphism: On Security and the Frontier

https://hardcoresoftware.learningbyshipping.com/p/242-armageddon-by-anthropomorphism
1•jeffreyrogers•33m ago•0 comments

Is Japan backpedaling on its work-style reforms?

https://www.japantimes.co.jp/news/2026/08/30/japan/society/japan-work-life-overtime/
1•mikhael•34m ago•0 comments

Pgwire explorer: the Postgres wire protocol, byte by byte

https://pgwire-explorer.dhuk.net/
1•thunderbong•36m ago•0 comments

Show HN: Magic Layers – Turn Any Image into Layers

https://magiclayers.net
1•QingWu•40m ago•0 comments

The quality you should most wish for your children

https://www.economist.com/business/2026/08/27/the-quality-you-should-most-wish-for-your-children
2•Anon84•42m ago•1 comments

Yen weakens past ¥160 per dollar, eroding intervention gains

https://www.japantimes.co.jp/business/2026/08/29/markets/yen-160-dollar-intervention/
20•rguiscard•42m ago•6 comments

AI Accelerator Designed, Verified, and Deployed from Scratch in 2 Weeks by AI

https://arxiv.org/abs/2608.26418
1•Jimmc414•42m ago•0 comments

Benchmarking Confidential Computing Performance on Nvidia Blackwell GPUs

https://arxiv.org/abs/2608.26575
1•Jimmc414•43m ago•0 comments

Free tools for the Microsoft Project Online retirement, 30 days out

https://onplana.com/tools
1•Onplana•46m ago•0 comments

Static Evaluation of Model Switching in LLM Agents Scores the Wrong World

https://arxiv.org/abs/2608.08239
3•danbitengo•51m ago•0 comments

Show HN: Python Static Site Generator for Small Businesses

https://codeberg.org/Marking-Time/MicroStore
1•marking-time•52m ago•0 comments

Ace Targets Streaming Pirates Through Cloudflare and Discord Subpoenas

https://torrentfreak.com/ace-targets-dozens-of-streaming-pirates-through-cloudflare-and-discord-s...
2•gslin•59m ago•1 comments

Europe's warm nights nearly doubled this summer

https://emot.substack.com/p/europes-warm-nights-nearly-doubled
3•emot•1h ago•0 comments

Anyone Got a Fenty.dev Invite?

1•penguinsnetwork•1h ago•0 comments

The Distractor

http://booktwo.org/notebook/the-distractor/
2•zetamax•1h ago•0 comments

Show HN: Clownbid.lol – pay to be the biggest clown on the internet

https://clownbid.lol/
2•nadermx•1h ago•0 comments

Give Your Coding Agent a Journal

https://doug.sh/posts/give-your-coding-agent-a-journal/
4•dougcalobrisi•1h ago•1 comments

If You Knew God Exists, Wouldn't You Become a Priest?

https://joecmarshall.com/posts/if-you-knew-god-exists-wouldnt-you-become-a-priest/
6•CoreSet•1h ago•1 comments

Are We Learning to Think Less?

https://socketstudy.com/sparks/are-we-learning-to-think-less/
2•wingrove•1h ago•2 comments

The Ternus Era at Apple Begins, but Cook Isn't Leaving

https://www.bloomberg.com/news/videos/2026-08-30/the-ternus-era-at-apple-begins-but-cook-isn-t-le...
2•sbulaev•1h ago•0 comments

Will anybody use AI as much as coders?

https://www.economist.com/business/2026/08/30/will-anybody-use-ai-as-much-as-coders
2•tagawa•1h ago•1 comments

Show HN: Break 5, the addictive, free 5 minute, daily word game

https://break5.co.uk/
2•dwgebler•1h ago•0 comments