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

Apple Hooks Fifty Thousand Methods [video]

https://www.youtube.com/watch?v=SuQGQ1vh9k0
1•todsacerdoti•4m ago•0 comments

The (AI) Nature of the Firm

https://camerongordon0.substack.com/p/the-ai-nature-of-the-firm
1•iciac•8m ago•0 comments

PyInfra: Infrastructure Deserves Real Code in Python, Not YAML Soup

https://marp.kalvad.com/fosdem_2026
2•nogajun•9m ago•0 comments

China's 'gold fever' sparks US$1B scandal as trading platform collapses

https://www.scmp.com/economy/china-economy/article/3341633/chinas-gold-fever-sparks-us1-billion-s...
4•latchkey•13m ago•0 comments

Gemini 3 Pro on AI Studio has been capped at 10 uses per day

https://old.reddit.com/r/Bard/comments/1qqw8o4/gemini_3_pro_on_ai_studio_has_finally_been_capped/
1•Kholin•18m ago•0 comments

SpacemiT K3 RISC-V AI CPU launch event [video]

https://www.youtube.com/watch?v=PxxUsUqgOFg
1•sxzygz•20m ago•0 comments

Scalable Power Sampling: Training-Free Reasoning for LLMs via Distrib Sharpening

https://medium.com/@haitham.bouammar71/we-didnt-train-the-model-it-started-reasoning-better-anywa...
1•verdverm•20m ago•1 comments

'Spy Sheikh' Bought Secret Stake in Trump Company for Access to USA AI Chips

https://www.wsj.com/politics/policy/spy-sheikh-secret-stake-trump-crypto-tahnoon-ea4d97e8
2•NN88•22m ago•0 comments

I dropped my Google Pixel 9 XL Pro from 6th floor balcony to the street

https://ercanermis.com/i-dropped-my-google-pixel-9-xl-pro-from-6th-floor-balcony-to-the-street/
1•ermis•22m ago•0 comments

Tangible Media: A Historical Collection of Information Storage Technology

https://tangiblemediacollection.com/
2•vinhnx•24m ago•0 comments

Dealing with logical omniscience: Expressiveness and pragmatics (2011)

https://www.sciencedirect.com/science/article/pii/S0004370210000457
1•measurablefunc•30m ago•0 comments

Technical interviews are broken. I built a tool that proves it

1•ruannawe•41m ago•0 comments

What the US TikTok takeover is revealing about new forms of censorship

https://www.theguardian.com/commentisfree/2026/jan/30/tiktok-us-takeover-new-type-of-censorship
7•thunderbong•43m ago•0 comments

Show HN: OpenJuris – AI legal research with citations from primary sources

https://openjuris.org/
1•Zachzhao•48m ago•0 comments

BoTTube – A YouTube-like platform where AI agents create and share videos

https://bottube.ai/
1•AutoJanitor•55m ago•1 comments

ChatGPT is pulling answers from Elon Musk's Grokipedia

https://techcrunch.com/2026/01/25/chatgpt-is-pulling-answers-from-elon-musks-grokipedia/
6•abdelhousni•1h ago•0 comments

AI chatbots like ChatGPT are using info from Elon Musk's Grokipedia

https://mashable.com/article/ai-chatbots-chatgpt-sourcing-elon-musk-grokipedia
6•abdelhousni•1h ago•0 comments

The Disconnected Git Workflow

https://ploum.net/2026-01-31-offline-git-send-email.html
2•zdw•1h ago•0 comments

Ex-Googler nailed for stealing AI secrets for Chinese startups

https://www.theregister.com/2026/01/30/google_engineer_convicted_ai_secrets_china/
2•jacquesm•1h ago•1 comments

Show HN: Yesterdays, a platform for exploring historical photos of my city

https://yesterdays.maprva.org
1•uneekname•1h ago•0 comments

Apple-1 Computer Prototype Board #0 sold for $2.75M

https://www.rrauction.com/auctions/lot-detail/350902407346003-apple-1-computer-prototype-board-0-...
25•qingcharles•1h ago•7 comments

Show HN: Inverting Agent Model (App as Clients, Chat as Server and Reflection)

https://github.com/RAIL-Suite/RAIL
1•ddddazed•1h ago•0 comments

IP

https://blog.cloudflare.com/post-quantum-warp/
3•Ryori•1h ago•0 comments

High-res nanoimprint patterning of quantum-dot LEDs via capillary self-assembly

https://www.nature.com/articles/s41566-025-01836-5
2•westurner•1h ago•0 comments

Pre-Steal This Book

https://seths.blog/2008/12/pre-steal-this/
2•herbertl•1h ago•0 comments

Aasha – and the Royal Game of Ur

https://maddy06.blogspot.com/2024/11/aasha-and-royal-game-of-ur.html
1•gomboc-18•1h ago•0 comments

The paper is not the song: why "Spotify for Science" keeps missing the point

https://articles.continuousfoundation.org/articles/how-modularity-changes-systems
2•rowanc1•1h ago•3 comments

Beelancer.ai – AI Agents bid for work and earn money for their owners

https://beelancer.ai
1•nclgrt•1h ago•1 comments

Show HN: Peptide calculators ask the wrong question. I built a better one

https://www.joyapp.com/peptides/
2•silviogutierrez•1h ago•0 comments

Why do math libraries produce different results across platforms?

https://github.com/RegularJoe-CEO/LuxiDemo/releases/tag/v2.0.1
3•luxiedge•1h ago•2 comments