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.

Show HN: The Infinite Tolkien – endless narration of Middle-earth

http://infinitetolkien.com/
2•Jarlakxen•3m ago•0 comments

The Affordable Car Is Dead. What Happened?

https://www.nytimes.com/interactive/2026/04/13/opinion/affordable-car-cost.html
1•JKCalhoun•3m ago•0 comments

Show HN: Turn your favorite YouTube channels into a streaming experience

https://minitube.tv
2•renatoworks•7m ago•0 comments

Cursor Agent is Anthropic's Claude Code SDK running behind a local HTTP proxy

https://gist.github.com/jasonkneen/4c065df2d7a95610e4fd30c3e3398b17
1•freely0085•7m ago•0 comments

The hottest college major [Computer Science] hit a wall. What happened?

https://www.washingtonpost.com/technology/2026/04/13/computer-science-major-ai/
1•1vuio0pswjnm7•8m ago•0 comments

DuckLake v1.0

https://ducklake.select/2026/04/13/ducklake-10/
1•henrikhorluck•9m ago•0 comments

Trade for belief-based use drives hooded vultures to near-extinction in Benin

https://news.mongabay.com/2026/03/staggering-trade-for-belief-based-use-drives-hooded-vultures-to...
2•PaulHoule•11m ago•0 comments

Nuclear Salt-Water Rocket

https://en.wikipedia.org/wiki/Nuclear_salt-water_rocket
2•radeeyate•12m ago•0 comments

Microsoft begins removing Copilot from Notepad on Windows 11 but the AI persists

https://www.windowscentral.com/microsoft/windows-11/microsoft-finally-begins-removing-copilot-fro...
3•latexr•12m ago•0 comments

Do MCPs improve coding agent performance?

https://marginlab.ai/blog/do-mcps-improve-coding-agents-part-1/
6•jbatmargin•15m ago•0 comments

Servo is now available on crates.io

https://servo.org/blog/2026/04/13/servo-0.1.0-release/
2•ffin•15m ago•0 comments

Show HN: Formal – LLM-driven property checker, backed by Lean 4 and Mathlib

https://github.com/yamafaktory/formal
1•yamafaktory•16m ago•0 comments

EU and US near critical minerals deal to combat Chinese control

https://www.reuters.com/world/china/eu-us-near-critical-minerals-deal-combat-chinese-control-bloo...
2•giuliomagnifico•17m ago•0 comments

That Time Is Gone

https://marcobambini.substack.com/p/that-time-is-gone
1•marcobambini•18m ago•0 comments

Direct hardware capture of our GTA3 port running on the Dreamcast

https://twitter.com/falco_girgis/status/2043379700794327492
1•bpierre•19m ago•0 comments

How Netflix Uses Java (2026 Edition) [video]

https://www.youtube.com/watch?v=ucJTPda_zx0
1•jonbaer•19m ago•0 comments

Apple's AI chief John Giannandrea to exit next week

https://www.msn.com/en-in/money/general/apple-s-ai-chief-john-giannandrea-to-exit-next-week/ar-AA...
1•totalmarkdown•20m ago•0 comments

Show HN: Turn your cat into a Cubism Cat via an app

https://cubismcat.damjanski.com/
4•whatifbelief•21m ago•3 comments

Michigan 'digital age' bills pulled after privacy concerns raised

https://www.thecentersquare.com/michigan/article_7ca4e268-4a68-42fb-9042-f9d8604ebd7f.html
2•iamnothere•22m ago•0 comments

Pope says he has 'no fear of Trump administration' after president slams him

https://www.cnn.com/2026/04/12/politics/trump-pope-leo-criticism-hnk-intl
4•rawgabbit•22m ago•0 comments

Show HN: Loreo – Bot-free, 8MB AI meeting transcriber using Scribe v2

https://getloreo.com/
2•fnel•26m ago•1 comments

Show HN: A web newspaper that looks like a newspaper

https://myown.news/
2•auxten•27m ago•0 comments

I Don't Use Twitter or Microsoft. My Logs Disagree

https://the.unknown-universe.co.uk/privacy-security/my-logs-disagree/
2•TheIPW•27m ago•2 comments

The Life-and-Death Exhaustion of React

https://im.not.ci/what-a-react/
5•Nullpinter•29m ago•0 comments

The Outlaws: On the Road with a 1960s Biker Gang

https://flashbak.com/the-outlaws-on-the-road-a-1960s-biker-gang-482415/
1•bookofjoe•38m ago•0 comments

Commitgen – AI-generated Conventional Commit messages from your staged diff

2•TheAary•38m ago•0 comments

Android now stops you sharing your location in photos

https://shkspr.mobi/blog/2026/04/android-now-stops-you-sharing-your-location-in-photos/
11•edent•39m ago•0 comments

HumansMap, an interactive graph visualization of 3M+ Wikidata entities

https://humansmap.com
1•abstracthinking•40m ago•1 comments

The Global API Injection Pattern

https://www.elbeno.com/blog/?p=1831
2•ingve•41m ago•0 comments

Show HN: Digest – a Claude Code skill for your daily dev news digest

https://github.com/camilleroux/tech-digest
2•camilleroux•41m ago•0 comments