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.

TabAutopilot – AI Tab Organizer and Manager

https://chromewebstore.google.com/detail/tabautopilot-–-ai-tab-org/nplekjmldglpfcdiechmgahoefhf...
1•rfmamun•54s ago•0 comments

Well made software will make it

https://dankim.com/well-made-software-will-make-it/
1•speckx•1m ago•0 comments

Feels Like GitHub Status

https://paradise-runner.github.io/feels-like-github-status/#tz=America%2FDenver&m=AAAAAP4BAP4BAP4...
1•dividedcomet•1m ago•1 comments

Why are stock prices still so high?

https://www.thefp.com/p/stock-market-rally-iran-war
1•paulpauper•4m ago•0 comments

Albert Einstein in the World Wide Web

https://einstein-website.de/en/
2•reconnecting•4m ago•0 comments

ICE Plans to Deploy Additional Iris Scanners Nationwide Under No-Bid Contract

https://www.projectsaltbox.com/p/ice-plans-to-deploy-1570-additional
1•cdrnsf•4m ago•0 comments

Reeder App

https://reeder.app/
2•SpyCoder77•6m ago•0 comments

GM cutting salaried IT workers as it trims costs, evaluates needs

https://www.cnbc.com/2026/05/11/gm-layoffs.html
2•TMWNN•8m ago•0 comments

Brazil caught up in craze for whistling-only WhatsApp groups

https://www.theguardian.com/world/2026/may/05/brazil-craze-whistling-only-whatsapp-groups
2•hmokiguess•12m ago•0 comments

Claude Platform on AWS is now generally available

https://aws.amazon.com/about-aws/whats-new/2026/05/claude-platform-aws/
2•gslin•13m ago•0 comments

A Bette RAG Alternative

https://www.codynamicslab.com/
1•CoDynamicsLab•13m ago•1 comments

Google updates AI search to include quotes from Reddit and other sources

https://techcrunch.com/2026/05/06/google-updates-ai-search-to-include-expert-advice-from-reddit-a...
3•gmays•14m ago•0 comments

Zig vs. Rust in 2026

https://zackoverflow.dev/writing/zig-vs-rust-in-2026/
2•ingve•15m ago•0 comments

Hyperland [video]

https://www.youtube.com/watch?v=cyAQgK7BkA8
1•zoenolan•16m ago•0 comments

Professional school grads from diverse classes get higher salaries

https://arstechnica.com/science/2026/04/professional-school-grads-from-diverse-classes-get-higher...
1•PaulHoule•17m ago•0 comments

Ask HN: Hetzner Down Again?

https://status.hetzner.com/
1•lschueller•18m ago•1 comments

Create a 90s GeoCities style website in seconds (rust)

https://crates.io/crates/create-geocities-app
4•whatsupdog•19m ago•0 comments

Chrome Addon to Export Websites as PDF, SVG, DXF, with searchable Text

https://chromewebstore.google.com/detail/web2vector/ojjkecepeobhmpilhdhcjcgpdjhnkjgl
2•jogibear9988•20m ago•0 comments

Steven, please fix the 1% loss/gain graph

https://blog.hartwork.org/posts/steven-please-fix-the-1-loss-gain-graph/
2•spyc•20m ago•0 comments

How to Fine-Tune LLMs on AMD Strix Halo

https://www.promptinjection.net/p/how-to-fine-tune-llms-on-amd-strix-halo-ryzen-ai-max-395-sft-lora
1•c7b•21m ago•0 comments

Proxmark5: Professional RFID Research Platform for Hackers

https://www.indiegogo.com/en/projects/rfidresearchgroup/proxmark5
1•The_SamminAter•21m ago•0 comments

Factorio syncs inputs, not a million objects [video]

https://www.youtube.com/watch?v=0FHSZ1hani0
2•p_stuart82•26m ago•0 comments

Logos – Social Movement and Decentralised Technology

https://logos.co
2•janandonly•27m ago•0 comments

Linux Terminal Memory Usage

https://gilesorr.com/blog/linux-terminal-memory-usage.html
4•speckx•28m ago•0 comments

Cool way to show off all your AI projects

https://www.robot-future.com/preview/69fba01c844114ffda523bbc
2•busters4•30m ago•0 comments

Quiet – Private messaging over Tor. No servers

https://tryquiet.org/
3•janandonly•31m ago•1 comments

Show HN: A geocities inspired place for your vibed tools

https://www.tinytooltown.com/
3•shanselman•34m ago•0 comments

Google Cameyo – turn legacy Windows apps into PWAs

https://cameyo.google/
2•LorenDB•35m ago•0 comments

The Tree House: A voyage to the source of a backyard dream

https://www.laphamsquarterly.org/roundtable/tree-house
2•Caiero•36m ago•0 comments

Red Hot Chili Peppers sell music catalogue for $300M

https://guitar.com/news/industry-news/red-hot-chili-peppers-sell-music-catalogue/
21•randycupertino•39m ago•12 comments