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

The Mythology of Conscious AI

https://www.noemamag.com/the-mythology-of-conscious-ai/
1•hardmaru•1m ago•0 comments

The Sword Blade Bank

https://tontinecoffeehouse.com/2020/09/28/the-sword-blade-bank/
1•dmonay•4m ago•0 comments

Short Supply: Root Causes of Declining Propensity for US Military Service

https://www.cnas.org/publications/reports/short-supply
1•toomuchtodo•8m ago•1 comments

OpenAI acquires health-care technology startup Torch

https://www.cnbc.com/2026/01/12/open-ai-torch-health-care-technology.html
1•gmays•8m ago•0 comments

AI Voice Elements

https://vercel.com/changelog/ai-voice-elements
2•handfuloflight•13m ago•1 comments

Rickroll in Rustc

https://github.com/rust-lang/rust/blob/main/tests/ui/attributes/check-cfg_attr-ice.rs
1•todsacerdoti•14m ago•0 comments

Failed part on UPS plane that crashed in KY failed 4x on other planes previously

https://apnews.com/article/ups-louisville-plane-crash-ntsb-md11-6d4cfff0c3937f847a3ac39809e31c11
3•toomuchtodo•18m ago•1 comments

China's customs agents told Nvidia's H200 chips are not permitted, sources say

https://www.reuters.com/world/china/chinas-customs-agents-told-nvidias-h200-chips-are-not-permitt...
1•donohoe•21m ago•0 comments

How to Ask Questions the Smart Way

http://www.catb.org/esr/faqs/smart-questions.html
1•thunderbong•21m ago•0 comments

Immigration agents shoot man in Minneapolis as tensions in city run high

https://www.theguardian.com/us-news/2026/jan/14/minnesota-immigration-officers-shovel-attack
2•SilverElfin•21m ago•1 comments

Battery is about to change the world in 3 months, or make this guy a fool

https://electrek.co/2026/01/14/batter-about-change-world-or-make-this-guy-fool/
2•topher515•22m ago•1 comments

With this tool, you can enjoy NAS functionality even without a NAS

https://quicksend.chat/
1•foodhome•23m ago•0 comments

String Theory Can Now Describe a Universe That Has Dark Energy

https://www.quantamagazine.org/string-theory-can-now-describe-a-universe-that-has-dark-energy-202...
1•jnord•24m ago•0 comments

DeepSeek Founder Liang's Funds Surge 57% as China Quants Boom

https://www.bloomberg.com/news/articles/2026-01-12/deepseek-founder-liang-s-funds-surge-57-as-chi...
1•gmays•28m ago•0 comments

Thesys: Generative UI Framework

https://www.thesys.dev
1•handfuloflight•28m ago•0 comments

The URL shortener that makes your links look as suspicious as possible

https://creepylink.com/
20•dreadsword•34m ago•5 comments

Show HN: Claude Code Remote – Access Claude Code from Your Phone

https://github.com/yazinsai/claude-code-remote
2•yazinsai•39m ago•2 comments

Show HN: Dreamlux – Free AI video generator with no watermarks │

https://dreamlux.ai
1•zz5759•40m ago•1 comments

Show HN: Satya – Offline-first AI tutor for rural schools (Phi-1.5 and RAG)

https://github.com/aa-sikkkk/satya
1•aashikbaruwal•41m ago•0 comments

The US has officially started selling Venezuelan oil

https://www.cnn.com/2026/01/14/business/venezuelan-oil-us-sell-trump
2•vinnyglennon•46m ago•0 comments

Interactive Map of Over 300k Livestock Brands

https://ranchbrandsearch.com/brand/map
1•carshodev•46m ago•0 comments

52 Places to Go in 2026

https://www.nytimes.com/interactive/2026/travel/places-to-travel-destinations-2026.html
1•ossa-ma•50m ago•1 comments

I Spent 5 Years Digging into an Abandoned Mine and Got in [video]

https://www.youtube.com/watch?v=94vMv7hCKYo
1•latchkey•51m ago•0 comments

Why your coding agent keeps undoing your architecture

https://mahdiyusuf.com/why-your-coding-agent-keeps-undoing-your-architecture/
1•googletron•54m ago•0 comments

The Third Audience

https://dri.es/the-third-audience
2•geerlingguy•57m ago•0 comments

Humancorp

https://humancorp.xyz
2•manavpanchal•57m ago•0 comments

json-render

https://github.com/vercel-labs/json-render
1•gfortaine•1h ago•1 comments

Visualize your Claude Code usage statistics

https://claude-stats.vercel.app/
2•vklmn•1h ago•0 comments

Show HN: Tickk – Voice productivity app- local NLP, no cloud, no AI, no signup

https://tickk.app/
1•alphatesterguy•1h ago•0 comments

Dockerfile.sbom

https://rearmhq.com/blog/2026-01-14-dockerfile-sbom/
1•taleodor•1h ago•0 comments