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.

President Trump orders divestment in $2.9M chips deal to protect US

https://apnews.com/article/president-trump-hiefo-emcore-divestment-fd324a0b76b1680dc5750e222ed74313
1•djoldman•3m ago•0 comments

Show HN: Happymail – Make email great again

https://happymail.tech/
1•samset7•5m ago•0 comments

Show HN: Fixing Robotic AI Text with a Simple Browser Extension

https://chromewebstore.google.com/detail/arzuno-humanizer-write-li/mcepgjnmffnlonbkmemeppjndacfomhc
2•common_creator•11m ago•1 comments

Peerweb

https://peerweb.lol/
3•dtj1123•11m ago•0 comments

Super Productivity is insanely feature-rich for an open-source app

https://github.com/johannesjo/super-productivity
2•tylerdane•11m ago•0 comments

Show HN: Fixing Robotic AI Text with a Simple Browser Extension

2•common_creator•13m ago•0 comments

Show HN: Live audio streaming to FM radio via ALSA on Raspberry Pi

2•douxx•14m ago•1 comments

Organic Photovoltaic (OPV) Panels: The End of China's Solar Monopoly? [video]

https://www.youtube.com/watch?v=C_oWG_PYpkE
2•thelastgallon•15m ago•0 comments

Show HN: Self-hosted email server for 2026 – single binary, CalDAV

https://github.com/fenilsonani/email-server
2•fenilsonani•16m ago•1 comments

Show HN: Walkie-Talkie Toy over WiFi/Tailscale on Raspberry Pi

https://github.com/spieglt/talkis
2•spieglt•17m ago•0 comments

Rcarmo/PhotosExport: Export All Your Data from Apple Photos

https://github.com/rcarmo/PhotosExport
2•rcarmo•24m ago•0 comments

My novel about a dev who uses Jira to sabotage his boss and torpedo his company

https://www.amazon.com/dp/B0GC94SZXK
3•smafarin•25m ago•0 comments

I built a state-aware Marketing OS with a custom credit economy(React Router v7)

https://flippa.com/12205760-vect-ai-is-an-autonomous-marketing-command-center-deploy-ai-agents-to...
1•WoWSaaS•26m ago•0 comments

Trump Administration Approved a Big Lithium Mine. Official's Husband Profited

https://www.nytimes.com/2026/01/03/climate/lithium-mine-interior-karen-budd-falen-water-contract....
2•instagib•26m ago•1 comments

Show HN: Chat with AI to create invoices instead of filling forms

https://www.invoce.ai
1•atmiya•28m ago•0 comments

World's largest model railway in Hamburg [video]

https://www.youtube.com/watch?v=1A8TPBGuB5M
1•xg15•31m ago•0 comments

Ask HN: What do you think of reality check based behaviour corrector app?

1•tbhaxor•33m ago•0 comments

Ask HN: What personal project do you plan to scale in 2026?

1•laurentiurad•34m ago•0 comments

Chinese AI models have lagged the US frontier by 7 months on average since 2023

https://epoch.ai/data-insights/us-vs-china-eci
3•stared•34m ago•3 comments

Show HN: An authority gate for AI-generated customer communications

https://authority.bhaviavelayudhan.com/
1•bhaviav100•35m ago•0 comments

Banged Up $800K Mercedes 190E Is the Most Expensive Crash Test You'll See Today

https://www.thedrive.com/news/this-banged-up-800k-mercedes-190e-is-the-most-expensive-crash-test-...
2•PaulHoule•37m ago•0 comments

Senior Full Stack Software Engineer (B2B SaaS)

https://www.prompthealth.com/careers
1•katiemartocchio•37m ago•0 comments

Sahelanthropus

https://en.wikipedia.org/wiki/Sahelanthropus
1•wjb3•39m ago•0 comments

Design duality and the expression problem (2018)

https://www.tedinski.com/2018/02/27/the-expression-problem.html
2•NeutralForest•42m ago•0 comments

Trump orders Chinese-controlled firm to unwind chip asset deal

https://www.cnbc.com/2026/01/03/trump-orders-unwind-chinese-chip-acquisition-emcore-hiefo-emcore-...
1•mikhael•42m ago•0 comments

Show HN: Query and visualize the graph of your GitHub repositories

https://github.com/evoluteur/meet-the-fans
1•evoluteur•43m ago•0 comments

Lexilens monitor targets neurovisual crowding for dyslexic readers

https://www.notebookcheck.net/Abeye-unveils-the-Lexilens-monitor-A-computer-display-that-reduces-...
1•kmisiunas•44m ago•0 comments

Training the Gap

https://domofutu.substack.com/p/training-the-gap
1•wjb3•47m ago•0 comments

1970 Paris, cut into a grid and photographed

https://paris1970.jeantho.eu/index.html
1•panic•48m ago•0 comments

Show HN: Vibe to Prod – Production-ready template for AI-assisted development

https://github.com/muyen/vibe-to-prod
1•muyenlee•52m ago•0 comments