frontpage.
newsnewestaskshowjobs

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•1y 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•1y 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•1y 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.

Sainsbury's pauses AI cameras after shopper ousted

https://www.bbc.co.uk/news/articles/cddjlmeqjgyo
1•dijksterhuis•12s ago•0 comments

Show HN: Kubara a package manager and framework for Kubernetes platforms

https://github.com/kubara-io/kubara
1•tuunit•14s ago•0 comments

Sixfab Cellular Modems

https://sixfab.com/product-category/development-tools/cellular-modems/
1•peter_d_sherman•1m ago•0 comments

OpenAI-Compatible API Quickstart in Python, JavaScript, and PowerShell

https://github.com/Vector-Compute-Engine/api-quickstart
2•VectorEngine•2m ago•0 comments

ScienceFlow – A Long-Horizon Agent for ML Research

https://github.com/huawei-noah/noah-research/tree/master/ScienceFlow
1•d3ron•3m ago•0 comments

Show HN: Code review that follows callers across your repos

https://contextgoblin.com/
2•clemens1010•5m ago•0 comments

Apache Flink accelerator built with Rust

https://streamfusion.tech/
1•Abbit•7m ago•0 comments

A Camera in My Face

https://www.naths.in/blog/a-camera-in-my-face
2•segalord•11m ago•0 comments

More methods for forecasting code automatiom

https://blog.aifutures.org/p/q25-2026-timelines-update-uplift
1•fbrusch•12m ago•0 comments

Greenest cities in Europe, and where Hamburg stands

https://alsterrunde.com/greenest-cities-in-europe-and-where-hamburg-stands/
3•mertbio•18m ago•0 comments

It's Happening – Europe Is Building an Impossible Fusion Reactor [video]

https://www.youtube.com/watch?v=bPUAKW1Dyek
1•mpweiher•24m ago•0 comments

The LLM Freedom Manifesto: Open-Weight Models and User Responsibility

https://gnu.support/large-language-models-llm/The-LLM-Freedom-Manifesto-Open-Weight-Models-and-Us...
2•rcdwealth•26m ago•0 comments

AI is finding sperm where doctors couldn't

https://www.seattletimes.com/seattle-news/science/ai-is-finding-sperm-where-doctors-couldnt/
1•OutOfHere•29m ago•0 comments

The Qualities of Tomorrow's Programmers by Salvatore Sanfilippo

https://grigio.org/the-qualities-of-tomorrows-programmers/
1•grigio•33m ago•0 comments

Immich - Self-hosted photo and video management solution

https://immich.app/
2•tehlike•37m ago•0 comments

Why Some Highly Intelligent People Prefer Less Social Interaction

https://www.rathbiotaclan.com/scientists-have-a-fascinating-hypothesis-about-why-smart-people-sho...
2•Akasci•38m ago•1 comments

So you want to build a generator (2016)

https://galaxykate0.tumblr.com/post/139774965871/so-you-want-to-build-a-generator
2•vuvko•40m ago•0 comments

Paitify – authorization layer so AI agents can't overspend

https://paitify.io
3•rahmankapucu•43m ago•0 comments

English as She Is Spoke

https://en.wikipedia.org/wiki/English_as_She_Is_Spoke
1•hamper653•43m ago•1 comments

What can you learn about a company from the outside?

https://mikwornoo.substack.com/p/company-structure-from-job-postings
1•hunglee2•45m ago•0 comments

Paper: Attention Is All You Have

https://arxiv.org/abs/2608.12610
1•benameurilyesis•47m ago•0 comments

Rocket Lab's GHOST mobile rocket launch infrastructure

https://newatlas.com/military/ghost-gives-rocket-launch-sites-flat-pack-treatment/
1•Gaishan•48m ago•0 comments

The AI Competence/Judgement Gap

https://itamargilad.com/artificial-competence/
1•BerislavLopac•49m ago•0 comments

Show HN: MCP Server for Appointment Booking

https://blog.makeplans.com/2026/08/15/your-ai-assistant-can-now-manage-your-bookings.html
1•sleepyhead•50m ago•1 comments

The Goal Is (Still) Value

https://franciscomt.medium.com/the-goal-is-still-value-9258db5d5e85
1•BerislavLopac•51m ago•0 comments

Control and complexity: tension in systems design

https://ferd.ca/control-and-complexity-tension-in-systems-design.html
1•r4um•52m ago•0 comments

Bitcoin: I'm retarded. ASM client/server project in the works

https://github.com/BobClawblaw/bitcoinmachinecode
2•hjm•54m ago•1 comments

AdNauseam – Clicking ads so you don't have to

https://adnauseam.io/
2•mosiuerbarso•57m ago•0 comments

How to Use AI as a Language Learner

https://vocably.pro/ai.html
2•sneas•1h ago•0 comments

Puppy Weight Estimator: a range-based adult-size calculator

https://puppyweightestimator.com
1•carsmith•1h ago•0 comments