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.

Translating Cave Story into Classical Latin with Gemini

https://www.semilin.dev/blog/doukutsu-translator
1•semilin•5m ago•0 comments

Show HN: I Made a Gamma Clone with 1 Prompt

https://prompt-to-ppt.lovable.app/
1•nsemikey•5m ago•1 comments

Cool project, will you actually maintain it?

https://www.pcloadletter.dev/blog/cool-project/
1•ronbenton•6m ago•0 comments

The State of LLMs 2025: Progress, Problems, and Predictions

https://magazine.sebastianraschka.com/p/state-of-llms-2025
1•nsainsbury•10m ago•0 comments

The Intelligent Universe: AI, ET, and the Emerging Mind of the Cosmos

https://www.setileague.org/reviews/intellig.htm
1•teleforce•14m ago•0 comments

Physics of Language Models: How to Build Versatile Pretrain Playgrounds [video]

https://www.youtube.com/watch?v=x3G8knjPDbM
1•gmays•17m ago•0 comments

Ask HN: Have you been falsely accused of AI-generated content?

4•bmaupin•17m ago•2 comments

What Becomes Valuable When AI Makes Creative Work Easy

https://every.to/p/what-becomes-valuable-when-ai-makes-creative-work-easy?p=c0fe0e66aa5670c292b26...
2•herbertl•17m ago•0 comments

I built my dream terminal based task manager

https://github.com/fashton28/silo
2•fashton28•18m ago•1 comments

Scorg Marketplace – Player-to-Player Trading for Star Citizen Items

1•legitcoders•19m ago•0 comments

Show HN: I built a Music-to-Video API

https://peakmv.com
2•gautamaj•21m ago•0 comments

Researchers spot Saturn-sized planet in the "Einstein desert"

https://arstechnica.com/science/2026/01/researchers-spot-saturn-sized-planet-in-the-einstein-desert/
2•pseudolus•23m ago•0 comments

Show HN: PPTX Native AI Slides

https://www.textdeck.com/home
1•andventures•24m ago•0 comments

Self-driving cars could prevent over 1M injuries across the US by 2035

https://techxplore.com/news/2026-01-cars-million-road-injuries.html
2•geox•27m ago•0 comments

On the quantum mechanics of entropic forces

https://arxiv.org/abs/2502.17575
1•kaycebasques•30m ago•0 comments

Ask HN: Are there any antifeature-free power tools you can still buy new?

4•josephcsible•32m ago•1 comments

AI Personas and Dolls

https://stephen.bochinski.dev/blog/2026/01/02/ai-personas/
2•sbochins•36m ago•0 comments

Obesity as a Behavioral Addiction

https://www.academia.edu/2997-9196/2/3/10.20935/MHealthWellB7880
3•red369•39m ago•2 comments

1964 New York World's Fair

https://en.wikipedia.org/wiki/1964_New_York_World%27s_Fair
2•teleforce•47m ago•0 comments

Show HN: Black Box QA testing system to automate QA process

https://www.rocksmith.ai/
2•orangeAvocad0•48m ago•0 comments

KGGen: Extracting Knowledge Graphs from Plain Text with Language Models

https://arxiv.org/abs/2502.09956
3•delichon•53m ago•0 comments

Show HN: Endless, a easily deployable and scalable social media

https://github.com/XS-Xspert-Software/Social-Media
1•thegoodduck•53m ago•0 comments

Breakfast menu prices are likely to see the biggest increase from food inflation

https://londonlovesbusiness.com/breakfast-menu-prices-are-likely-to-see-the-biggest-increase-from...
1•teleforce•54m ago•0 comments

The Force Is with Cristal Beer

https://en.wikipedia.org/wiki/The_Force_is_with_Cristal_Beer
3•handfuloflight•57m ago•0 comments

Tech Startups Are Handing Out Free Nicotine Pouches to Boost Productivity

https://www.wsj.com/tech/tech-startups-are-handing-out-free-nicotine-pouches-to-boost-productivit...
2•croes•59m ago•1 comments

Show HN: Shipping Without Judgment

https://dantelex.com/blog/shipping-judgement
3•lexokoh•1h ago•0 comments

ADF Opus: open, browse, and manage Amiga .ADF disk-images natively

https://github.com/chironb/ADFOpus2025
1•doener•1h ago•0 comments

Minimig RTG Magic [video]

https://www.youtube.com/watch?v=DBO9sD6EYS4
1•doener•1h ago•0 comments

GNU Ddrescue 1.30 Orders of Magnitude Better Working on Drives with a Dead Head

https://www.phoronix.com/news/GNU-ddrescue-1.30
5•Qem•1h ago•0 comments

Riot Games's League of Legends login issues due to expired SSL certificate

https://old.reddit.com/r/leagueoflegends/comments/1q40aen/comment/nxpij3c/
3•dossy•1h ago•1 comments