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.

Gleam gets source maps, 1.16.0

https://gleam.run/news/javascript-source-maps/
1•birdculture•1m ago•0 comments

A fun 5 minute take on AI in business

https://www.youtube.com/watch?v=nDL3Ch7Nz8c
1•lifeisstillgood•1m ago•0 comments

DeFi United calls on the world for $292M rsETH relief

https://defiunited.world/
1•kindkang2024•6m ago•0 comments

I wrote an async LSM storage engine in Rust

https://github.com/mehrdad3301/tiny-lsm
1•mehrdad__3301•8m ago•1 comments

Code Is Free Now. What's Left Is Us

https://p.ocmatos.com/blog/code-is-free-now-whats-left-is-us.html
1•pmatos•10m ago•0 comments

Agentic AI for Hormuz Shock Modelling

https://avkcode.github.io/blog/hormuz-shock.html
1•KyleVlaros•12m ago•0 comments

Elon Musk's near-daily online posts about race are turning off some fans

https://www.washingtonpost.com/technology/2026/04/24/musk-online-posts-race-whiteness/
3•vrganj•14m ago•0 comments

You don't have to be filthy rich to enjoy an airport shower

https://www.nytimes.com/2026/04/24/travel/airport-lounges-showers-beds.html
1•strogonoff•16m ago•0 comments

Markdown (Aaron Swartz: The Weblog)

http://www.aaronsw.com/weblog/001189
1•tahazsh•16m ago•0 comments

Vanishing Culture: A Report on Our Fragile Cultural Record

https://archive.org/details/vanishing-culture-2026
2•stared•17m ago•0 comments

SiGit Code: local-first coding agent

https://github.com/getsigit/sigit
1•kampak212•20m ago•0 comments

Show HN: StudyHall – A Virtual Workspace

https://studyhall.app
2•kornatzky•25m ago•0 comments

A Dose of Wisdom from Silicon Valley's Favorite Prophet

https://www.nytimes.com/2026/04/24/opinion/ezra-klein-podcast-stewart-brand.html
1•throwrg25•27m ago•0 comments

The Wind in the Willows and reading out loud

https://interconnected.org/home/2026/04/24/willows
1•Tomte•29m ago•0 comments

Why 'Atomic Habits' may not be working for you (2023)

https://www.krishnabharadwaj.info/why-atomic-habits-may-not-be-working-for-you/
1•n_e•31m ago•0 comments

What Is the Next Moat?

https://substack.com/profile/73011963-ming/note/c-248876715
1•dooku0721•33m ago•0 comments

South Africa's Draft Capital Flow Management Regulations, 2026

https://bitcoinke.io/2026/04/the-south-africa-capital-flow-management-draft-regulations-2026/
1•DavGit•33m ago•0 comments

•34m ago

Different AI Models All in One Platform

https://www.chatcomparison.ai/
2•chatcomparison•36m ago•0 comments

Rust Memory Management: Ownership vs. Reference Counting

https://slicker.me/rust/ownership_and_borrowing_vs_reference_counting.html
3•vinhnx•42m ago•0 comments

Caching Expensive Functions in Rust

https://kocharhook.com/post/5/caching-expensive-functions-in-rust/
3•vinhnx•42m ago•0 comments

What Happens When You Build an Inode-Style Vector in Rust

https://sot.dev/inode-style-vector-in-rust.html
2•vinhnx•43m ago•0 comments

FlipHTML5 Pdf Downloader

https://fliphtml5.aivaded.com
1•godsbee•49m ago•0 comments

APL – A Glimpse of Heaven

https://web.archive.org/web/20250316112937/https://archive.vector.org.uk/art10011550
1•tosh•50m ago•0 comments

Show HN: Kaniop – Kubernetes Operator for Kanidm

https://github.com/pando85/kaniop
2•pando85•51m ago•1 comments

Carnival of the Wicked

https://cinemasojourns.com/2026/04/24/carnival-of-the-wicked/
1•jjgreen•53m ago•0 comments

Well, this is embarrassing: The Lunar Gateway's primary modules are corroded

https://arstechnica.com/space/2026/04/well-this-is-embarrassing-the-lunar-gateways-primary-module...
3•taubek•55m ago•0 comments

NodeLLM: RubyLLM in JavaScript

https://github.com/node-llm/node-llm
1•earcar•57m ago•0 comments

Show HN: My self-custodial trading platform

https://www.aulico.com
1•kiosktryer•1h ago•0 comments

Show HN: GitHub Directory for Public APIs

https://github.com/public-apis/public-apis/blob/master/README.md
1•wasimsk•1h ago•1 comments