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•11mo 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•11mo 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•11mo 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: Run Python tools on rust agents

https://github.com/eggermarc/tools-rs
1•eggermarc•1m ago•0 comments

An exhaustive review of design tool hover areas

https://tldraw.dev/blog/a-review-of-design-tool-hover-areas
1•steveruizok•4m ago•0 comments

Show HN: Putting AI in the loop for embedded dev

https://www.electronicsconsult.com/blog/ai-assisted-hardware-in-the-loop-for-embedded-linux
1•OOHehir•4m ago•0 comments

Show HN: Pave – CLI for Managing Path

https://github.com/microsoft/pave
2•cpendery•5m ago•0 comments

NASA building the first nuclear reactor-powered spacecraft. How will it work?

https://www.technologyreview.com/2026/04/14/1135848/nasa-nuclear-powered-spacecraft/
1•gnabgib•5m ago•0 comments

A simple test-time method that beats Claude Mythos on Terminal-Bench

https://llm-as-a-verifier.notion.site
1•jackykwok•5m ago•1 comments

Synctera acquires compliance startup Cable

https://www.axios.com/pro/fintech-deals/2026/04/14/synctera-compliance-startup-cable-acquisition
1•thatdrew•5m ago•0 comments

Can Michigan Become the U.S. Drone Capital?

https://www.nytimes.com/2026/04/14/business/michigan-drone-capital.html
1•rmason•6m ago•1 comments

AgentFM – A single Go binary that turns idle GPUs into a P2P AI grid

https://github.com/Agent-FM/agentfm-core
1•s4saif•7m ago•0 comments

Demoralize Your Teams Quickly and Efficiently with Micromanagement (2010)

https://www.stellman-greene.com/2010/11/29/demoralize-your-teams-quickly-and-efficiently-with-mic...
2•downbad_•9m ago•1 comments

Whop: The Gen-Z Platform That Wants to Be Your Bank, Broker and Business

https://www.forbes.com/sites/boazsobrado/2026/04/10/one-stop-whop-the-gen-z-platform-that-wants-t...
1•rmason•9m ago•0 comments

GitHub gave webhook secrets away in webhook call

1•time4tea•10m ago•0 comments

Mississippi is running out of liquor, and it's the state's fault

https://www.washingtonpost.com/nation/2026/04/12/mississippi-liquor-sales-breakdown/
1•paulpauper•11m ago•1 comments

Mamdani Plans to Open City-Owned Grocery Store in East Harlem

https://www.nytimes.com/2026/04/12/nyregion/mamdani-city-owned-grocery-store-la-marqueta.html
4•paulpauper•11m ago•0 comments

Moonsteading

https://marginalrevolution.com/marginalrevolution/2026/04/moonsteading.html
1•paulpauper•12m ago•0 comments

The Great Pyramid of Giza and the Speed of Light

https://www.johndcook.com/blog/2026/04/09/pyramid-speed-of-light/
1•ibobev•14m ago•0 comments

Why Is France Moving from Microsoft Windows to Linux

https://qazinform.com/news/why-is-france-moving-from-microsoft-windows-to-linux-8887c4
2•losgehts•16m ago•0 comments

Aadam Jacobs Collection at the Live Music Archive: Free Audio

https://archive.org/details/aadamjacobs
1•LaSombra•18m ago•0 comments

YouTube Device Partner Summit 2026

https://www.collabora.com/news-and-blog/news-and-events/youtube-device-partner-summit-2026.html
2•losgehts•20m ago•0 comments

Show HN: Speech to Calorie Tracker

https://github.com/crocsarecool/nutrition-app
1•raunaqvaisoha•22m ago•1 comments

Event Order

https://www.quirksmode.org/js/events_order.html#link4
1•aziaziazi•23m ago•0 comments

RGC-Basic Update: Easy, Modern Basic in the Browser Has Sprites Now

https://retrogamecoders.com/rgc-basic-update-april-2026/
1•ibobev•23m ago•0 comments

Amiga XSysInfo v0.6

https://github.com/reinauer/xSysInfo/releases/tag/release_v0.6
1•doener•23m ago•0 comments

Generalist AI Doesn't Scale

https://www.daemonology.net/blog/2024-04-06-Generalist-AI-doesnt-scale.html
2•colinhb•23m ago•0 comments

Show HN: Quant Job Market Visualizer

https://quant.kadoa.com/
1•hubraumhugo•23m ago•0 comments

Crates.io Trusted Publishing

https://crates.io/docs/trusted-publishing
1•jcbhmr•24m ago•0 comments

Online ZPL Viewer

https://labelary.com/viewer.html
1•gregsadetsky•24m ago•0 comments

Accessible Modals: How to Build Dialogs That Don't Trap or Exclude Users

https://getaccessguard.com/posts/accessible-modals-how-to-build-dialogs-that-dont-trap-confuse-or...
1•chille87•24m ago•0 comments

Trusted access for the next era of cyber defense

https://openai.com/index/scaling-trusted-access-for-cyber-defense/
2•surprisetalk•25m ago•0 comments

Competition is not bad, its only bad if you have raised a lot of money

https://docsalot.dev/blog/why-im-building-yet-another-docs-product
1•fazkan•25m ago•0 comments