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: Pyra – a Python toolchain experiment inspired by uv and Bun

https://github.com/treyorr/pyra
1•trey-orr•1m ago•0 comments

Stop Burning Money on UGC Creators: Generate Viral Ads with AI in Seconds

https://ecomscalingpro.substack.com/p/how-i-went-from-0-to-scaling-my-shopify
2•Locas•4m ago•0 comments

Only 13% of emails are written by people

https://english.elpais.com/technology/2026-04-15/only-13-of-emails-are-written-by-people-and-more...
2•geox•5m ago•0 comments

Kevin Weil and Bill Peebles exit OpenAI as company continues to shed side quests

https://techcrunch.com/2026/04/17/kevin-weil-and-bill-peebles-exit-openai-as-company-continues-to...
2•spenvo•6m ago•0 comments

Cal.com OSS project goes closed source due to AI

https://cal.com/de/blog/cal-com-goes-closed-source-why
2•samspenc•9m ago•1 comments

Ryan Mather: My tips for getting the best results out of Claude Design

https://twitter.com/flomerboy/status/2045162321589252458
3•taubek•11m ago•0 comments

Show HN: Mind-OS – First free online AI dependency self‑assessment

https://iamalex-afk.github.io/human-os-patch-33-protocols/
2•bitkin_dev•11m ago•0 comments

The big business of survival bunkers

https://www.economist.com/united-states/2026/04/16/the-big-business-of-survival-bunkers
2•andsoitis•11m ago•0 comments

High Amplitude Disagreeableness

https://staysaasy.com/startups/2026/04/15/high-amplitude-disagreeableness.html
2•weltview•13m ago•0 comments

A simplified model of Fil-C

https://www.corsix.org/content/simplified-model-of-fil-c
3•aw1621107•13m ago•0 comments

Show HN: recover-pdfs is a tool for revovering all the deleted PDFs from a disk

https://codeberg.org/seanhly/recover-pdfs
2•seanhly•16m ago•0 comments

Official MCP Package for Dokploy

https://github.com/Dokploy/mcp
2•rob•16m ago•0 comments

DARPA Launches HARQ to Build Multi-Qubit Quantum Systems

https://thequantuminsider.com/2026/04/14/darpa-launches-harq-heterogeneous-quantum-architectures/
2•rbanffy•17m ago•0 comments

Australia's startup scene is thriving at last

https://www.economist.com/business/2026/04/16/australias-startup-scene-is-thriving-at-last
1•andsoitis•19m ago•0 comments

Opus 4.7: better or worse so far compared to 4.6? (don't forget to upvote)

https://strawpoll.com/Qrgewz4kRyp/results
1•firebaze•20m ago•2 comments

What Psychedelics Do to the Brain

https://www.nationalgeographic.com/health/article/psychedelics-brain-scans-drugs
2•gmays•21m ago•0 comments

Age verification app ready as EU moves to curb children's social media access

https://www.reuters.com/world/eu-age-verification-app-ready-europe-moves-curb-childrens-social-me...
2•rbanffy•21m ago•1 comments

Chinese groups call for global AI governance framework – Chinadaily.com.cn

https://www.chinadaily.com.cn/a/202604/14/WS69de4411a310d6866eb43650.html
3•rbanffy•22m ago•1 comments

A Buick GNX Merged with an El Camino to Create This 470-HP Masterpiece

https://www.thedrive.com/news/a-buick-gnx-merged-with-an-el-camino-to-create-this-470-hp-masterpiece
1•PaulHoule•24m ago•0 comments

Logfare.ai – Free LLM Inference. No Auth. No Limits

https://news.ycombinator.com/submit
1•ampdot•25m ago•0 comments

Beyond the Hype: Practical and Responsible Use Cases for Agentic AI Webinar

https://fusionauth.io/webinar/beyond-the-hype-practical-and-responsible-use-cases-for-agentic-ai
1•mooreds•26m ago•0 comments

Hacking the old HackerNews codebase

https://winfunc.com/research/hacking-the-old-hackernews-codebase
1•mufeedvh•30m ago•0 comments

Using a USB switch as a full KVM

https://luke.hsiao.dev/blog/display-switch/
2•lwhsiao•31m ago•0 comments

From SIMT to Systolic Part 2: A Kernel Author's Field Report

https://twitter.com/MainzOnX/status/2044804854020006223
1•matt_d•37m ago•0 comments

Synthetic Astrophysics Photometry

https://github.com/nialljmiller/SED_Tools
2•nialljmiller•38m ago•1 comments

Airbus Likely Provided Satellite Imagery of US Military Assets to China Before

https://chinaselectcommittee.house.gov/media/press-releases/airbus-space-likely-provided-satellit...
5•737min•39m ago•4 comments

Agentic Infrastructure

https://vercel.com/blog/agentic-infrastructure
3•gmays•39m ago•0 comments

Inside Notion

https://colossus.com/article/inside-notion/
2•herbertl•40m ago•0 comments

Witter Coin to host a $50k coin scavenger hunt in SF

https://www.wittercoin.com/
1•nvader•46m ago•0 comments

Worldmonitor: Real-time global intelligence dashboard

https://github.com/koala73/worldmonitor
2•quux0r•48m ago•0 comments