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.

Surveillance cameras will be required in all new cars by 2027

https://geekspin.co/surveillance-cameras-will-be-required-in-all-new-cars-by-2027/
1•allgirl•29s ago•1 comments

The System That Turned Paper Charts into Digital Medical Records

https://spectrum.ieee.org/ieee-milestone-digital-medical-records
1•sohkamyung•1m ago•0 comments

Ask HN: Good ASX Shares API?

1•prologic•4m ago•0 comments

AI's talent wars have a loyalty problem

https://www.axios.com/2026/08/03/ai-talent-wars-openai-google-meta-anthropic
1•gpi•5m ago•0 comments

Important Null Results in Development Economics

https://voxdev.org/topic/important-null-results-development-economics
1•barry-cotter•6m ago•0 comments

Apple TV+: Prestige Darling, Streaming Loser

https://www.statsignificant.com/p/apple-tv-prestige-darling-streaming
1•speckx•6m ago•0 comments

Deos Forecasting Have Room at the Top?

https://www.astralcodexten.com/p/does-forecasting-have-room-at-the
1•fbrusch•6m ago•0 comments

Why Japan Is Losing the AI Race It Helped Create

https://bytepith.com/article/why-japan-losing-ai-race-it-helped-create
1•khanhnguyen8386•7m ago•1 comments

Maine's highest court upholds Sunday hunting ban

https://www.bangordailynews.com/2024/03/28/state/state-police-courts/maine-sunday-hunting-ban-uph...
1•allgirl•8m ago•1 comments

1,150 journeys from books and films mapped on an interactive globe

https://readingmaps.com/
1•airesao•8m ago•0 comments

Dutch defense chief: F-35s can be jailbroken like iPhones

https://www.theregister.com/software/2026/02/18/dutch-defense-chief-f-35s-can-be-jailbroken-like-...
1•abdelhousni•8m ago•0 comments

Show HN: Vultrino – Credential proxy so AI agents never see the keys

https://github.com/FeirAI/vultrino
2•dz-codes•9m ago•0 comments

The U.S. Military Is Missing Six Nuclear Weapons (2021)

https://nationalinterest.org/blog/reboot/us-military-missing-six-nuclear-weapons-180032
1•downbad_•9m ago•0 comments

The End of the Age of Heroes

https://www.noahpinion.blog/p/the-end-of-the-age-of-heroes
1•pfdietz•10m ago•0 comments

Big Tech's Hidden Debt Problem (Patrik Boyle) [video]

https://www.youtube.com/watch?v=NufJ7g63KSY
1•u1hcw9nx•10m ago•0 comments

Agentxray – an MCP server that finds where your coding agent wasted tokens

https://github.com/mertdotdev/agentxray
1•Mert7nr•10m ago•0 comments

August 12 Solar eclipse map

https://eclipsemap.xyz/#4.24/48.85/4.63
1•speckx•12m ago•0 comments

The Queen's Duck

https://bwiggs.com/notebook/queens-duck/
1•hosteur•12m ago•0 comments

Hiring More Developers Is Often the Wrong Answer [video]

https://www.youtube.com/watch?v=Oig8ZNHUksQ
2•Harish_0089•13m ago•0 comments

The Oslo Report

https://en.wikipedia.org/wiki/Oslo_Report
2•Bluestein•16m ago•0 comments

We built a realtime system for responsive voice AI in six months

https://openai.com/index/continuous-voice-interaction-with-gpt-live/
2•Sean-Der•17m ago•0 comments

How AI Can Make Design Work Appear Prematurely Resolved

https://commonedge.org/how-ai-can-make-design-work-appear-prematurely-resolved/
2•surprisetalk•17m ago•0 comments

Reverse Engineering Google Slides

https://theopenpresenter.com/blog/reverse-engineering-google-slides/
3•michaelsalim•18m ago•0 comments

Static vs. Dynamic vs. Continuous Batching in LLM Inference

https://machinelearningmastery.com/static-vs-dynamic-vs-continuous-batching-in-llm-inference/
2•eigenBasis•18m ago•0 comments

JSON Is Lying to You

https://blog.gaborkoos.com/posts/2026-08-03-Your-JSON-Is-Lying-to-You/
2•birdculture•18m ago•0 comments

Sharing a persistent browser QA workflow for OpenCode

https://github.com/mdc-git/opencode-playwright-interactive
1•mdc-git•20m ago•0 comments

Travel Chaos Follows E.U.'S New Passport Controls

https://www.nytimes.com/2026/08/04/world/europe/eu-passport-control-chaos.html
1•rawgabbit•21m ago•1 comments

Beyond the Final Prompt: How Conversation Context Changes AI Answers

https://arxiv.org/abs/2608.02556
1•bentannenbaum•23m ago•0 comments

Scaling pain arrives earlier when AI writes the code

https://medium.com/@rotbart/product-scale-fit-in-ai-land-fdcfae083efb
1•rotbart•25m ago•0 comments

Opinionated, Expressive, Mac-Assed: Software That Feels at Home on the Mac

https://thesis.simonlou.com
1•simonlou•25m ago•0 comments