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.

Samsung hits ₩1,000T market cap (~$740B)

https://biz.chosun.com/en/en-finance/2026/01/22/CEEEPNBOIFFCDKMGIT2ISDAENM/
1•xthe•1m ago•0 comments

Is that allowed? Authentication and authorization in Model Context Protocol

https://stackoverflow.blog/2026/01/21/is-that-allowed-authentication-and-authorization-in-model-c...
1•mooreds•1m ago•0 comments

Hidden order in quantum confusion: The pseudogap

https://www.simonsfoundation.org/2026/01/19/hidden-order-in-quantum-confusion-the-pseudogap/
1•hhs•1m ago•0 comments

SSH has no Host header

https://simonwillison.net/2026/Jan/22/ssh-has-no-host-header/
1•gavide•2m ago•0 comments

Cheatsheet for Plots

https://www.hermandaniel.com/blog/20251110-my-cheatsheet-for-plots/
1•kekqqq•8m ago•0 comments

Proposal to add generic methods for Go

https://github.com/golang/go/issues/77273
2•meling•8m ago•0 comments

BIG SCRAPER vs. little scraper GOOGLE, LLC vs. serpapi, llc (3:25-cv-10826) [pdf]

https://ia801008.us.archive.org/25/items/gov.uscourts.cand.461513/gov.uscourts.cand.461513.1.0.pdf
1•1vuio0pswjnm7•10m ago•0 comments

We're Turning Todos into Tasks in Claude Code

https://twitter.com/trq212/status/2014480496013803643
1•hahahacorn•11m ago•0 comments

The battle for blue skies over Beijing leaves farmers cold

https://www.economist.com/china/2026/01/15/the-battle-for-blue-skies-over-beijing-leaves-farmers-...
1•hhs•11m ago•0 comments

ClickUp acquires Codegen, forces users into ClickUp to keep using it

https://clickup.com/blog/clickup-codegen-acquisition/
1•itstimwhite•11m ago•1 comments

Testing if "bash is all you need"

https://vercel.com/blog/testing-if-bash-is-all-you-need
2•handfuloflight•12m ago•0 comments

From Protest to Peril – Cellebrite Used Against Jordanian Civil Society

https://citizenlab.ca/research/from-protest-to-peril-cellebrite-used-against-jordanian-civil-soci...
1•g-b-r•13m ago•0 comments

The Microsoft-OpenAI Files

https://www.geekwire.com/2026/the-microsoft-openai-files-internal-documents-reveal-the-realities-...
2•spooneybarger•13m ago•0 comments

A Complete Guide to Animated Icons and Motion Effects for Web

https://medium.com/@jabrsalm449/bring-your-website-to-life-a-complete-guide-to-animated-icons-and...
1•Jaber_Said•13m ago•0 comments

The pragmatic tradeoff of tied embeddings

https://blog.silennai.com/tied-embeddings
1•SilenN•15m ago•1 comments

Show HN: AI Coding Toolkit. Low-overhead workflow for reliable AI coding

https://benjaminshoemaker.github.io/ai_coding_project_base/
1•straydusk•19m ago•0 comments

Would you let Claude do your taxes?

https://www.rand.org/pubs/commentary/2025/12/would-you-let-claude-do-your-taxes.html
1•hhs•21m ago•0 comments

I Built TrumpDaily to track Donald Trump without the noise

https://ercanermis.com/https-trumpdaily-site-i-built-a-news-aggregator-so-i-can-finally-keep-up/
3•ermis•22m ago•0 comments

Autonomous language-image generation loops converge to generic visual motifs

https://www.cell.com/patterns/fulltext/S2666-3899(25)00299-5
1•bikenaga•24m ago•1 comments

Anti-Coercion Instrument

https://en.wikipedia.org/wiki/Anti-Coercion_Instrument
4•heavyset_go•27m ago•0 comments

Thruflux – P2P file transfer over QUIC

https://github.com/samsungplay/Thruflux
1•samsungplay•27m ago•0 comments

A declarative package management CLI tool for Arch Linux

https://gitlab.com/theblackdon/dcli
1•rmadriz•30m ago•0 comments

The Real Reason Claude Code Users Prefer the Terminal

https://elliot.my/claude-coder-users-prefer-the-terminal/
1•clowes•30m ago•0 comments

How Claude Code Works

https://code.claude.com/docs/en/how-claude-code-works
1•mfiguiere•30m ago•0 comments

The autonomous AI agent that does the work – for developers and non-developers

https://meetorion.app/
1•Kn1026•31m ago•1 comments

Show HN: I built a free tool for checking AI Visibility for your site

https://www.replyraptor.com/llm-ready/checker
1•zbruhnke•34m ago•0 comments

Improving the usability of C libraries in Swift

https://www.swift.org/blog/improving-usability-of-c-libraries-in-swift/
5•timsneath•35m ago•0 comments

Feasibility-Aware Exploration of Coarse-Grained Reconfigurable Architectures

https://www.mdpi.com/2079-9292/15/2/313
1•PaulHoule•38m ago•0 comments

SB138: State of Utah Mobile Operating System Designation

https://le.utah.gov/~2026/bills/static/SB0138.html
3•reaperducer•39m ago•0 comments

Consumer electronics are unique because they sit on a deeply modular foundation

https://www.a16z.news/p/everything-is-computer
1•walterbell•39m ago•0 comments