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•9mo 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•9mo 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•9mo 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.

Show HN: Konpeito – A gradually typed Ruby compiler with LLVM/JVM back ends

https://github.com/i2y/konpeito
1•i2y•1m ago•0 comments

Snapchat Launches Creator Subscriptions

https://newsroom.snap.com/snapchat-launches-creator-subscriptions
1•deepanker70•1m ago•1 comments

Show HN: I'm launching a LPFM radio station

https://www.kpbj.fm/
1•solomonb•1m ago•0 comments

India is using cheap green tech to electrify faster than China

https://www.japantimes.co.jp/environment/2026/01/23/energy/india-cheap-green-tech/
1•PaulHoule•2m ago•0 comments

Show HN: A Better Leaderboard for Polymarket

https://0xinsider.com/leaderboard
1•indreklasn•2m ago•0 comments

What happens when your AI assistant does your dating?

https://zyroi.com/blog/when-your-ai-swipes-right
2•ben4mn•3m ago•0 comments

Programmatic SEO: Generating 100k+ Pages That Rank

https://www.coinerella.com/programmatic-seo-100k-pages-that-rank/
3•willy__•3m ago•0 comments

Meta patented an AI that lets you keep posting from beyond the grave

https://www.businessinsider.com/meta-granted-patent-for-ai-llm-bot-dead-paused-accounts-2026-2
2•serial_dev•3m ago•0 comments

I'm going to build my own OpenClaw, with blackjack and bun

https://github.com/rcarmo/piclaw
2•rcarmo•4m ago•0 comments

Show HN: Anatole, curated news inside Slack

https://anatole.fyi
6•mbanerjeepalmer•4m ago•0 comments

The Mark Williams Company (2024)

https://www.abortretry.fail/p/the-mark-williams-company
2•naves•5m ago•0 comments

Messenger.com is no longer available for messaging

https://www.facebook.com/help/messenger-app/804132271957789
4•tomashertus•7m ago•2 comments

Be the Cat

https://medium.com/@darkft/be-the-cat-a6e618d23454
3•d_silin•7m ago•0 comments

Show HN: Clawstash – Encrypted incremental backups for OpenClaw

https://github.com/alemicali/clawstash
2•a_micali•7m ago•1 comments

OpenClaw Auditable Platform

https://github.com/romanklis/openclaw-contained
2•roman_klis•8m ago•1 comments

Property taxes going up? The 340B Program might be partly responsible

https://www.pricepoints.health/cp/188296406
3•larsiusprime•8m ago•0 comments

OpenAI – Beyond Rate Limits

https://openai.com/index/beyond-rate-limits/
1•ayushrodrigues•9m ago•0 comments

Show HN: Radar – Automated vulnerability scanning for SMBs (free in beta)

1•oscarsixsecllc•9m ago•0 comments

Ask HN: Why) are you using AI to browse the web?

2•ATechGuy•11m ago•1 comments

Show HN: Vestauth – Auth for Agents

https://github.com/vestauth/vestauth
5•scottmotte•13m ago•1 comments

GNU cflow – flow graph for C-sources

https://www.gnu.org/software/cflow/
2•smartmic•14m ago•0 comments

CTFs Are the Only Benchmark You Can't Fake

https://fantaize.net/posts/ctf/
2•cpu0•16m ago•0 comments

Show HN: React-scad: Component-based authoring for OpenSCAD (JSX → .scad)

https://github.com/react-scad/react-scad
3•cmger•16m ago•1 comments

Race for AI is making Hindenburg-style disaster a real risk, says leading expert

https://www.theguardian.com/science/2026/feb/17/ai-race-hindenburg-style-disaster-a-real-risk-mic...
3•trusche•18m ago•0 comments

Clef Programming Language – A concurrent systems language

https://clef-lang.com/
3•smoothdeveloper•19m ago•2 comments

Cloud Native Architecture for Small Teams: A Practical Guide

https://outplane.com/blog/cloud-native-architecture-small-teams
4•receperdogan•19m ago•0 comments

Automated Least Privilege for Coding Agents

https://www.osohq.com/post/coding-agents-hold-the-api-keys-to-the-kingdom-were-working-with-tails...
5•meghan•19m ago•0 comments

Show HN: Bus Core – local-first inventory and audit trail for makers

https://buscore.ca/
3•True-Good-Craft•19m ago•1 comments

Speech by the Federal Chancellor at the Munich Security Conference

https://www.bundesregierung.de/breg-en/federal-government/speech-munich-security-conference-2407298
3•kaycebasques•20m ago•0 comments

AI-Led Growth (ALG): A Third GTM Motion for B2B SaaS

https://artemisgtm.ai/blog/ai-led-growth-alg
3•thegtmauditguy•21m ago•1 comments