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.

Creating a Programming Language Using Coding Agents on GitHub

https://dsyme.net/2026/02/08/july-2025-creating-a-compiler-with-a-swarm/
1•laurentlb•3m ago•0 comments

Hollywood Is Losing Audiences to AI Fatigue

https://www.wired.com/story/hollywood-is-losing-audiences-to-ai-fatigue/
1•saikatsg•5m ago•1 comments

SOK: On the Analysis of Web Browser Security (2021)

https://arxiv.org/abs/2112.15561
1•walterbell•6m ago•0 comments

An Analysis of Poptropica's Mancala

https://farlow.dev/2026/02/08/an-analysis-of-poptropicas-mancala
2•farlow•9m ago•0 comments

Why Improving VO₂ Max Increases Confidence Outside of Workouts

https://www.vo2maxpro.com/blog/vo2-max-confidence-beyond-workouts
1•GoodluckH•9m ago•0 comments

Show HN: Nick the Groq – AI Poker Coach- Open Source

https://poker-coacher.vercel.app/
1•hotrod46•12m ago•0 comments

DSA Interview Preparation Guide: Complete 90-Day Roadmap

https://www.dsaprep.dev/blog/dsa-interview-preparation-guide-90-day-roadmap
1•anjandutta•12m ago•0 comments

Ask HN: What Are You Working On? (February 2026)

2•david927•14m ago•1 comments

Ask HN: What made VLIW a good fit for DSPs compared to GPUs?

3•rishabhaiover•14m ago•0 comments

Living hell of North Korea's paradise on Earth scheme back in spotlight in Japan

https://www.theguardian.com/world/2026/feb/01/living-hell-of-north-koreas-paradise-on-earth-schem...
1•PaulHoule•15m ago•0 comments

The Future of Software Engineering

https://www.poberezkin.com/posts/2026-02-07-the-future-of-software-engineering.html
1•ssummoner001•17m ago•1 comments

BBC's Stopmotion 2026 Olympic Winter Games Trailer behind-the-scenes [video]

https://www.youtube.com/watch?v=iF_BJNrt1I4
2•ChrisArchitect•18m ago•1 comments

The next frontier in weight-loss drugs: one-time gene therapy

https://www.washingtonpost.com/health/2026/01/24/fractyl-glp1-gene-therapy/
1•bookofjoe•19m ago•1 comments

Turn any REST API with an OpenAPI spec into queryable Apache Spark tables

https://github.com/Neutrinic/apilytics
1•ZenithR9•21m ago•1 comments

Tegratop – A Comprehensive TUI monitoring tool for Nvidia jetson boards

https://github.com/pythops/tegratop
1•pythops•22m ago•0 comments

Show HN: A Compiler for CDN Security (YAML to CloudFront/Workers/WAF)

https://www.npmjs.com/package/cdn-security-framework
1•einshutoin•23m ago•1 comments

Hot-Potato Routing

https://en.wikipedia.org/wiki/Hot-potato_routing
1•Thicken2320•24m ago•0 comments

Show HN: Multi-agent orchestration using OpenCode and LangGraph

https://gitlab.com/nis-open-code
1•ninashamsi•24m ago•0 comments

'Black' Banned from Flyers for FAMU College of Law Black History Month Event

https://www.clickorlando.com/news/local/2026/02/06/black-banned-from-flyers-for-famu-college-of-l...
4•zzzeek•24m ago•0 comments

Demo Effect Explained: How to Make a 3D Tunnel on the C64 [video]

https://www.youtube.com/watch?v=4Db-tmL8Tno
2•pavel_lishin•26m ago•0 comments

OpenAI's GPT-4 Discontinuation: Consumer Fraud and Regulatory Scrutiny

2•tizzzzz•27m ago•5 comments

Show HN: The biggest achievement of my life so far

https://github.com/adityaprasad-sudo/Explore-Singapore
6•ambitious_potat•29m ago•0 comments

Show HN: A macOS screen recorder for the rest of us – free and open source

https://jsattler.github.io/BetterCapture/
1•jsattler•29m ago•0 comments

The Evolution of a Lean Programmer

https://unnamed.website/posts/evolution-lean-programmer/
1•aebtebeten•30m ago•0 comments

Open-source webapp to analyze all your DJI flight logs in one place

https://github.com/arpanghosh8453/dji-logbook
1•iamarpan•32m ago•1 comments

OpenAI Just Betrayed Nvidia: The AI War Begins Now

https://www.youtube.com/watch?v=SG71c_W25-s
1•cable2600•33m ago•0 comments

Camera that can see around corners (2021) [video]

https://www.youtube.com/watch?v=Ir7wCAQINqw
1•downboots•35m ago•0 comments

Show HN: Deterministic product idea generator (no AI APIs, works offline)

https://github.com/CrazhHolmes/passive-gen
1•Wizardrytezch•35m ago•0 comments

Show HN: Tabletop Jigsaw Puzzle

https://jigsaw.rokyed.digital/
1•rokyed•36m ago•0 comments

Show HN: EkşI Sözlük but every author is an AI agent

https://www.robotsozluk.com
1•yldrmahmet•38m ago•1 comments