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.

Cloudflare Workers and Hyperdrive with TanStack Start

https://master.dev/blog/cloudflare-workers-and-hyperdrive-with-tanstack-start/
1•ibobev•36s ago•0 comments

How to Make an Interactive Element Invisible but Accessible

https://master.dev/blog/how-to-make-an-interactive-element-invisible-but-accessible/
1•ibobev•1m ago•0 comments

Tesla driver who blamed crash on autopilot pressed accelerator 100%, NTSB finds

https://arstechnica.com/tech-policy/2026/07/tesla-driver-who-blamed-crash-on-autopilot-pressed-ac...
1•MC995•1m ago•0 comments

Thinking Horizontally in CSS Layer

https://master.dev/blog/thinking-horizontally-in-css-layer/
1•ibobev•1m ago•0 comments

It from Bit, Bit from It: Physics, Information, and the Quantum Zeno Effect

https://www.symmetrybroken.com/it-from-bit-bit-from-it/
1•lioeters•3m ago•0 comments

A World of Blinkenlights

https://jpdias.me/hardware/2026/07/11/world-of-blinkenlights.html
1•jpdias•4m ago•0 comments

Nostalgic Visual Novels Archive

https://tss.asenheim.org/en/
1•Eridanus2•4m ago•0 comments

Plotting of and by Students

https://leancrew.com/all-this/2026/07/plotting-of-and-by-students/
1•surprisetalk•8m ago•0 comments

Wearable sensors on the face are invisible to the eye

https://www.nature.com/articles/d41586-026-02193-1
1•Brajeshwar•10m ago•0 comments

Async Hydration in Preact

https://jovidecroock.com/blog/resumed-hydration-preact/
1•mariuz•10m ago•0 comments

Use caffeinate to keep Claude Code and Codex running on Mac

https://www.narendravardi.com/use-caffeinate-to-keep-claude-code-and-codex-running-on-mac/
1•uyfyxr8•10m ago•0 comments

I tried to record music onto a cassette tape using modern tech

https://swiftrocks.com/i-tried-to-record-music-onto-a-cassette-tape-using-modern-tech
1•rockbruno•11m ago•0 comments

Real-time on page diagnostics for Blazor developers

https://blazrlytics.com
1•kevbernard•13m ago•0 comments

Reproducible Builds in June 2026

https://reproducible-builds.org/reports/2026-06/
1•lioeters•13m ago•0 comments

AI's Wider Availability Is Good for China, Not Great for OpenAI and Anthropic

https://www.wsj.com/tech/ai/cheaper-ai-commodity-openai-anthropic-0111da73
2•wertyk•14m ago•0 comments

The Most Famous AI Writing Tic Is Also the Most Mysterious

https://www.theatlantic.com/technology/2026/07/ai-chatbot-writing-tic-negative-parallelism/687892/
1•gmays•14m ago•0 comments

Should You Give Up Owning a Home? With Kyla Scanlon [video]

https://www.youtube.com/watch?v=DvYF4DBlcFM
1•mooreds•15m ago•0 comments

Mozilla: The state of open source AI

https://stateofopensource.ai/
22•rellem•17m ago•2 comments

A 5-figure-MRR success after a failed product buried him in debt

https://www.indiehackers.com/post/tech/a-5-figure-mrr-success-after-a-failed-product-buried-him-i...
2•jimwilson•18m ago•0 comments

The Miso That Went to Space

https://ambrook.com/offrange/culture/miso-in-space
2•surprisetalk•18m ago•0 comments

Food for Agile Thought 553: Dangerous Agile Myths, Produce Evidence Quality

https://age-of-product.com/food-agile-thought-553-dangerous-agile-myths/
2•swolpers•19m ago•0 comments

Chinese automakers are taking on the UK – and many Brits are embracing it

https://www.cnbc.com/2026/07/17/chinese-automakers-uk.html
2•pm2222•19m ago•0 comments

US manufacturing employment is down, but each state has its own story

https://fredblog.stlouisfed.org/2026/07/us-manufacturing-employment-is-down-but-each-state-has-it...
3•loughnane•20m ago•0 comments

Claude Code: Anatomy of a Misfeature

https://www.olafalders.com/2026/07/17/claude-code-anatomy-of-a-misfeature/
2•oalders•22m ago•0 comments

Show HN: DSA View View – A TypeScript runtime visualizer for algorithms

https://dsa-view-view.vercel.app/
2•nyaomaru•22m ago•1 comments

Show HN: Crux, a personal AI on your computer you can reach from anywhere

https://qunt.in
2•parker-nyx•23m ago•1 comments

SmartTAR – STAR 1.3.0

https://github.com/eco-by-different/smarttar-star
2•e_b_d•23m ago•1 comments

Show HN: On-chain bond market where the issuers are AI agents

https://selbonds.now
2•griffinfoster7•23m ago•0 comments

We cannot wait for better post-quantum signature algorithms

https://blog.cloudflare.com/ml-dsa-will-have-to-do/
2•pqpdf•24m ago•0 comments

Distant exoplanets may be hiding water beyond Webb Telescope's reach

https://news.uchicago.edu/story/distant-exoplanets-may-be-hiding-water-beyond-webb-telescopes-rea...
2•gmays•24m ago•0 comments