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.

Crest – an Arc-inspired open-source browser for Mac

https://crestbrowser.com/
1•cobychapple•2m ago•0 comments

Two Hills: Weights and Harnesses

https://rlafuente.com/posts/2026-10-11-agent-evals-1-two-hills.html
1•andes314•11m ago•0 comments

So why not?

https://grammarphobia.com/blog/2009/06/so-why-not.html
1•gjvc•12m ago•0 comments

Glassmarchy – I Built an Omarchy Sea Glass Theme

https://github.com/amazedsaint/glassmarchy
1•amazedsaint•13m ago•0 comments

SpeedyIndex

https://en.speedyindex.com/
1•victordobroff•15m ago•0 comments

What a swordfish washing up on British Columbia's coast says changing oceans

https://phys.org/news/2026-10-swordfish-british-columbia-coast-oceans.html
1•neom•19m ago•0 comments

Xerox PARC chip shatters on command

https://techxplore.com/news/2015-09-xerox-parc-chip-shatters-shards.html
4•gurjeet•22m ago•0 comments

Finding "hidden" Blizzard news feeds

https://vildravn.eu/posts/wow-forever-news-api/
1•rdmuser•28m ago•0 comments

Solving "who said what" across conversations (IEEE SLT 2026)

https://arxiv.org/abs/2609.39344
2•siddsax•28m ago•1 comments

Gh-pull – A local GitHub PR dashboard using your existing CLI login

https://github.com/shiqicao/gh-pull
2•shiqicao•35m ago•0 comments

Pizza in North Korea

https://en.wikipedia.org/wiki/Pizza_in_North_Korea
5•axbac•37m ago•0 comments

Kev

https://jaredpalmer.com/blog/introducing-kev
3•gmays•37m ago•0 comments

Sorry we made you grind LeetCode

https://www.hackerrank.com/writing/why-were-sorry
17•ishanz•47m ago•21 comments

Show HN: Make Okular safer with a sandboxed MuPDF backend

https://github.com/l4rzy/okular-mupdf-ng
3•rzy•50m ago•0 comments

Show HN: Skills Hub, a desktop app for managing AI agent skills

https://github.com/qufei1993/skills-hub
5•qufei1993•51m ago•1 comments

Flow state, the dinner rush and AI brain fry

https://jamespember.substack.com/p/flow-state-the-dinner-rush-and-ai
1•jep888•53m ago•0 comments

Can Decision Models (Like Jev) Plan Ahead?

https://www.lesswrong.com/posts/kE4pbmwzdgmFx2RFo/can-decision-models-like-jev-plan-ahead
3•kp1197•56m ago•0 comments

Show HN: Writing a Game in C

https://podule.com.au/posts/building-in-c/
3•gt0•56m ago•0 comments

Website uses AI to generate northern Indigenous news 'correspondents'

https://www.cbc.ca/news/canada/north/artificial-intelligence-indigenous-journalists-9.7345554
4•Teever•1h ago•0 comments

Show HN: Seal one sentence into a 3D star-sea,permanently anchored on Arweave

https://memlife.me
2•woailuo•1h ago•0 comments

Console market craters: Xbox sales drop 33%, PS5 sales drop 25%

https://www.tomshardware.com/video-games/console-gaming/console-market-craters-as-xbox-sales-cras...
4•Gaishan•1h ago•3 comments

Timekeepers to vote on ditching the leap second

https://www.abc.net.au/news/science/2026-10-12/we-may-be-about-to-lose-the-leap-second-for-good/1...
5•Gaishan•1h ago•0 comments

Rightwing/Pro Trump bot traffic stop after Ukraine strikes on Russia datacenters

https://www.tomshardware.com/tech-industry/data-centers/russian-disinformation-bot-traffic-nearly...
14•fullstacking•1h ago•0 comments

Lotus Improv on the NeXT

https://stonetools.ghost.io/lotusimprov-next/
6•ChristopherDrum•1h ago•1 comments

Orion2 Redone: A Master of Orion II Restoration Project

https://github.com/orion2re/orion2re
1•joecarpenter•1h ago•0 comments

Do dentists know what they're doing?

https://mapwriting.substack.com/p/dentists
5•doitLP•1h ago•0 comments

Show HN: If MIT OCW Was Like Cable TV

https://rahulch.site/mitocwtv/
3•iKidA•1h ago•0 comments

Nvidia, Microsoft Launch Windows PCs with RTX Spark and AI Agents

https://blogs.nvidia.com/blog/local-ai-rtx-spark-microsoft-windows-event/
4•gmays•1h ago•0 comments

Claude-Pod

https://github.com/trekhleb/claude-pod
2•trekhleb•1h ago•0 comments

What are your thoughts on this technology that the American government has?

5•whiteangel1984•1h ago•13 comments