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

AI Tools: Slowing Down Developers Instead of Speeding Them Up – Here's Why

https://medium.com/@riturajpokhriyal/why-ai-coding-tools-are-making-you-slower-and-what-actually-...
1•birdculture•21s ago•0 comments

Z-Image is an AI-powered image generator

https://z-image.fun/
1•nikiki•4m ago•1 comments

Dystopia: W3C (West World WebKit Corporation) in 2024

https://svgees.us/blog/dystopia.html
1•lioeters•5m ago•0 comments

Back to FreeBSD: Part 1

https://hypha.pub/back-to-freebsd-part-1
1•enz•9m ago•0 comments

Node.js in the Browser

https://github.com/userland-run/nano
2•dietz•10m ago•1 comments

What's the best way to learn a new language?

https://www.bbc.com/future/article/20260220-whats-the-best-way-to-learn-a-new-language
2•1659447091•11m ago•0 comments

Show HN: ScreenCommander – Let LLM Agents control your desktop via CLI

https://github.com/0xSMW/screencommander
1•aethelyon•16m ago•1 comments

Debian's Master Is Deleting Criticism of SystemD and Other Things

https://techrights.org/n/2026/02/21/Debian_s_Master_is_Deleting_Criticism_of_SystemD_and_Other_Th...
1•amcclure•18m ago•0 comments

Show HN: This week I learned 100 English word with alarm clock

https://vocabalarm.com/
1•tien198722•20m ago•0 comments

Show HN: Atlassian-CLI, unified CLI tool for Jira, Confluence, Bitbucket and JSM

https://github.com/omar16100/atlassian-cli
1•omar16100•23m ago•0 comments

Louis de Broglie – Nobel Lecture [pdf]

https://www.nobelprize.org/uploads/2016/04/broglie-lecture.pdf
1•ColinWright•23m ago•0 comments

Show HN: Clawdrop – how do you use OpenClaw?

https://clawdrop.org/
1•dhruvkar•25m ago•0 comments

Show HN: Secret Sanitizer – auto-masks secrets when you paste into AI chats

https://github.com/souvikghosh957/secret-sanitizer-extension
1•souvikghosh957•25m ago•0 comments

30 Years of Decompilation and the Unsolved Structuring Problem: Part 1 (2024)

https://mahaloz.re/dec-history-pt1
1•userbinator•27m ago•0 comments

Reliving Late Nights Watching MTV with ErsatzTV

https://rafichaudhury.com/site/blog/ersatztv
1•rchaud•34m ago•0 comments

The Pleasures and Pains of Coffee (1830)

https://quod.lib.umich.edu/m/mqrarchive/act2080.0035.002/10
1•jxmorris12•35m ago•0 comments

Disagree and commit is not disagree and complain

https://dougrathbone.com/blog/2026/02/22/disagree-and-commit-is-not-disagree-and-complain
1•wiredone•36m ago•0 comments

Show HN: Microterm runs Linux VM in any browser tab via WASM, RISCV64 emulation

https://microterm.dev/
1•Xlab•38m ago•0 comments

Show HN: Kickstart – Set up a Claude Code project in 3seconds from clipboard

https://github.com/m4suisui/kickstart
1•m4sui•41m ago•0 comments

Why SaaS companies are scared Takes ODE 15 mins to do what takes them 6 months

https://www.llewellynsystems.com
1•LLSODE•42m ago•0 comments

Claude Opus 4.6 Fast Mode: 2.5x Faster, 6x More Expensive

https://www.marc0.dev/en/blog/claude-opus-4-6-fast-mode-pricing-6x-cost-breakdown-1770499078106
1•mefengl•49m ago•0 comments

Built an open-source tool that lets you deploy containers to your VPS via MCP

https://github.com/ddalcu/mcp-deploy
1•ddalcu•50m ago•1 comments

CDC: Why Decompression Is Worth the Complexity

https://wael.nasreddine.com/nixos/cdc-why-decompression-worth-co
2•kalbasit•56m ago•1 comments

Show HN: Brood, a reference-first AI image editor for macOS

https://github.com/kevinshowkat/brood
1•latentcraft•57m ago•1 comments

Amazon's cloud unit hit by outage involving AI tools in December

https://www.reuters.com/business/retail-consumer/amazons-cloud-unit-hit-by-least-two-outages-invo...
1•1vuio0pswjnm7•59m ago•0 comments

Show HN: Clawscan – Open-source security scanner for OpenClaw AI agents

https://github.com/osmankidwai-bot/clawscan
1•clawscan•1h ago•0 comments

A chat-style site for Hacker News trends

https://github.com/1997roylee/yc-chat
1•1997roylee•1h ago•1 comments

Forgelink Is Here

1•frostfrazer•1h ago•0 comments

Show HN: HashTrade – Open-source LLM trading agent with episodic memory

https://github.com/mertozbas/hashtrade
1•mertozbas•1h ago•1 comments

I just started a Substack where I talk about building Midrop

https://klaudjo.substack.com/subscribe
1•Klaudjo_shkurta•1h ago•0 comments