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.

Built 1,300 free calculators that run client-side

https://practicalwebtools.com
1•cobrapi•1m ago•1 comments

Show HN: Chat app with Hubot – hubot-chat

https://github.com/hubot-friends/hubot-chat
1•joeyguerra•4m ago•0 comments

Install.md: Innovation or Reinventing Gherkin?

https://docsalot.dev/blog/install-md-vs-getting-started-guides
2•fazkan•8m ago•0 comments

From Old English to Modern American English in One Monologue [video]

https://www.youtube.com/watch?v=842OX2_vCic
2•Teever•11m ago•0 comments

Tell HN: The current top story on R/news is LLM slop

https://old.reddit.com/r/news/
3•perihelions•11m ago•1 comments

American Closed Source vs. Chinese Open Source: A False Dichotomy

https://senteguard.com/blog/#post-h2V9GtUh5Xts9NTzH4zu
1•djwide•12m ago•1 comments

How criminals spread their ill-gotten gains to everyday business ventures

https://cyberscoop.com/what-cybercriminals-do-with-their-money-sophos/
2•Gaishan•15m ago•0 comments

HDMI 2.1 VRR support in AMDGPU via non-encumbered party

https://www.phoronix.com/news/AMDGPU-HDMI-Gaming-Features
3•snvzz•15m ago•0 comments

ARK's Price Target for Tesla in 2025 (2021)

https://www.ark-invest.com/articles/valuation-models/tesla-price-target-2
2•kklisura•17m ago•1 comments

3D printing my laptop ergonomic setup

https://www.ntietz.com/blog/3d-printing-my-laptop-ergonomic-setup/
1•kurinikku•18m ago•0 comments

Scandal: Various Organizations Leaked America's Biggest Math Test

https://tatler.lakesideschool.org/5784/showcase/scandal-how-various-organizations-leaked-americas...
1•paulpauper•19m ago•0 comments

Europe Contends with a Big New Threat: The U.S.

https://www.wsj.com/world/europe/europe-contends-with-a-big-new-threat-the-u-s-b76d26eb
3•doener•20m ago•1 comments

Batoto: Closing One Chapter

https://old.reddit.com/r/Batoto/comments/1qhgm2t/closing_one_chapter/
1•ValentineC•20m ago•0 comments

FelPawns – My first attempt to turn RimWorld into AI-Dungeon

https://captain-fel.itch.io/felpawns
1•walterfreedom•25m ago•2 comments

Vivo Time

https://lopespm.com/product/2026/01/19/vivotime.html
2•lopespm•25m ago•0 comments

Share Your Reminders to Yourself

https://herbertlui.net/share-your-reminders-to-yourself/
1•herbertl•26m ago•0 comments

Four Years of War in One Field – WW1 Documentary (No AI) [video]

https://www.youtube.com/watch?v=wrwUDqdW0Ds
1•vinnyglennon•26m ago•0 comments

OpenAI: A business that scales with the value of intelligence

https://openai.com/index/a-business-that-scales-with-the-value-of-intelligence/
1•PankajGhosh•28m ago•0 comments

Ask HN: How would you design for this scale today?

4•phs318u•29m ago•0 comments

Render meshes using realtime traditionally hand-painted textures

https://github.com/Rink37/BOBJECT_engine
1•hydrolox•29m ago•0 comments

The catch-22 with Apple security (2016)

https://www.infoworld.com/article/2248024/the-catch-22-with-apple-security.html
1•mooreds•30m ago•0 comments

Controlinfra – Free AI-powered Terraform drift detection

https://www.controlinfra.com/https:/controlinfra
1•lbenagha•34m ago•1 comments

I built an AI to catch my own revenge trading

https://m1nd.app/blog/ai-psychology-detection
1•timoslav•36m ago•0 comments

Show HN: Stream full Windows system audio to Google Nest speakers (no cloud)

https://www.pcnestspeaker.app
1•kepners•39m ago•0 comments

LLMs and Your Career

https://notes.eatonphil.com/2026-01-19-llms-and-your-career.html
1•cod1r•42m ago•0 comments

Only Known Photos of Computing Pioneer Ada Lovelace Join UK National Collection

https://news.artnet.com/art-world/ada-lovelace-daguerreotypes-uk-national-portrait-gallery-2735593
2•gnabgib•45m ago•1 comments

Show HN: Bubblewrap TUI – makes bubblewrap's command lines less terrifying

https://github.com/reubenfirmin/bubblewrap-tui
1•smallerfish•45m ago•1 comments

Geoff Huntley, creator of the Ralph loop, goat farmer, prophet

https://www.youtube.com/watch?v=lQ2ihlUzlfs
2•claudiacsf•46m ago•0 comments

OpenSplitDeck

https://github.com/tommybee456/OpenSplitDeck
1•euazOn•46m ago•1 comments

A fun trick for getting discovered by LLMs and AI tools

https://cassidoo.co/post/ai-llm-discoverability/
2•mooreds•46m ago•0 comments