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.

Show HN: Ledge – an open-source app that puts the MacBook notch to work

https://ledgeapp.dev/
2•egemertbalcik•1m ago•0 comments

Show HN: Comparing SF Bay Area trash rates

https://www.shasheene.com/bay-area-trash-rates/
1•shasheene•2m ago•0 comments

Crosscut – Drawing Dynamic Models

https://www.inkandswitch.com/crosscut/
1•andsoitis•4m ago•0 comments

The Power Grab of the AI Doomers

https://www.aipanic.news/p/the-power-grab-of-the-ai-doomers
1•theanonymousone•4m ago•0 comments

Hegseth warns prediction market bets warp military judgment, endanger troops

https://arstechnica.com/tech-policy/2026/10/pentagon-memo-on-prediction-markets-says-insider-bets...
1•pseudolus•4m ago•0 comments

Santree: Backlog, Shipped in Parallel

https://github.com/santree-ai/santree
1•nateb2022•10m ago•0 comments

Show HN: AI Data Footprint Tracker – audit what your AI tools hold, offline

https://theaioperatorstore.gumroad.com/l/womuyx
2•theaioperator•11m ago•0 comments

Kauldron: Modular, scalable library to train ML models

https://github.com/google-research/kauldron
2•nateb2022•12m ago•0 comments

Why the Rich Are Getting Richer and the Poor Are Further Removed from Prosperity

https://lusopt2016.blogspot.com/2026/10/a-grande-divisao-porque-e-que-os-ricos.html
3•inandout•13m ago•0 comments

It's a trap: testing coding agents on a language with surprising semantics

https://blog.csongor.co.uk/loom/
2•kcsongor•14m ago•0 comments

Show HN: Hycli – reverse-engineer websites into CLI and MCP tools for AI agents

https://github.com/Hybirdss/Hycli
1•hybirdss•14m ago•0 comments

Show HN: SQLite-on-object storage using GCS Appendable Objects

https://github.com/fatlotus/sqlite-on-gcs-rapid
1•fatlotus•15m ago•0 comments

Monarchs report their locations via cell phone

https://news.vt.edu/articles/2026/10/cmi-monarchs.html
2•geox•19m ago•1 comments

Hooke – Run agents on schedule or file changes with just one file

https://github.com/aditya-azad/hooke
1•styxnstones•19m ago•1 comments

NeuronDump: Open a local LLM as a 3D graph, cut parts, see what breaks

https://github.com/aymen94/NeuronDump
2•aymen1994•20m ago•0 comments

Google's privacy policy to use info shared through Personal Intelligence for ads

https://www.androidauthority.com/google-personal-intelligence-privacy-3727111/
2•smurda•22m ago•0 comments

Upwelling – Combining real-time collaboration with version control for writers

https://www.inkandswitch.com/upwelling/
1•andsoitis•22m ago•0 comments

Maker's Schedule, Manager's Schedule

https://paulgraham.com/makersschedule.html
1•andsoitis•22m ago•0 comments

Augmodo Raised Capital to Take Its Employee-CameraBadges Beyond the Retail Floor

https://startupfortune.com/augmodo-raised-21-million-to-take-its-camera-badges-beyond-the-retail-...
2•Baljhin•23m ago•2 comments

Eunice is almost here (William Gibson, Agency)

https://armincat.com/articles/eunice-is-almost-here
5•armcat•25m ago•0 comments

Geneva in 3D and real time with open data

https://geneva3d.ch/
2•sirpilade•32m ago•0 comments

Reclaim disk space with an AI agent

https://github.com/riza/ai-disk-cleanup
1•r1z4•34m ago•0 comments

Moderna and Merck say their mRNA cancer vaccine cut death, recurrence by 42%

https://arstechnica.com/health/2026/10/personalized-mrna-cancer-vaccine-cut-melanoma-death-recurr...
28•_Microft•36m ago•0 comments

"Study history thoroughly" Lithuanian woman to hammer and sickle waving students

https://www.baltictakes.com/italians-praise-lithuanian-womans-open-letter-encouraging-hammer-and-...
2•Teever•38m ago•1 comments

YOD4COINS – Offline-first transaction protocol with adaptive consensus

https://github.com/masondosibongakonke2-blip/yod4coins-core
1•sbongamasondo•44m ago•0 comments

Watching the Watchers

https://watchingthewatchers.github.io/watchingthewatchers/index.html
2•taubek•46m ago•0 comments

Settler attacks, demolitions and roadblocks: A week in the West Bank [video]

https://www.youtube.com/watch?v=lhRXrmg4_6M
7•computerex•47m ago•1 comments

What will computer chips look like in 2045? [Dwarkesh] [video]

https://www.youtube.com/watch?v=frYSOKvNiiE
1•JumpCrisscross•51m ago•0 comments

Against Against Handover

https://www.astralcodexten.com/p/against-against-handover
2•andyjohnson0•52m ago•0 comments

Why I Am a Programmer

https://www.alfie.wtf/programming/why-i-am-a-programmer.html
4•jruohonen•54m ago•3 comments