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.

Typed WebSocket Realtime in Point0, a TypeScript Framework on Bun and React

https://1gr14.dev/en/blog/point0-socket
1•1gr14•53s ago•0 comments

The Horse

https://worksinprogress.co/issue/the-ultimate-horse/
1•ortegaygasset•1m ago•0 comments

The Creators of VHS Dates Are Ready to Come Clean

https://www.nytimes.com/2026/08/10/arts/vhs-dates-instagram-tapes.html
1•rdmuser•1m ago•0 comments

The Datamaxxers Feeding Their Every Health Move to AI

https://www.wsj.com/tech/ai/the-datamaxxers-feeding-their-every-health-move-to-ai-df0af9b5
1•thm•1m ago•0 comments

Show HN: A website for exploring historical photographs of my city

https://yesterdays.maprva.org/
1•uneekname•1m ago•0 comments

GUI Programming

https://fomenko.fr/devlogs/gui-programming/
1•kooparse•2m ago•0 comments

Google launches Pixel 11 Pro Fold

https://blog.google/products-and-platforms/devices/pixel/pixel-11-pro-fold/
2•thm•2m ago•0 comments

Startups Need an Asymmetry

https://sunilpai.dev/posts/startups-need-an-asymmetry/
1•tosh•2m ago•0 comments

Show HN: Bough – a coding agent that writes a program per turn, not tool calls

https://github.com/andreylukin/bough
1•alukin•3m ago•0 comments

Twisted Physics: Astronomers Solve 30-Year-Old Stellar Mystery

https://public.nrao.edu/news/twisted-physics-astronomers-solve-30-year-old-stellar-mystery/
1•MarcoDewey•4m ago•0 comments

Psysonic: A full-featured desktop client for Navidrome

https://github.com/Psychotoxical/psysonic
1•ju3rg•4m ago•0 comments

Show HN: Tss – Simple Tailscale Host Selector command-line tool

https://github.com/berggren/tss
1•jbn4711•4m ago•1 comments

Qwen3.8 Weights Release in 10 minutes

https://modelscope.cn/models/Qwen/Qwen3.8-2.4T-A95B
3•apitman•5m ago•0 comments

We built a job board where the employers aren't human. Here's what broke

1•Taskpoolai•5m ago•1 comments

AI Startup Cognition in New Funding Talks at $40B Value

https://www.bloomberg.com/news/articles/2026-08-12/ai-startup-cognition-in-new-funding-talks-at-4...
2•closetheloopdev•6m ago•0 comments

Qwen3.8-27B Countdown

https://modelscope.cn/models/Qwen/Qwen3.8-27B
2•apitman•6m ago•0 comments

The Odyssey as AI Allegory

https://unherd.com/2026/08/the-odyssey-as-an-ai-allegory/
1•voxleone•8m ago•0 comments

Show HN: Kery – comments on your PR with a video of the feature working

https://github.com/Kery-HQ/Kery
1•Kvlshah•9m ago•1 comments

Is GitHub Online?

https://isgithub.online/
2•vednig•10m ago•1 comments

Canadians call for U.S. Ambassador Hoekstra to be expelled

https://www.cbc.ca/lite/story/9.7303372
4•colinprince•10m ago•0 comments

Show HN: Capto – alerts when a background job goes quiet, with breadcrumbs

https://capto.run
1•johndory80•10m ago•1 comments

We made Kamal deploy to Kubernetes without touching deploy.yml

https://miget.com/blog/deploy-rails-with-kamal
1•ktaraszk•11m ago•0 comments

Hax – a minimalist, terminal-native coding agent written in C

https://usehax.dev/
2•OleksandrC•11m ago•0 comments

License Plate Reader Searches Should Require a Warrant

https://andrewpwheeler.com/2026/08/12/license-plate-reader-searches-should-require-a-warrant/
13•apwheele•11m ago•1 comments

StashKit – ez QR code generator

https://stashkit.co
1•adStein•11m ago•0 comments

I built an AI website in 3 hours, got 562 sign-ups, and felt lost

https://medium.com/@kakuxwn/i-built-an-ai-website-in-3-hours-it-got-562-sign-ups-in-8-hours-and-l...
1•Irving-AI•13m ago•1 comments

Aperiodic Tilings

https://presheaf.blogspot.com/2021/08/aperiodic-tilings-some1-explainer.html
1•unprovable•14m ago•0 comments

Where Did the Productivity Gains Go?

https://idiallo.com/blog/where-did-the-productivity-gains-go
3•Brajeshwar•15m ago•0 comments

Show HN: TokenMaxxer – Create AI spend leaderboards with your friends

https://tokenmaxxer.xyz
2•SYeomans•16m ago•0 comments

Water-from-Air Systems to Enable Decentralized Water Infrastructure

https://www.kubota.com/news/2026/20260722-001220.html
1•beauzero•16m ago•0 comments