frontpage.
newsnewestaskshowjobs

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•1y 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•1y 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•1y 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.

Seven Perfect Shuffles Randomize a Deck of Cards. But How Many Sloppy Ones?

https://www.quantamagazine.org/seven-perfect-shuffles-randomize-a-deck-of-cards-but-how-many-slop...
1•jnord•4m ago•0 comments

Why standard WER fails for Indian languages

https://www.sarvam.ai/blogs/evaluating-indian-language-asr
1•laxmena•4m ago•0 comments

Vlk: MemAct for the IDE – persistent working memory agents can prune themselves

https://github.com/aranajhonny/vlk
1•akatsutki•7m ago•0 comments

Taxonomy of the Occlupanida (parasitoids on bread bag tags)

https://www.horg.com/horg/?page_id=921
2•beatthatflight•10m ago•0 comments

StackOverflow closed my OpenClaw and paperclipAI integration q. as "irrelevant"

https://stackoverflow.com/questions/79958607/how-do-i-view-server-logs-from-paperclipai-being-run...
2•khelavastr•10m ago•0 comments

License Plate Cameras Will Soon Track Phones, Wearables, Infotainment and Pets

https://www.thedrive.com/news/license-plate-cameras-will-soon-track-phones-wearables-infotainment...
4•xoxxala•11m ago•0 comments

Clojure Hosted on Go

https://github.com/glojurelang/glojure
2•dnlo•15m ago•0 comments

Show HN: ML condenses billions of logs into a tiny snapshot your LLM can debug

https://github.com/Rocketgraph/rocketgraph
2•kvaranasi_•16m ago•0 comments

A Secret Microsoft Tool Fixed Windows Performance [video]

https://www.youtube.com/watch?v=jH0BYAkPj78
2•tambourine_man•17m ago•0 comments

Build in Lovable, from Claude

https://xcancel.com/Lovable/status/2067326328110494129
1•doener•18m ago•0 comments

Tensordyne is making AI compute more efficient using logarithms

https://www.zach.be/p/tensordyne-is-making-ai-compute-more
2•hasheddan•21m ago•0 comments

The Free and Open Web Is Under Attack at the IETF

https://www.eff.org/deeplinks/2026/06/free-and-open-web-under-attack-ietf
5•hn_acker•25m ago•0 comments

The (real) dead economy theory

https://pluralistic.net/2026/06/17/its-the-stupid-economy-stupid/
8•hn_acker•26m ago•0 comments

The No Fakes Act Could Silence Satire, Commentary, and News

https://www.eff.org/deeplinks/2026/06/no-fakes-act-could-silence-satire-commentary-and-news
4•hn_acker•27m ago•0 comments

Salvager, Undo for AI agents that edit your files

https://www.salvager.sh/
1•gorkamb•29m ago•0 comments

Show HN: Criterion Closet as a website – pull any of 1,247 films off the shelf

https://the-criterion-closet.vercel.app/
2•olievans•30m ago•1 comments

Hydra – a one-line Gradle RASP that seals app secrets until the device is clean

https://github.com/iamjosephmj/hydra
1•iamjosephmj1•32m ago•0 comments

Treating Agent Reasoning as a Span

https://forestmars.substack.com/p/ai-agents-run-to-completion
1•polynomial•34m ago•1 comments

Compiles any HuggingFace model into a single persistent megakernel

https://twitter.com/Akashi203/status/2067379010762338681
2•OsamaJaber•35m ago•0 comments

Apple Reveals Plans to Raise Prices

https://www.wsj.com/tech/apple-reveals-plans-to-raise-prices-1fbcc1d4
4•mfiguiere•35m ago•0 comments

Show HN: Righthand – Autonomous AI assistants with skills, goals, and a CLI

https://www.rigthhand.ai
2•notanaiagent•37m ago•0 comments

Vyrse – Social Bible reader for skeptics

https://vyrse.app
1•StudioHeat•38m ago•0 comments

Play Snake in Your Favicon

https://franciscouzo.github.io/favisnake/
1•toilet•40m ago•0 comments

China: Free AI for developing world; G7: who gets access to American models?

https://thenextweb.com/news/china-ai-global-cooperation-vs-g7-export-controls
1•skeledrew•43m ago•0 comments

Show HN: WaylandClientKit – a Swift Wayland client substrate for Linux

https://github.com/conxlgtm/WaylandClientKit
3•Nocerg•44m ago•0 comments

List of video game console color palettes

https://en.wikipedia.org/wiki/List_of_video_game_console_palettes
2•kibwen•46m ago•0 comments

HandoffKit: Coordinate agents by passing messages, not sharing memory

https://platformpilot.ai/blog/open-sourcing-handoffkit
2•ricardo-larosa•49m ago•1 comments

America's bull market has entered its manic phase

https://www.economist.com/finance-and-economics/2026/06/16/americas-bull-market-has-entered-its-m...
2•andsoitis•50m ago•1 comments

BytePack: Header-only message serialization library for C++17

https://github.com/alkonosst/BytePack
1•sohkamyung•51m ago•0 comments

Border Enforcement Does Affect American Workers' Wallets

https://www.wsj.com/opinion/border-enforcement-does-affect-american-workers-wallets-cc45d6b0
2•PKop•52m ago•0 comments