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.

Smart Glasses for Disabilities

https://www.eenewseurope.com/en/smart-glasses-for-disabilities/
1•rbanffy•3m ago•0 comments

Show HN: PuckAPI, NHL play-by-play and odds history via REST and MCP

https://puckapi.com
1•noahowsh•3m ago•0 comments

Ties to Kalshi Throw Gambling Addiction Group into Disarray

https://www.barrons.com/articles/kalshi-prediction-market-gambling-addiction-hotline-f4e64c71
1•berkeleyjunk•4m ago•0 comments

Setting a new standard for responsible AI infrastructure

https://openai.com/index/setting-new-standard-responsible-ai-infrastructure/
1•giuliomagnifico•6m ago•0 comments

Show HN: AI Heat Map generated real-time from over 140 News Feeds

https://ai-news.jagular.io/
2•psiberaktiv•6m ago•0 comments

EU deportations: 'Alternatives' to detention include surveillance and coercion

https://statewatch.org/news/2026/november/eu-returns-alternatives-to-detention-and-increased-cont...
1•iamnothere•7m ago•0 comments

From Crisis to Care: A Framework for Repatriated Civilian Hostages

https://www.mdpi.com/2227-9032/14/18/3057
1•wslh•7m ago•0 comments

That "Thunking" Noise: Coroutines for the DIYer

https://reindeereffect.com/0004
1•kmstout•7m ago•0 comments

Ask HN: Are you writing your own programming language?

2•empath75•7m ago•1 comments

Show HN: See an AI-drafted LinkedIn post and quote graphic, no signup or card

https://engine.goviralpromo.com/try
2•Matthew25•8m ago•0 comments

Show HN: Practical, change Mac calendar events by typing what's different

https://david-alves.com/practical/
1•Adjadj•9m ago•0 comments

The Dock's Trash doesn't delete anything, and other macOS surprises

https://tendedero.app/blog/macos-surprises/
1•alejandrobujan•9m ago•0 comments

Verification debt has moved from code into reports, tenders and courtrooms

https://philip.lilius.io/notes/somebody-has-to-read-it/
1•devolve•10m ago•0 comments

State of StableCoins and Payments

https://www.allium.so/reports/state-of-stablecoins-and-payments-q3-2026
1•usacoder•10m ago•0 comments

Show HN: Depquiet, Triage NPM/pip/Dependabot alerts by reachability

https://github.com/samuelrojas-dev/depquiet
1•samuelitemaster•12m ago•0 comments

Why Vaadin Browserless Testing Is a Game Changer for AI Generated Web Apps

https://martinelli.ch/why-vaadin-browserless-testing-is-a-game-changer-for-ai-generated-web-appli...
1•spicyroman•12m ago•0 comments

Show HN: Maintenant, self-hosted monitoring for Docker and Kubernetes

https://github.com/kOlapsis/maintenant
1•benjy3379•14m ago•1 comments

Show HN: Find people on X asking for a product like yours

https://ownfeed.dev/check
2•shun_dev•14m ago•0 comments

Sailing Solo Around Britain

https://sites.google.com/view/sailing-solo-around-britain/leisure-27-dark-star
1•dmonay•15m ago•1 comments

The Limits of Test-Time Compute for Self-Evaluation

https://anirudhb11.github.io/blog/scorpio/
1•martincsweiss•16m ago•0 comments

Exceptions to 1.1.1: When the Alt Text Isn't the Answer

https://tarnoff.info/2026/10/12/exceptions-to-1-1-1-when-the-alt-text-isnt-the-answer/
1•speckx•17m ago•0 comments

AI Broke Cybersecurity. Visual Programming Can Fix It

https://medium.com/@toplinesoftsys/ai-broke-cybersecurity-visual-programming-can-fix-it-d7d1dae6f2b5
2•toplinesoftsys•19m ago•0 comments

Tunefield – a DJ's music library as a 3D field (free, open source, macOS)

https://github.com/tunefield/lite
1•markburnett•19m ago•0 comments

This Fluid Shows Us What Quantum Physics Is Like [video]

https://www.youtube.com/watch?v=KfODG5REyss
1•thunderbong•21m ago•0 comments

What a year of Claude Code and Codex issues is about

https://noteheld.com/research/claude-code-codex-issues-2026
1•Patt_•21m ago•0 comments

Forget about credit assignment in long-horizon agentic post-training

https://qiyaoliang.com/blog/es-vs-pg-long-horizon/
1•bilsbie•22m ago•0 comments

Show HN: Dereliction – leave a web page alone and it falls apart

https://oripekelman.github.io/dereliction/
1•OriPekelman•23m ago•0 comments

The Vanishing Human Presence – By a Midwestern Doctor

https://www.midwesterndoctor.com/p/the-vanishing-human-presence
1•bilsbie•23m ago•0 comments

TVPort

https://github.com/68hctmzzjf-svg/TVPort
1•thehoff•24m ago•0 comments

TVPort – Port switch games to run natively on AppleTV

https://www.reddit.com/r/decomps/comments/1xn3wh1/release_tvport_port_switch_games_to_run_natively/
1•notfried•25m ago•0 comments