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.

Tupolev Tu-4

https://en.wikipedia.org/wiki/Tupolev_Tu-4
1•tosh•7s ago•0 comments

From 100 AI Tools to 4: My Prod Stack

https://www.decodingai.com/p/my-ai-production-tech-stack
1•pauliusztin•2m ago•0 comments

Capital in the 22nd Century

https://philiptrammell.substack.com/p/capital-in-the-22nd-century
1•bilsbie•2m ago•0 comments

My setup, and why tmux workflow is better than ever

https://raine.dev/blog/my-tmux-setup/
2•rane•3m ago•0 comments

V.H. Belvadi – Setting Up Zotero with WebDAV • (Venkatram Harish Belvadi)

https://vhbelvadi.com/zotero-webdav
1•janandonly•3m ago•0 comments

Archlinux.org Is Down

https://archlinux.org
1•LordRatte•5m ago•0 comments

One of America's Most Successful Experiments Is Coming to a Shuddering Halt

https://www.nytimes.com/2025/12/29/opinion/indian-americans-trump.html
1•duxup•6m ago•1 comments

Deep Dive into HLS: Why This 'Ancient' Protocol Still Rules the Streaming World

https://m3u8-player.net/en/blog/deep-dive-hls-protocol-architecture/
2•wangneo276•19m ago•0 comments

A Comment-Preserving Cabal Parser

https://blog.haskell.org/a-comment-preserving-cabal-parser/
2•Vosporos•19m ago•0 comments

Personalization from Matrix Factorization to LLMs

https://www.rudderstack.com/blog/future-of-personalization-matrix-factorization-llms/
1•rudderdev•21m ago•0 comments

Condom tax and cheaper childcare: China's plan to boost birth rates

https://www.bbc.com/news/articles/czxpk7r8w9yo
1•Qem•22m ago•0 comments

Rent a Mac M4 Mini and Access It via SSH from Linux

https://www.vincentschmalbach.com/rent-a-mac-m4-mini-and-access-it-via-ssh-from-linux/
1•vincent_s•24m ago•0 comments

Multimodal embeddings outperform text on visual docs but lose on pure text

https://agentset.ai/blog/multimodal-vs-text-embeddings
1•midamurat•24m ago•0 comments

Things Will Douglas Heaven Is Into

https://www.technologyreview.com/2026/01/02/1129409/will-douglas-heaven-el-estepario-siberiano-ed...
1•fleahunter•26m ago•0 comments

Ask HN: Who is using local LLMs in a production environment here?

2•Haeuserschlucht•28m ago•0 comments

Phybot M1: the electric humanoid robot that masters torque and defies gravity

https://inspenet.com/en/noticias/phybot-m1-the-electric-humanoid-robot-that-masters-torque-and-de...
1•akg130522•32m ago•0 comments

Show HN: Inference API that adapts to your SLA and quality constraints

https://models.exosphere.host/
5•spacemnstr42069•36m ago•0 comments

Jellyfin on ARM: It Works – Interfacing Linux

https://interfacinglinux.com/2025/07/28/jellyfin-on-arm-it-actually-works/
2•xbmcuser•37m ago•0 comments

High-Fidelity 3D Shape Generation

https://pku-yuangroup.github.io/UltraShape-1.0/
1•nkko•39m ago•0 comments

10 years of personal finances in plain text files

https://sgoel.dev/posts/10-years-of-personal-finances-in-plain-text-files/
26•wrxd•47m ago•6 comments

A small collection of text-only websites

https://shkspr.mobi/blog/2025/12/a-small-collection-of-text-only-websites/
4•danielfalbo•48m ago•1 comments

Calendar App Made in Zig

https://github.com/Mario-SO/cronos
1•mariodev__•52m ago•1 comments

IQuest Coders SWE bench scores included future commits

https://xcancel.com/xeophon/status/2006969664346501589
1•Alifatisk•53m ago•1 comments

2025 Letter

https://danwang.co/
2•cyb0rg0•53m ago•1 comments

Donald Knuth: The Internal Details of Tex82 (1982)

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

Attention Dynamics in HN: Power Laws, Preferential Attachment, and Sentiment

https://papers.ssrn.com/sol3/papers.cfm?abstract_id=5910263
2•7777777phil•1h ago•0 comments

Show HN: I built a minimal open-source CMS (FREE)

https://github.com/raulcanodev/zenex-cms
3•rawraul•1h ago•0 comments

ComfyUI-Wan22FMLF

https://github.com/wallen0322/ComfyUI-Wan22FMLF
1•handfuloflight•1h ago•0 comments

Why everything from your phone to your PC may get pricier in 2026

https://www.bbc.co.uk/news/articles/c1dzdndzlxqo
3•latein•1h ago•0 comments

Ask HN: What are your favorite aphorisms?

1•DataDaoDe•1h ago•2 comments