frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

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•8mo 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•8mo 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•8mo 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.

Hypnosis with Aphantasia

https://aphantasia.com/article/stories/hypnosis-with-aphantasia
1•danhite•1m ago•0 comments

You may just be renting your car even if you have a loan

https://www.washingtonpost.com/business/2026/01/17/7-year-car-loan-affordability-underwater/
1•_tk_•2m ago•0 comments

The Layers of the Web [video]

https://www.youtube.com/watch?v=ll1e8cYx3do
1•DavidPiper•6m ago•0 comments

Demystifying Evals for AI Agents

https://www.anthropic.com/engineering/demystifying-evals-for-ai-agents
1•handfuloflight•6m ago•0 comments

Tribute to Roko's basilisk: How to write gen AI systems

https://lorentz.app/blog-item.html?id=writing-ai-systems-2026
1•baalimago•14m ago•0 comments

Holographik: Typography Inspiration – December 2025

https://medium.com/holographik/typography-inspiration-december-2025-da800922b4c5
1•handfuloflight•15m ago•0 comments

Bigocheck: Empirical complexity analysis for Python (Zero Ops)

https://github.com/adwantg/bigocheck
1•gadwant•15m ago•1 comments

Best approach for generating SVG graphics with LLMs?

2•huly11•22m ago•0 comments

From Code Foundation Models to Agents and Applications

https://arxiv.org/abs/2511.18538
1•tamnd•23m ago•0 comments

The Web's Grain (2015)

https://frankchimero.com/blog/2015/the-webs-grain/
1•tosh•26m ago•0 comments

The Discourse Is a Distributed Denial-of-Service Attack

https://www.joanwestenberg.com/the-discourse-is-a-distributed-denial-of-service-attack/
1•tardibear•27m ago•0 comments

Show HN: Qrystal Uplink – External watchdog for IoT fleets, setup in <5 mins

https://uplink.qrystal.partners/api/auth/polar/webhooks
1•mikayelgr•29m ago•0 comments

Beyond the Machine

https://frankchimero.com/blog/2025/beyond-the-machine/
1•tosh•29m ago•0 comments

New York City is being recreated at 1:1 scale inside Minecraft

https://www.tomshardware.com/video-games/pc-gaming/new-york-city-recreated-at-1-1-scale-inside-mi...
4•NewCzech•30m ago•0 comments

Image-to-text working out of the box

https://github.com/rene-ajm-veerman/nicerApp-WebOS-5.10.z/blob/main/NicerAppWebOS/scripts.mainten...
1•rene-veerman•31m ago•0 comments

Friend's Guide to Agentic Engineering

https://abrown.blog/posts/a-friends-guide-to-agentic-engineering/
1•AWebOfBrown•33m ago•0 comments

Intelsat 708 02-15-1996 [video]

https://www.youtube.com/watch?v=DZTFgZ9zl74
1•schmuckonwheels•33m ago•0 comments

Show HN: LinxMemo – Local-first personal CRM for parents

https://testflight.apple.com/join/9UVTzxtP
2•breezefox•35m ago•1 comments

Work Is No Longer Linear

https://elliotbonneville.com/work-is-not-linear/
1•elliotbnvl•38m ago•0 comments

Implementing Dependent Data and Codata Types with Implicit Arguments (2025)

https://programming-journal.org/2025/10/19/
1•mpweiher•38m ago•0 comments

Trump Says He Won't Be Running for President

https://www.npr.org/sections/thetwo-way/2011/05/16/136361894/trump-says-he-wont-be-running-for-wh...
2•vednig•44m ago•1 comments

Air traffic control: the IBM 9020

https://computer.rip/2026-01-17-air-traffic-control-9020.html
2•todsacerdoti•44m ago•0 comments

Typesetter – a minimalist, local-first Typst editor

https://codeberg.org/haydn/typesetter
1•Curiositry•47m ago•0 comments

Show HN: LibreblogRSS – a simple Android RSS reader that mimics social timelines

https://github.com/LibreBlogOrg/LibreblogRSS
2•libreblog•49m ago•0 comments

Ask HN: Idea Sunday

1•chistev•50m ago•0 comments

Flint's Paper Batteries Are Here: Now in Production, Now Available

https://finance.yahoo.com/news/flints-paper-batteries-now-production-180000802.html
2•rguiscard•55m ago•0 comments

Show HN: Qventory – inventory and sales and fulfillment tracking for resellers

https://qventory.com/
1•noakmilo90•58m ago•0 comments

Launching the Handmade Software Foundation

https://handmade.network/blog/p/9106-welcome_to_2026%2521#30623
27•DeathArrow•59m ago•12 comments

Music of the Streets of Rage Series

https://en.wikipedia.org/wiki/Music_of_the_Streets_of_Rage_series
1•nomilk•1h ago•0 comments

Domain-Availability-MCP

https://twitter.com/fullstacktard/status/2012780828414341314
2•fullstacktard•1h ago•0 comments