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.

Mac Screen Recorder – 30 bucks. no subscription

https://toads.io
1•jimmyshoez•3m ago•0 comments

ArtifactBench: Evaluating AI Music Detectors Under Distribution Shift

https://arxiv.org/abs/2609.23550
1•unohee•5m ago•0 comments

I_am_done_with_this_shit

https://www.reddit.com/r/ClaudeAI/comments/1wm5c21/i_am_done_with_this_shit/
2•dkga•9m ago•1 comments

Cunningham's Law

https://meta.wikimedia.org/wiki/Cunningham%27s_Law
1•vismit2000•14m ago•1 comments

Smart Software

https://twitter.com/JAS0Nduncan/status/2101759688769454422
1•pdlabs•14m ago•0 comments

Edit HTML Directly in the Browser

https://github.com/kenxle/live-agentic-html-editor
1•kenxle•15m ago•0 comments

The Rise of A.I. Is Raising Threats from Drones, Police Group Warns

https://www.nytimes.com/2026/09/19/nyregion/artificial-intelligence-drones-police.html
1•lxm•17m ago•0 comments

Show HN: ghfs – A read-only FUSE filesystem that keeps GitHub issues on disk

https://ghfs.dev/
1•ghfs_dev•19m ago•0 comments

What California Is Learning from Solar Panels Built over Irrigation Canals

https://www.kqed.org/science/2002033/heres-what-california-is-learning-from-solar-panels-built-ov...
2•Jtsummers•20m ago•0 comments

The "Windows XP Box" (2003)

https://www.mini-itx.com/projects/windowsxpbox/
1•doubletwoyou•21m ago•0 comments

Why Apple Succeeded in Japan [video]

https://www.youtube.com/watch?v=vkJU1nmI55I
1•mgh2•22m ago•0 comments

The Home Depot

https://www.acquired.fm/episodes/home-depot
2•vismit2000•25m ago•1 comments

Amazon blocks Meta's Muse AI assistant

https://www.geekwire.com/2026/amazon-blocks-metas-muse-ai-assistant-in-new-standoff-over-agentic-...
1•colinprince•27m ago•0 comments

China's AI Realism Is Not Conspiracy

https://www.fredgao.com/p/chinas-ai-realism-is-not-conspiracy
1•xpin•29m ago•0 comments

How we use dopamine to get you to spend less time on your phone

https://getisland.app/blog/fire-with-fire/
2•Intragalactic•32m ago•0 comments

New CA laws let community colleges offer up to 12 bachelor's degrees

https://calmatters.org/education/higher-education/2026/09/new-california-laws-community-college-d...
1•lxm•35m ago•0 comments

Francis Fukuyama: Why I Changed My Mind About AI Risk

https://www.persuasion.community/p/why-i-changed-my-mind-about-ai-risk
1•mellosouls•36m ago•0 comments

Smart Ring Maker Oura, Backers Seek $2.2B in US IPO

https://www.bloomberg.com/news/articles/2026-09-21/smart-ring-maker-oura-backers-seek-2-2-billion...
6•elo2000•37m ago•0 comments

OpenAI president and MAGA Inc. donor to attend Trump-Xi state dinner

https://www.politico.com/news/2026/09/21/openai-maga-donor-trump-xi-dinner-01086456
1•Alien1Being•38m ago•1 comments

Put Tabs Away

https://chromewebstore.google.com/detail/leotabs-—-tab-manager-swi/heolckkdeandgagkiefggcneodni...
2•ringlochid•41m ago•0 comments

Ottawa to build sovereign AI ecosystem for Canadian defence operations

https://www.theglobeandmail.com/business/economy/article-ottawa-building-sovereign-ai-ecosystem-f...
1•Teever•42m ago•0 comments

Side-stepping the Secretary Problem, unwittingly

https://www.evalapply.org/posts/side-step-secretary-problem-hiring/index.html
3•pvdebbe•43m ago•0 comments

Turn ad-hoc subagents into durable, accountable AI teams

https://github.com/ringlochid/oh-my-subagents
4•ringlochid•45m ago•0 comments

Cohere and Aleph Alpha sign business combination agreement

https://cohere.com/blog/cohere-and-aleph-alpha-sign-agreement
2•diegocstn•47m ago•1 comments

The Inference Gap

https://twitter.com/Lon/status/2101034933284417614
1•Jimega36•52m ago•1 comments

Ju Ju Tsu

https://arialdo.codeberg.page/ju-ju-tsu/
1•hn92726819•53m ago•1 comments

Privacy Tools Experts Use

https://proton.me/blog/privacy-tools-experts-use
3•devonnull•54m ago•0 comments

Ticket-In Ticket-Out

https://en.wikipedia.org/wiki/Ticket-in,_ticket-out
2•suopspaces•55m ago•0 comments

Show HN: An honest comparison of the Agent Harness vs. six alternatives

https://time2magic.com/agent-harness
1•bishopz•1h ago•0 comments

Before and After Photos Show Data Centers Furiously Popping Up Across America

https://petapixel.com/2026/09/19/before-and-after-photos-show-data-centers-furiously-popping-up-a...
1•andsoitis•1h ago•0 comments