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.

Satellite operators are in panic mode due to a worsening launch crisis

https://arstechnica.com/space/2026/08/theres-a-huge-launch-crunch-right-now-and-it-will-probably-...
1•jnord•10m ago•0 comments

S-1 – Independent Company Studies

https://s-1.vercel.app/
1•simonpure•18m ago•0 comments

Unslop my deck – upload slide decks, read less slop

https://unslopmydeck.xyz/
1•fkodom•22m ago•1 comments

What's Better Than Binary? – Advent of Computing Episode 187

https://adventofcomputing.libsyn.com/episode-187-whats-better-than-binary
1•matt_d•28m ago•0 comments

The Benchmarkpocalypse

https://danluu.com/benchpocalypse/
1•cyndunlop•31m ago•0 comments

Show HN: Turtle – Web Browser written from scratch for 2 years

2•coolwulf•32m ago•1 comments

.NET 11 Preview 7 is now available

https://devblogs.microsoft.com/dotnet/dotnet-11-preview-7/
1•Hixon10•32m ago•1 comments

Email Client for the Terminal?

2•ewjloop•32m ago•0 comments

Dial-up internet – made a thing that lets you do it again

https://56k.rip/
1•henrychannel•37m ago•0 comments

Show HN: SacredCal – A 13-month, 364-day calendar built around seven-day cycles

https://sacredcal.one
1•dealancer1•42m ago•1 comments

Three different papers pushed to ArXiv proving same 1986 conjecture; all use AI

https://twitter.com/Quasilocal/status/2089408301427568691
2•pfdietz•45m ago•0 comments

Decoding .heic: How the code works under the hood

https://heic-decoding.vercel.app/
1•suolex•45m ago•0 comments

Nested QR Codes

https://alloc.dev/2026/08/17/nested_qr_codes
1•Retro_Dev•46m ago•0 comments

Você realmente precisa de tudo isso para fazer um site?

https://opuscore.dev/
1•pragidi•49m ago•0 comments

Modular USB-C Hub for Framework Expansion Cards

https://dockframe.com/#
1•maxheyer•49m ago•0 comments

Going AI-native to enhance how humans/agents access ScalarDB and ScalarDL docs

https://medium.com/scalar-engineering/going-ai-native-to-enhance-how-humans-and-agents-access-sca...
2•josh-scalar•50m ago•0 comments

Low-tech animation Niu Lai trounces the Odyssey at Chinese box office

https://www.theguardian.com/world/2026/aug/17/niu-lai-derided-animated-film-challenges-blockbuste...
2•wslh•51m ago•0 comments

Every student is cheating with AI

https://ben.page/cheating
5•stopachka•56m ago•4 comments

Self-Healing Autopoietic Shell

https://huggingface.co/spaces/Daveswo/self-healing-autopoietic-shell
1•GlyphOS•59m ago•0 comments

The Coolest Cars We Saw at the 2026 Woodward Dream Cruise

https://www.caranddriver.com/news/a73453367/2026-woodward-dream-cruise-coolest-cars/
3•RickJWagner•1h ago•0 comments

Apple's Camera-Equipped AirPods See Them in Action

https://www.macrumors.com/2026/08/17/camera-equipped-airpods-macos-26-7/
2•thecybernerd•1h ago•0 comments

I've been doing endurance testing on microSD cards for the last 3 years

https://www.reddit.com/r/raspberry_pi/comments/1vqyx6o/ive_been_doing_endurance_testing_on_micros...
4•LeoPanthera•1h ago•0 comments

Apple's Camera-Equipped AirPods See Them in Action

https://twitter.com/aaronp613/status/2089522745184760112
4•thecybernerd•1h ago•0 comments

What Is DeepSeek-Harness? A Complete Introduction

https://findharness.com/blog/what-is-deepseek-harness
3•Justin3go•1h ago•1 comments

Caffeine and Cardiovascular Disease: A Scientific Statement from the AHA

https://www.ahajournals.org/doi/10.1161/CIR.0000000000001454
3•CalChris•1h ago•0 comments

Show HN: Tsampi BFT – Leaderless One-Round Voting with Parameterized Finality [pdf]

https://www.tsampi.com/tsampi-bft-1.0.pdf
1•coconutrandom•1h ago•0 comments

Qwen3.8-27B: slower tokens, faster and better results

https://overbring.com/blog/2026-08-17-qwen3-8-27b-wall-clock/
1•overbring_labs•1h ago•0 comments

Poor Man's Loop Engineering

https://awaitinginput.substack.com/p/poor-mans-loop-engineering
4•bsovran•1h ago•0 comments

Ask HN: Does anyone else feel like nothing matters anymore?

86•ramesh31•1h ago•54 comments

JD Vance vs. Trump: The Couch War Gets Out of Control [video]

https://www.youtube.com/watch?v=EbRMGAolHDk
1•pshales•1h ago•0 comments