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.

JanetDocs – Community Documentation for Janet

https://janetdocs.org/
1•veqq•1m ago•0 comments

Short guide to 3D file formats: STL, OBJ, 3MF, STEP and the rest

https://modelrift.com/blog/3d-file-formats-explained/
1•jetter•1m ago•0 comments

A Language for Agents

https://lucumr.pocoo.org/2026/2/9/a-language-for-agents/
1•surprisetalk•2m ago•0 comments

The seam through the center of things

https://usefulfictions.substack.com/p/the-seam-through-the-center-of-things
1•surprisetalk•2m ago•0 comments

Sex Workers Are Built Different (Graph Dump)

https://aella.substack.com/p/sex-workers-are-built-different-graph
1•surprisetalk•2m ago•0 comments

Bicross

https://eli.li/bicross
1•surprisetalk•2m ago•0 comments

Global Trade Is Leaving the US Behind

https://www.bloomberg.com/opinion/articles/2026-02-12/on-trade-and-tariffs-the-world-is-moving-on...
1•wslh•5m ago•1 comments

Recursive Language Models: Stop Stuffing the Context Window

https://nlp.elvissaravia.com/p/recursive-language-models-stop-stuffing
1•omarsar•7m ago•0 comments

Gas Town, Beads, and the Rise of Agentic Development with Steve Yegge

https://softwareengineeringdaily.com/2026/02/12/gas-town-beads-and-the-rise-of-agentic-developmen...
1•kbal11•8m ago•0 comments

Scientists Figured Out the Problem with Johnson and Johnson's Covid Vaccine

https://www.theatlantic.com/science/2026/02/covid-vaccines-blood-clotting-answer/685966/
2•ceejayoz•9m ago•0 comments

Math and Me

http://togelius.blogspot.com/2026/02/math-and-me.html
1•qwertyforce•11m ago•0 comments

Lessons learned building ChatGPT Apps

https://developers.openai.com/blog/15-lessons-building-chatgpt-apps/
2•manikandaraj•14m ago•2 comments

Explanation of Thermopower in Metals [pdf]

https://www.fzu.cz/~knizek/pdf/Thermopower.pdf
1•joebig•15m ago•0 comments

Hnpes – Hacker News Previous Entry Search for Firefox and Chrome

https://github.com/lsferreira42/hnpes
1•lsferreira42•15m ago•0 comments

Amazon gets FCC approval to launch 4,500 Leo internet satellites

https://www.cnbc.com/2026/02/10/amazon-gets-fcc-approval-to-launch-4500-leo-internet-satellites.html
3•mooreds•15m ago•0 comments

Show HN: Generate Web Interfaces from Data

https://github.com/puffinsoft/syntux
3•Goose78•15m ago•0 comments

The Scottish island that bought itself

https://www.elysian.press/p/the-scottish-island-that-bought-itself
1•toomuchtodo•16m ago•1 comments

Southwest Swaps to Starlink

https://paxex.aero/southwest-swaps-to-starlink/
1•mooreds•16m ago•0 comments

Using Your Mac as a Remote Endless Working Agent with Moshi

https://getmoshi.app/articles/mac-remote-endless-agent-setup
1•mefengl•17m ago•0 comments

JupyterLite Officially Joins Project Jupyter

https://blog.jupyter.org/jupyterlite-officially-joins-project-jupyter-77df24c8db80
4•DerThorsten•17m ago•0 comments

How do I become a good writer?

https://ritza.co/handbook/improving-your-writing/how-do-I-become-a-good-writer/
1•mooreds•18m ago•0 comments

Show HN: Snapsell – AI-driven infrastructure for e-commerce optimization

https://snapsell.website
1•helia_ai•18m ago•0 comments

Show HN: Updated HyperUPnP TV App

https://github.com/zeet2020/HyperUpnp-TV
1•zeet2020•18m ago•0 comments

Are we becoming QA for the machine?

https://medium.com/@theRedbeardIO/are-we-becoming-qa-for-the-machine-9622ea6efdeb
1•theredbeard•19m ago•0 comments

Multi-omics analysis reveals oral microbiome-metabolome signatures of obesity

https://www.sciencedirect.com/science/article/pii/S2211124725015918
2•PaulHoule•19m ago•0 comments

Aligning brains into a shared space improves their alignment with LLMs

https://www.nature.com/articles/s43588-025-00900-y
4•tesserato•19m ago•1 comments

The problem with blaming 'ultra-processed' foods for obesity

https://greyenlightenment.com/2026/02/09/the-problem-with-blaming-ultra-processed-for-obesity/
1•paulpauper•21m ago•0 comments

Extractive Taxation and the French Revolution

https://www.nber.org/papers/w34816
2•paulpauper•21m ago•0 comments

My Claude Code Setup

https://psantanna.com/claude-code-my-workflow/
2•paulpauper•21m ago•0 comments

Chess Mate Cafe in Detroit

https://musicorigins.org/item/the-chess-mate/
1•marysminefnuf•22m ago•0 comments