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

Offline 23 Hours a Day

https://sive.rs/off23
1•tinkelenberg•2m ago•0 comments

Google just killed my project

1•othmanosx•5m ago•0 comments

AI Web Search and Scraping

https://github.com/larryste1/web-search-tool
1•larryste•8m ago•1 comments

Geo-Strategy #8: The Iran Trap

https://www.youtube.com/watch?v=7y_hbz6loEo
3•bentcorner•9m ago•0 comments

Zed: We Overhauled Our Terms of Service and Privacy Policy

https://zed.dev/blog/terms-update
2•scblzn•10m ago•0 comments

Unity Asset Store de-listing assets originating from China

https://cdn.mc-weblink.sg-mktg.com/weblink/MTc3MjQ5NzU4M3xLd24xRXlUcGRaR3BrbjNGSjYwRlFSZDViaWJwX2...
4•starkparker•11m ago•0 comments

Show HN: ThinqWith – generate one-click AI prompts for your readers

https://thinqwith.me
1•nirajswami•11m ago•0 comments

Claude Code 3 layer config

https://doneyli.substack.com/p/the-3-layer-claude-code-configuration
1•hn247dj•12m ago•0 comments

Show HN: DevReel – A virtual gym for practical software engineering challenges

https://www.devreel.tech/
1•giota_dev•13m ago•0 comments

Agentic SDLC, my approach to high-quality agentic development

https://github.com/rmzi/portable-dev-system
1•rmzi-a•14m ago•1 comments

Call a Human MCP

https://github.com/nishantmodak/call-a-human-mcp
1•nishantmodak•15m ago•1 comments

Show HN: Grantex–Open authorization protocol for AI agents(IETF draft submitted)

1•mishrasanjeev•17m ago•0 comments

The HFS AI Trust Curve: AI isn't failing leadership is

https://www.horsesforsources.com/ai-trust-curve_022726/
1•mooreds•20m ago•0 comments

CloakShare – Open-source API for secure document and video sharing

https://cloakshare.dev/
1•GrimLabs•20m ago•1 comments

Loneliness Is for Cowards

https://www.wsj.com/opinion/free-expression/loneliness-is-for-cowards-2c85af34
1•regera•23m ago•1 comments

Winners of the smartphone boom think they know what the next big tech gadget is

https://www.cnn.com/2026/03/02/business/tech-gadgets-smartphone-glasses
1•breve•23m ago•0 comments

Clawed – On Anthropic and the Department of War

https://www.hyperdimensional.co/p/clawed
1•huey77•23m ago•0 comments

Red Hat introduces its first out and out AI platform

https://thenewstack.io/red-hat-introduces-its-first-out-and-out-ai-platform/
1•CrankyBear•23m ago•0 comments

Nodebox, a free open-source Webcontainer alternative

https://scelar.com/blog/introducing-nodepod
1•R1ck404•24m ago•1 comments

Photons that aren't actually there influence superconductivity

https://arstechnica.com/science/2026/02/photons-that-arent-actually-there-influence-superconducti...
3•ViktorRay•25m ago•0 comments

The Case for Apolitical Tech Spaces

https://minor.gripe/posts/2026-03-02-the_case_for_apolitical_tech_spaces/
1•ai_critic•27m ago•0 comments

How long do electric vehicle batteries last?

https://www.npr.org/2026/03/02/nx-s1-5706658/electric-vehicle-battery-lifespan
1•toomuchtodo•28m ago•1 comments

Fix broken link in request-changes blog post using public sample-calculator PR

https://gitauto.ai/blog/how-to-request-changes
1•nishiohiroshi•28m ago•0 comments

How a pacemaker for the brain could help Parkinson’s patients

https://www.cnn.com/health/how-a-pacemaker-for-the-brain-could-help-treat-parkinsons-spc
1•breve•32m ago•0 comments

GH Action analyzes changes, checks behavior change and generates Playwright test

https://github.com/autospec-ai/playwright
1•cport1•33m ago•0 comments

France Floats Nuclear Deployment Across Europe

https://www.wsj.com/world/europe/france-floats-nuclear-deployment-across-europe-056a5cbc
4•JumpCrisscross•35m ago•2 comments

BlackTape – open-source music discovery built on MusicBrainz and Discogs

4•Blacktape•35m ago•0 comments

Crypto Is Pointless. Not Even the White House Can Fix That.

https://www.nytimes.com/2026/02/26/opinion/crypto-trump-bitcoin-clarity-genius.html
5•bookofjoe•36m ago•1 comments

What every CS major should know

https://matt.might.net/articles/what-cs-majors-should-know/
2•azhenley•36m ago•0 comments

Show HN: OctopusGarden – An autonomous software factory (specs in, code out)

https://github.com/foundatron/octopusgarden
3•foundatron•39m ago•4 comments