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.

Venezuelan Nobel Peace Prize winner presents her medal to Trump

https://www.bbc.com/news/articles/cx2w94wp4p1o
1•RickJWagner•24s ago•0 comments

Intraoperative Tumor Histology May Enable More-Effective Cancer Surgeries

https://www.caltech.edu/about/news/intraoperative-tumor-histology
1•hhs•43s ago•0 comments

Etymology of the Word W00T

https://en.wiktionary.org/wiki/w00t
1•dustfinger•3m ago•0 comments

Make Google Forms UI look better

https://www.formglam.pro/
1•yatinseelam•4m ago•0 comments

Tech Workers Are Condemning ICE Even as Their CEOs Stay Quiet

https://www.wired.com/story/backlash-against-ice-policing-tactics-grows-in-silicon-valley/
2•abdelhousni•4m ago•0 comments

The latest Firefox version broke ChatGPT website

https://old.reddit.com/r/ChatGPT/comments/1qdwexl/chatgpt_website_broken_in_firefox/
2•vanni•5m ago•0 comments

Guys, I'm Scared

https://www.thock.pro
1•krunkworx•5m ago•1 comments

Craftlings

https://store.steampowered.com/app/1771110/Craftlings/
1•doener•5m ago•1 comments

LaunchList – a simple waitlist tool for collecting emails before launch

https://launchlist.company/
1•vali128•5m ago•0 comments

King – man and woman is queen; but why?

https://p.migdal.pl/blog/2017/01/king-man-woman-queen-why/
1•CGMthrowaway•6m ago•0 comments

Technē without poiesis: rethinking craft beyond human

https://jimiwen.substack.com/p/techne-without-poiesis
1•jimiwen•6m ago•0 comments

A robot learns to lip sync

https://www.engineering.columbia.edu/about/news/robot-learns-lip-sync
1•hhs•6m ago•0 comments

Activists in Iran Are Using Starlink to Stay Online

https://www.nytimes.com/2026/01/15/technology/iran-online-starlink.html
1•defrost•8m ago•0 comments

From Tokens to Burgers – A Water Footprint Face-Off

https://newsletter.semianalysis.com/p/from-tokens-to-burgers-a-water-footprint
1•gmays•8m ago•0 comments

Climate policies can backfire by eroding 'green' values, study finds

https://phys.org/news/2025-12-climate-policies-backfire-eroding-green.html
2•PaulHoule•10m ago•0 comments

San Francisco Health Agency Gives Free Booze to Homeless Alcoholics

https://californiaglobe.com/fr/globe-grievance-san-francisco-health-agency-gives-free-booze-to-al...
1•CGMthrowaway•10m ago•0 comments

Nametag: A simple, effective Personal Relationship Manager

https://github.com/mattogodoy/nametag
1•thunderbong•11m ago•0 comments

Ask HN: When is Gemini 3.0 Flash Lite coming out?

1•Nora23•13m ago•0 comments

Infinite Deterministic Data

https://github.com/jgddesigns/stateshaper
1•jaygeorgedunn•13m ago•1 comments

Tldraw pauses external contributions due to AI slop

https://github.com/tldraw/tldraw/issues/7695
4•pranav_rajs•15m ago•0 comments

From Nevada to Kansas by Glider

https://www.weglide.org/flight/978820
1•sammelaugust•16m ago•0 comments

Ask HN: Books to Learn Ruby/Rails?

1•georgel•17m ago•2 comments

Mutual aid and asking people what they need

https://gomakethings.com/mutual-aid-and-asking-people-what-they-need/
1•mitchbob•18m ago•0 comments

AWS Databases are now available on v0 by Vercel

https://aws.amazon.com/about-aws/whats-new/2026/01/aws-databases-available-vercel-v0/
1•MaxLeiter•18m ago•0 comments

An Unfolding Scientific Revolution in Cosmology

https://economicsfromthetopdown.com/2026/01/15/an-unfolding-scientific-revolution-in-cosmology/
1•empiko•19m ago•0 comments

Any other lawyers find it hard to get client documents?

https://www.octadox.org
1•rookonfire•21m ago•1 comments

How We Red-Teamed Our Own AI Agent: Lessons from Operation Pale Fire

https://engineering.block.xyz/blog/how-we-red-teamed-our-own-ai-agent-
1•mellowart•21m ago•0 comments

Building big in space – Factorio [video]

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

China and Canada Energy Pact as Canada Aims to Cut Reliance on US

https://www.bloomberg.com/news/articles/2026-01-15/canada-china-ink-energy-pact-as-carney-aims-to...
4•KnuthIsGod•26m ago•1 comments

Comparison of 14 data analytics agents

https://thenewaiorder.substack.com/p/i-tested-14-analytics-agents-so-you
1•blef•30m ago•0 comments