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.

An app can be a meal kit

https://ammil.industries/log/an-app-can-be-a-meal-kit/
1•cjlm•1m ago•0 comments

Show HN: AI health agent that nags you on WhatsApp instead of a dashboard

https://app.vitalify.ai/
1•erenkaradag•6m ago•1 comments

The Engineer to Executive Translation Layer

https://refactoring.fm/p/the-engineer-executive-translation
3•lucidplot•10m ago•1 comments

Origin of Quake3's Fast InvSqrt() (2006)

https://www.beyond3d.com/content/articles/8/
1•6581•10m ago•0 comments

White House seeks emergency power auction for largest US electric grid

https://www.reuters.com/legal/litigation/white-house-seeks-emergency-power-auction-largest-us-ele...
2•bikenaga•12m ago•0 comments

Trapped in the Hell of Social Comparison

https://www.noahpinion.blog/p/trapped-in-the-hell-of-social-comparison
1•7777777phil•12m ago•0 comments

Ask HN: Who's Using DuckDB in Production?

1•yakkomajuri•13m ago•0 comments

Ripple - Elegant TypeScript UI Framework

https://www.ripplejs.com/
1•Charmunk•13m ago•0 comments

Show HN: ReliaBuilds – web, mobile, cloud, AI, and security for startups

https://www.reliabuilds.com/en
1•syketdas•14m ago•1 comments

Show HN: Vibe-Claude – Multi-agent orchestration for Claude Code

https://github.com/kks0488/vibe-claude
1•kyoungsookim•15m ago•0 comments

PaperClip on the Atari 8-Bit

https://stonetools.ghost.io/paperclip-atari8/
1•TMWNN•15m ago•0 comments

Show HN: Atomic Stream – pay-as-you-go real-time Solana data streams (x402)

1•missionsquad•18m ago•0 comments

Letting Claude Play Text Adventures

https://borretti.me/article/letting-claude-play-text-adventures
2•varjag•21m ago•0 comments

Ask HN: Those who quit tech, moved back home, what do you do?

3•akudha•23m ago•0 comments

Show HN: SignalHQ – Stop searching for SaaS clients, get them delivered daily

https://signalhq.tech/
1•reena_signalhq•25m ago•0 comments

Cloudflare – Elevated 500 errors for customers using User Service Keys

https://www.cloudflarestatus.com/incidents/v65nsz2lnly4
2•TheGuyWhoCodes•26m ago•0 comments

I Made a Million Dollar Product from My Dorm Room

https://nick.winans.io/blog/nice-nano/
1•RGBCube•27m ago•0 comments

Juggle – CLI Ralph Loops with Good UX

https://github.com/ohare93/juggle
2•ohare93•27m ago•1 comments

What we know about Iran's Internet shutdown

https://blog.cloudflare.com/iran-protests-internet-shutdown/
4•kwar13•29m ago•1 comments

Revelations from Elon Musk's lawsuit against OpenAI

https://sources.news/p/20-revelations-from-elon-musks-lawsuit
1•donsupreme•29m ago•1 comments

Ripple and UC Berkeley Launch the University Digital Asset Xcelerator (UDAX)

https://ripple.com/insights/ripple-and-uc-berkeley-launch-the-university-digital-asset-xcelerator...
2•mikhael•31m ago•0 comments

Meta retreats from metaverse after virtual reality check

https://www.theregister.com/2026/01/16/meta_quest_horizon_workrooms/
7•beardyw•32m ago•1 comments

ChatGPT is getting ads. Sam Altman once called them a 'last resort.'

https://www.businessinsider.com/chatgpt-ads-openai-2026-1
9•donpott•33m ago•8 comments

RFC: Distributed Computation Mesh in Logos Language

https://github.com/Brahmastra-Labs/logicaffeine/discussions/18
2•tristenharr•34m ago•0 comments

Trump Delays Plan to Seize Wages of Student Borrowers Amid Affordability Push

https://www.bloomberg.com/news/articles/2026-01-16/trump-delays-plan-to-seize-wages-of-student-bo...
2•toomuchtodo•36m ago•1 comments

U-Haul Growth Index: Texas Back on Top as No. 1 Growth State of 2025

https://www.uhaul.com/Articles/About/U-Haul-Growth-Index-Texas-Back-ON-Top-As-No-1-Growth-State-O...
2•RickJWagner•36m ago•1 comments

English is the new programming language

https://deadneurons.substack.com/p/english-is-the-new-programming-language
2•nr378•40m ago•0 comments

Meta's Internal Research

https://metasinternalresearch.org
2•throwfaraway4•41m ago•3 comments

Ask HN: Local media server, receive and send audio?

2•thedangler•41m ago•0 comments

The YC AI Student Starter Pack

https://www.ycombinator.com/blog/the-yc-ai-student-starter-pack/
1•todsacerdoti•42m ago•0 comments