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.

Session-roam – Resume Claude Code conversations from any machine via Syncthing

https://github.com/VirelNode/session-roam
1•JDaily•33s ago•1 comments

Conservationists teach young regent honeyeaters how to sing their unique song

https://www.abc.net.au/news/2026-04-05/saving-the-regent-honeyeaters-love-song/106515178
1•bryanrasmussen•1m ago•0 comments

I put my cognitive field based AI's runtime on GitHub

https://github.com/AuraCoreCF/AuraCoreCF.github.io/tree/main/AuraRuntime
1•AuraCoreCF•2m ago•1 comments

What's in a name? Moderna's "vaccine" vs. "therapy" dilemma

https://www.technologyreview.com/2026/04/10/1135631/whats-in-a-name-modernas-vaccine-vs-therapy-d...
1•joozio•4m ago•0 comments

Crying Salute Emoji

https://github.com/achristmascarl/crying-salute
1•achristmascarl•6m ago•1 comments

Your Startup Is Probably Dead on Arrival

https://steveblank.com/2026/03/17/your-startup-is-probably-dead-on-arrival/
1•tie-in•7m ago•0 comments

Pulsar – Lightweight cross-platform GUI for FFmpeg and yt-dlp, built with Tauri

https://github.com/FuzjaJadrowa/Pulsar
1•FuzjaJadrowa•13m ago•1 comments

VC Money and Israel Outrage Derailed a Hot Hollywood Startup

https://www.wsj.com/business/media/how-vc-money-and-israel-outrage-derailed-a-hot-hollywood-start...
1•RestlessMind•15m ago•1 comments

Moooooonitoring the Cow.txt Herd

https://moooo.farm/
2•pabs3•16m ago•0 comments

Is Numble the first AI-proof game?

https://medium.com/@shauntrennery/is-numble-the-first-ai-proof-game-b0de302d2ed0
1•shauntrennery•16m ago•0 comments

I collected startup ideas. It changed how I think about ideas completely

1•vibecoder21•17m ago•0 comments

A Secret Grand Jury Is Seeking the Identity of a Reddit User Who Criticized ICE

https://www.jezebel.com/grand-jury-reddit-user-identity-ice-criticism-freedom-of-speech-first-ame...
1•HotGarbage•17m ago•0 comments

A3: Kubernetes for autonomous AI agent fleets

https://www.leonidasr.com/posts/a3-kubernetes-for-autonomous-ai-agent-fleets/
3•leonidas1712•24m ago•0 comments

Ramp Up AI Skills

https://soundcloud.com/robenfarzad/deepali-vyas-the-elite
1•nytesky•24m ago•1 comments

Trump administration releases new renderings of 'Arc de Trump' [pdf]

https://www.cfa.gov/system/files/meeting-materials/1-CFA-16APR26-1-EOP_DOI_Arch-pres%20%5BApr9%5D...
1•fittingopposite•26m ago•0 comments

How I made the most intrusive Firefox extension

https://www.arnevogel.com/firefox-permissions/
1•ArneVogel•30m ago•0 comments

Neural Computer

https://metauto.ai/neuralcomputer/
1•georgestrakhov•31m ago•0 comments

Show HN: RelayFreeLLM — Free AI Gateway with Auto-Failover (Updates)

https://github.com/msmarkgu/RelayFreeLLM
2•markfront•33m ago•0 comments

Code Democracy the Big Lie

https://medium.com/@aatel.license/ai-has-democratized-coding-just-not-for-everyone-555d2767fce8
3•aatel-license•33m ago•0 comments

Show HN: Provepy – A Python decorator that proves your code using Lean and LLMs

1•spaccy05•33m ago•0 comments

Crawl Code – because prompting was a text adventure

https://github.com/machinarii/crawl-code/
3•datalater•37m ago•0 comments

Even Hungary's skewed elections might not save Viktor Orban

https://economist.com/graphic-detail/2026/04/09/even-hungarys-skewed-elections-might-not-save-vik...
1•andsoitis•38m ago•0 comments

Tesla's supervised self-driving software gets Dutch okay, first in Europe

https://www.reuters.com/business/teslas-self-driving-software-gets-dutch-go-ahead-boost-eu-ambiti...
10•nsoonhui•44m ago•4 comments

Show HN: Pardonned.com – A searchable database of US Pardons

3•vidluther•47m ago•0 comments

Hindsight – A design spec for self-improving LLM agents

https://github.com/anitiue/Hindsight
2•anitial•56m ago•0 comments

The Relationship Between Two People Is Not Located in Either Person

https://substack.com/home/post/p-193689282
3•problemist•59m ago•0 comments

Show HN: Dux, a TUI Agent Multiplexer

https://github.com/patrickdappollonio/dux
2•pdappollonio•1h ago•1 comments

Google "6-7"

https://www.google.com/search?hl=en&q=6%207
2•afshinmeh•1h ago•1 comments

go-libghostty: Go bindings for libghostty-vt

https://github.com/mitchellh/go-libghostty
1•doppp•1h ago•0 comments

Phaser 4

https://www.youtube.com/watch?v=XLhi9IW0rxg
1•doppp•1h ago•0 comments