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

All Four Sentinel-1 Satellites Are Now Live

https://orbitaltoday.com/2026/05/03/all-four-sentinel-1-satellites-are-now-live-and-europes-earth...
1•cgeier•1m ago•0 comments

The Fog, a New Encrypted Cloud Platform, Rolls In

https://spectrum.ieee.org/the-fog-cloud-encryption
1•pseudolus•7m ago•0 comments

Inexpensive seafloor-hopping submersibles could stoke deep-sea science–and mini

https://www.technologyreview.com/2026/05/01/1136734/inexpensive-seafloor-hopping-submersibles-cou...
1•joozio•7m ago•0 comments

PixiJS was killing my video exports. So I rewrote the pipeline in Rust

https://tinyrec.io/blog/rust-video-exporter/
1•davidtranjs•9m ago•0 comments

Coffee doesn't just wake you up–a biological pathway illuminates health effects

https://sciencex.com/news/2026-04-coffee-doesnt-key-biological-pathway.html
1•pseudolus•9m ago•0 comments

Approaching Zero Bugs?

https://daniel.haxx.se/blog/2026/04/30/approaching-zero-bugs/
1•lionkor•9m ago•0 comments

Unauthorised [Claude Pro] Gift Purchases Made from My Account

https://old.reddit.com/r/claude/comments/1rwsduw/unauthorised_gift_purchases_made_from_my_account/
1•YeGoblynQueenne•10m ago•0 comments

Why I don't like the "staff engineer archetypes"

https://www.seangoedecke.com/staff-engineer-archetypes/
2•swah•14m ago•0 comments

SpaceChem 2012 Tournament

https://lparchive.org/SpaceChem-2012-Tournament/
1•tmtvl•16m ago•0 comments

Father hiring bouncer to keep kids from beating the dog due to phone addiction

https://www.msn.com/en-in/news/India/in-gujarat-bouncers-hired-to-watch-screen-addicts/ar-AA22fBfW
1•vivzkestrel•19m ago•1 comments

Agentic Coding Is Burning Me Out

https://0xsid.com/blog/agentic-coding-fatigue
1•mpweiher•20m ago•0 comments

Richard Sutton – Father of RL thinks LLMs are a dead end [video]

https://www.youtube.com/watch?v=21EYKqUsPfg
1•mpweiher•22m ago•0 comments

Company says nuclear fusion could power the grid – and soon

https://www.cnn.com/2026/04/30/climate/nuclear-fusion-real-world-electricity-grid
1•mpweiher•23m ago•0 comments

A 360° panorama generator that turns one sentence into a world

https://imagesv2.ai/
1•taoji1994•23m ago•0 comments

Systemd-manager-TUI: A TUI application for managing systemd services

https://github.com/Matheus-git/systemd-manager-tui
9•thunderbong•26m ago•1 comments

Re-Imagining GitHub/GitLab Actions

https://almostintuitive.com/docs/technical/reimagining-github-actions/
1•legothief•26m ago•0 comments

The Problem with Open Hardware [video]

https://www.youtube.com/watch?v=YLn4vnfchaE
1•Udo_Schmitz•30m ago•0 comments

Shares in Japanese toilet maker Toto soar on AI-related pivot

https://www.ft.com/content/38969e97-92e4-4066-a554-27274d32d545
1•JumpCrisscross•30m ago•0 comments

Names Are the First Thing You Read and the Last Thing You Remember

https://fagnerbrack.com/names-are-the-first-thing-you-read-and-the-last-thing-you-remember-b2b3f0...
1•fagnerbrack•31m ago•0 comments

Dependencies Are Replacing Knowledge

https://www.youtube.com/watch?v=99RgPS3Vu5M
1•birdculture•32m ago•0 comments

Becoming Unblockable

https://www.seangoedecke.com/unblockable/
2•fagnerbrack•32m ago•0 comments

Migrating 6000 React tests using AI Agents and ASTs

https://eliocapella.com/blog/ai-library-migration-guide/
1•fagnerbrack•32m ago•0 comments

Three full-stack data platforms in a weekend: Fabric and Azure AI Foundry

https://cubiczan.substack.com/p/how-we-shipped-3-full-stack-data
1•cubiczan•35m ago•0 comments

If society had a scorecard, what would be on it?

1•baptou12•37m ago•1 comments

Edible Plants Wiki

https://edibleplants.wikioasis.org/wiki/Main_Page
2•altilunium•45m ago•0 comments

Mnemory – Persistent memory for AI agents

https://github.com/fpytloun/mnemory
2•genunix64•49m ago•2 comments

Show HN: WebAssembly Interpreter in a Header

https://github.com/lifthrasiir/wah
1•lifthrasiir•49m ago•0 comments

Codeonix: Python task automation for your desktop – with AI, 14 triggers

https://codeonix.app
2•hassananayi•49m ago•1 comments

A month after being laid off, I wrote the story I needed to make sense of it

https://anushkakarmakar.substack.com/p/1-why-did-i-choose-to-run-that-marathon
1•thinkingkite•50m ago•0 comments

Why CFOs Need a Consensus Hardening Protocol for AI Decisions

https://cubiczan.substack.com/p/why-cfos-need-a-consensus-hardening
1•cubiczan•53m ago•0 comments