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.

The Biophysical World Inside a Jam-Packed Cell

https://www.quantamagazine.org/the-biophysical-world-inside-a-jam-packed-cell-20260218/
1•tzury•1m ago•0 comments

TimesFM (Time Series Foundation Model)

https://github.com/google-research/timesfm
2•tzury•2m ago•0 comments

Electrobun v1: Build fast, tiny, and cross-platform desktop apps with TypeScript

https://blackboard.sh/blog/electrobun-v1/
3•merlindru•5m ago•1 comments

The Excruciating Slow Rise of DNSSEC

https://circleid.com/posts/the-excruciating-slow-rise-of-dnssec
1•pawal•6m ago•0 comments

India Seizes Sanctioned Shadow Fleet Tankers Amid Trade Thaw with U.S.

https://www.wsj.com/world/india/india-seizes-sanctioned-shadow-fleet-tankers-amid-trade-thaw-with...
1•mooreds•6m ago•0 comments

Show HN: I just shipped the canonical neuro-symbolic control demo

https://github.com/anulum/scpn-fusion-core/blob/main/examples/neuro_symbolic_control_demo.ipynb
1•anulum•8m ago•0 comments

Blue Owl permanently halts redemptions at retail investor private credit fund

https://www.ft.com/content/b2f299f6-2a82-4a43-bcbf-86cac3937550
1•toomuchtodo•9m ago•0 comments

ClawJetty: Plug-In Personal OpenClaw Box

https://clawjetty.com/
1•andes314•12m ago•1 comments

Stoat: A Good Alternative to Discord?

1•peq42•14m ago•0 comments

MNX: AI perps, futures, and prediction markets

https://mnx.fi/
1•theptip•14m ago•0 comments

Mooncake Joins PyTorch Ecosystem

https://pytorch.org/blog/mooncake-joins-pytorch-ecosystem/
1•mji•15m ago•0 comments

Sound on the web: history, common use-cases, and best practices (2025)

https://blog.readymag.com/sound-on-the-web/
1•1659447091•15m ago•0 comments

I hacked ChatGPT and Google's AI – and it only took 20 minutes

https://www.bbc.com/future/article/20260218-i-hacked-chatgpt-and-googles-ai-and-it-only-took-20-m...
2•iamflimflam1•23m ago•0 comments

We just hit 1k users

https://laddernexus.com/
1•squiggyboy•23m ago•0 comments

Will Humans Still Review Code? The critical question companies must answer now

https://franciscomt.medium.com/will-humans-still-review-code-a6f7d3f0c39c
3•franciscomt•25m ago•0 comments

Yet another OpenClaw host, 2 minutes setup with Kimi K2.5 inside

https://clawhost.chat
1•vadimen•25m ago•1 comments

10k spinner phrases for Claude Code generated from Unix fortune

https://github.com/dylanlangston/claude-spinners-fortune
1•dylanlangston•27m ago•0 comments

The Last Skill

https://derrickburns720047.substack.com/p/the-last-skill
1•CoffeeOnWrite•27m ago•0 comments

I built a 9-stage ML pipeline that turns Reddit into timestamped options signals

https://github.com/Mattbusel/ROT-TECH-PDF
1•Shmungus•28m ago•1 comments

FDA reverses course and will review Moderna's mRNA flu shot, company says

https://www.cnn.com/2026/02/18/health/fda-moderna-mrna-flu-vaccine-reversal
3•CGMthrowaway•34m ago•0 comments

Your Consciousness Can Connect With the Whole Universe, Groundbreaking Research

https://www.popularmechanics.com/science/a70395978/consciousness-connects-with-universe/
3•madihaa•38m ago•4 comments

America, a Love Story

https://american-innocence.com/p/america-a-love-story
1•aschleck•38m ago•0 comments

Semantics, Operations, and Properties of P3109 Floating-Point Formats in Lean

https://github.com/rutgers-apl/FLoPS
1•matt_d•38m ago•0 comments

The Wrong Apocalypse

https://ionanalytics.com/insights/mergermarket/the-wrong-apocalypse-op-ed/
1•tdeangelis•40m ago•0 comments

Wider, Not Faster

https://www.kevinlondon.com/2026/02/15/not-faster-but-wider/
3•misbahkhan•41m ago•0 comments

LongCLI-Bench: Benchmark and Study for Long-Horizon Agentic Programming in CLIs

https://arxiv.org/abs/2602.14337
2•simonpure•42m ago•0 comments

Design-memory: Extract and reproduce design systems from any website

https://github.com/memvid/design-memory
2•simonpure•43m ago•0 comments

Musk cuts Starlink access for Russian forces – giving Ukraine an edge

https://www.bbc.com/news/articles/c0q3ndj7052o
6•dabinat•46m ago•1 comments

Show HN: Axelor Theme Designer

https://shivantra.com/axelor-theme-designer/
1•painternishant•49m ago•1 comments

Vibe Coding Technical Debt Visualizer

https://github.com/h-michaelson20/tech-debt-visualizer
1•hmichaelson24•49m ago•1 comments