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.

Life on Peptides Feels Amazing

https://nymag.com/intelligencer/article/peptides-from-instagram-china-wellness-cure.html
1•md224•3m ago•1 comments

US population growth slows as immigration declines

https://www.reuters.com/world/us/us-population-growth-slows-immigration-declines-census-data-show...
1•geox•3m ago•0 comments

Australian plumber is a YouTube sensation

https://arstechnica.com/culture/2026/01/australian-plumber-is-a-youtube-sensation/
1•Bender•6m ago•0 comments

Write Games for Playdate in Golang

https://github.com/playdate-go/pdgo
3•AmorBielyi•8m ago•1 comments

Trinity Large: American Open Source Foundation Model

https://www.arcee.ai/blog/trinity-large
1•linolevan•9m ago•0 comments

Arcan Explained – A browser for different webs

https://arcan-fe.com/2026/01/26/arcan-explained-a-browser-for-different-webs/
1•birdculture•11m ago•0 comments

Pigsty v4.0: Observability Revolution and Security Hardening

https://blog.vonng.com/en/pigsty/v4.0/
1•l2dy•11m ago•0 comments

Drag Gestures on the Web

https://jakub.kr/work/drag-gesture
1•SouravInsights•15m ago•0 comments

Show HN: Privacy-First App Analytics for Swift and React Native

https://appsidekit.com/
1•Intragalactic•17m ago•0 comments

Driving on sunshine: Nissan celebrates clean energy day with solar‑powered Ariya

https://europe.nissannews.com/en-GB/releases/driving-on-sunshine-nissan-celebrates-clean-energy-d...
1•teleforce•18m ago•0 comments

Database Recovery Demystified: Understanding Aries from First Principles

https://yashagw.github.io/blog/db-recovery/
1•SouravInsights•21m ago•0 comments

Private Prisons Sued the State of Arizona for Not Having Enough Prisoners

https://hrnews1.substack.com/p/how-private-prisons-sued-the-state
8•williesmellson•25m ago•1 comments

Why A.I. Can't Make Thoughtful Decisions

https://www.nytimes.com/2026/01/25/opinion/ai-human-judgment.html
1•paulpauper•26m ago•0 comments

'Garden of Eden': the Spanish farm growing citrus you've never heard of

https://www.theguardian.com/environment/2026/jan/16/garden-of-eden-the-spanish-farm-growing-citru...
2•PaulHoule•26m ago•0 comments

Ask HN: What happens when AI coding crosses the human dev threshold

1•my10thhnaccount•26m ago•0 comments

Neocities Is Blocked by Bing

https://blog.neocities.org/blog/2026/01/27/bing-block
1•kyledrake•27m ago•0 comments

Go motion

https://en.wikipedia.org/wiki/Go_motion
1•exvi•28m ago•0 comments

US carrier strike group is now in the Middle East region, sources say

https://www.cnn.com/2026/01/26/middleeast/iran-carrier-strike-group-indian-ocean-intl
4•Bender•29m ago•0 comments

Let the Chinese Cars In

https://www.noahpinion.blog/p/let-the-chinese-cars-in
5•paulpauper•29m ago•0 comments

Speak in code, delete the chats: The tactics Venezuelans are using out of fear

https://www.cnn.com/2026/01/27/americas/venezuela-phone-search-crackdown-free-speech-latam-intl
4•Bender•31m ago•0 comments

Amazon Salon (2021)

https://www.aboutamazon.co.uk/news/retail/introducing-amazon-salon
1•divbzero•31m ago•0 comments

Notetaking Is Life Changing

https://punkto.org/blog/write_it_down
1•Curiositry•31m ago•0 comments

Theoretical study of laser-enhanced nuclear fusion reactions – EurekAlert

https://www.eurekalert.org/news-releases/1113364
1•bilsbie•33m ago•0 comments

The AI privacy settings you need to change

https://www.washingtonpost.com/technology/2025/12/22/ai-privacy-settings-chatgpt-gemini-claude-co...
1•reaperducer•35m ago•0 comments

Show HN: Gallagher Security Python SDK and Tools

https://github.com/anomaly/gallagher
1•devmukherjee•40m ago•0 comments

The discrepancy between developers satisfied and dissatisfied with AI

https://unixdigest.com/articles/the-reasons-for-the-big-discrepancy-between-satisfied-vs-dissatis...
1•Curiositry•41m ago•0 comments

Slim Chance for Permanent Weight Loss (2018)

https://psycnet.apa.org/fulltext/2018-40989-001.html
1•paulpauper•41m ago•0 comments

Taming Claude Code

https://thisalex.com/posts/claude-taming/
1•indeyets•41m ago•0 comments

Physical Tesla Buttons Retrofit for Model 3 and Y – Installation Tutorial [video]

https://www.youtube.com/watch?v=VmVZsnxXAQE
1•fenced_load•41m ago•0 comments

I Track Space Debris as It Crashes to Earth

https://nautil.us/i-track-space-debris-as-it-crashes-to-earth-1263197/
1•Bender•42m ago•0 comments