frontpage.
newsnewestaskshowjobs

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•1y 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•1y 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•1y 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.

Four Time Scales for Technology Development and Deployment

https://rodneybrooks.com/four-time-scales-for-technology-development-and-deployment/
1•jeffreyrogers•2m ago•0 comments

Design Thinking Is B.S. (2018)

https://www.fastcompany.com/90166804/design-thinking-is-b-s
1•walterbell•12m ago•0 comments

DeepMind Disbands AlphaFold Team, Pivots to Gemini

https://unusualwhales.com/news/deepmind-disbands-alphafold-team-gemini-pivot
2•gmays•13m ago•1 comments

Building agents that survive their own execution

https://conol.ai/blog/building-agents-that-survive-their-own-execution
1•greatony•20m ago•0 comments

When random.bytes() runs but doesn't work

https://insider.btcpp.dev/p/when-randombytes-runs-but-doesnt
1•Funes-•20m ago•0 comments

Show HN: I'm a 15 Year Old Wannabe Engineer, This Is a Cycloidal Gearbox I Built

https://github.com/tom-ilan/cycloidal_gearbox
4•tomilan•22m ago•0 comments

What 'Pluribus' Gets Right About the Hive Mind (2025)

https://www.psychologytoday.com/us/blog/priceless/202512/what-pluribus-gets-right-about-the-hive-...
1•walterbell•23m ago•0 comments

Portal: Current Events

https://en.wikipedia.org/wiki/Portal:Current_events
2•adm4•24m ago•0 comments

Fuck the Algorithm. Own Your Data

https://github.com/adnqcr7-code/privacy-yt-downloader
2•kairos_agent•25m ago•0 comments

Living in the Math World Means Threading the Needle

https://www.quantamagazine.org/hong-wang-wins-2026-fields-medal-the-third-woman-ever-20260723/
1•gmays•26m ago•0 comments

Show HN: CostPerPrompt – Live AI API pricing and real-workload cost calculators

https://costperprompt.com/
1•ahmed_hassan7•32m ago•0 comments

Inverseminar

https://phys.org/news/2026-07-inverting-seminar-recover-scientific-papers.html
1•sundarurfriend•32m ago•0 comments

'Death by organ donation' floated for patients approved for euthanasia

https://nationalpost.com/news/death-by-organ-donation-for-maid-patients
1•walterbell•33m ago•0 comments

Hiring FDE's (full stack software eng) // 100K+ & equity // AI for Manufacturing

https://www.tryharmony.ai/
1•georgeharmony•35m ago•0 comments

I made a free directory to submit your games

https://www.twelve.games
1•mattmerrick•38m ago•0 comments

Token diplomacy: How China is shaping the AI future

https://www.semafor.com/article/07/28/2026/token-diplomacy-how-china-is-shaping-the-worlds-ai-future
1•qwikhost•40m ago•1 comments

Bessent and the Fed help Japan reverse months of yen losses

https://www.japantimes.co.jp/business/2026/08/01/economy/us-treasury-yen-support/
4•mikhael•43m ago•0 comments

The Linux distro and desktop brawler

https://distrofighter.com/
5•ashitlerferad•49m ago•0 comments

AUR Packages Adoption And Pushes Disabled

https://lists.archlinux.org/archives/list/aur-general@lists.archlinux.org/message/YPJ3FQYJTJXXY3R...
2•Alien1Being•49m ago•0 comments

Go 1.27 Interactive Tour

https://victoriametrics.com/blog/go-1-27/index.html
29•Hixon10•53m ago•2 comments

ASRock BC-250: Building the Budget Steam Machine

https://plug-world.com/posts/2026/asrock-bc250-the-budget-steam-machine/
9•plug_world•54m ago•0 comments

Ask HN: ChatGPT free tier just stopped working, is this just me?

3•jacquesm•57m ago•0 comments

People Who Called for Averting Nuclear War Are Calling for AI Slowdown

https://allevato.me/2026/08/01/rome-declaration
2•kukanani•57m ago•1 comments

How to Model the True Cost per Token Across GPU Architectures

https://www.softwareseni.com/inference-economics-how-to-model-the-true-cost-per-token-across-gpu-...
2•thunderbong•57m ago•0 comments

Fast access to Trump's 'Truth Social' posts goes on sale for $100k per month

https://www.france24.com/en/americas/20260801-fast-access-trump-truth-social-posts-sale-for-100-0...
6•donbox•59m ago•4 comments

The Prospects for 128 Bit Processors ( John Mashey SGI 1995)

https://yarchive.net/comp/128bit.html
4•Alien1Being•1h ago•0 comments

Firstdrop

https://nuoy.app/firstdrop
2•bookofjoe•1h ago•0 comments

Crap: Conditional Resource Access Protocol

https://ajaxdavis.dev/crap/
2•thomasfromcdnjs•1h ago•0 comments

Smevals: A small eval suite for evaluating models, prompts, and harnesses

https://simonwillison.net/2026/Jul/31/smevals/
3•seahorseemoji•1h ago•1 comments

Persistent State Machines: LLM Attention with INT4 In-Memory Cells

https://zenodo.org/records/21753002
3•yusuke_esaka•1h ago•0 comments