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.

Conspiracy Theories and Online Dating: It's a (Mis)Match

https://journals.sagepub.com/doi/10.1177/01461672251399448
1•PaulHoule•32s ago•0 comments

Ask HN: What's it like working in big tech recently with all the AI tools?

1•ex-aws-dude•53s ago•0 comments

Gauging Interest in Offline Authentication

1•solarpunked•54s ago•0 comments

The Hater's Guide to Anthropic

https://www.wheresyoured.at/premium-the-haters-guide-to-anthropic/
2•gradus_ad•1m ago•0 comments

Scotiabank Divests from Elbit Systems

https://bdscoalition.ca/2026/02/16/scotiabank-fully-divests-from-elbit-systems/
2•pabs3•2m ago•0 comments

No 10 Am BTC Dump? Bitcoin Price Rallies as Jane Street Trading Draws Attention

https://www.ccn.com/news/crypto/no-10-am-btc-dump-bitcoin-price-rallies-as-jane-street-trading-dr...
1•shin_lao•3m ago•0 comments

Jane Street Hit with Terra $40B Insider Trading Suit

https://www.disruptionbanking.com/2026/02/24/jane-street-hit-with-terra-40b-insider-trading-suit/
1•shin_lao•4m ago•0 comments

The geomechanics of hydrogen storage in salt caverns [pdf]

https://assets.publishing.service.gov.uk/media/68aebcef3a052c9c504c8e60/The_geomechanics_of_hydro...
1•defrost•6m ago•0 comments

How to make LLM native User Interfaces - Post LLM Workflow

https://www.youtube.com/watch?v=F5_mbwUQeCs
1•anditherobot•9m ago•1 comments

Two Beliefs About Coding Agents: Devs Don't Realize What They Bring

https://www.dbreunig.com/2026/02/25/two-things-i-believe-about-coding-agents.html
1•dbreunig•10m ago•0 comments

Why are you still using Vercel?

https://why-vercel.pages.dev/
1•puzle•10m ago•0 comments

Your Move, Claude

https://escapesequence.dev/p/your-move-claude
2•crlfdata•14m ago•0 comments

Bioethics Was Forged in Horror. It Can Be Lost the Same Way

https://thereader.mitpress.mit.edu/bioethics-were-forged-in-horror-they-can-be-lost-the-same-way/
1•EA-3167•14m ago•0 comments

Show HN: ZSE – Open-source LLM inference engine with 3.9s cold starts

https://github.com/Zyora-Dev/zse
2•zyoralabs•14m ago•0 comments

Show HN: Taji – Portfolio advisor that's better than Fidelity's

https://www.taji.is/
2•kevin1chun•19m ago•0 comments

Therapist's Office Is Designed to Make You Cry

https://oedmethod.substack.com/p/your-therapists-office-is-designed
2•truenfel•20m ago•0 comments

The Texas AI boom is outpacing water regulations

https://www.texasobserver.org/texas-ai-data-centers-water-usage-regulation/
1•geox•21m ago•0 comments

I built a client portal for freelancers after the same conversation arised

https://www.retallio.app/
1•nemo30s•22m ago•1 comments

Against Query Based Compilers

https://matklad.github.io/2026/02/25/against-query-based-compilers.html
2•emschwartz•22m ago•0 comments

Discovering Multiagent Learning Algorithms with Large Language Models

https://arxiv.org/abs/2602.16928
1•gmays•28m ago•0 comments

Postgres Jsonb Columns and Toast: A Performance Guide

https://www.snowflake.com/en/engineering-blog/postgres-jsonb-columns-and-toast/
1•craigkerstiens•30m ago•0 comments

(paper money) Hedge Fund staffed by AI Employees (experiment)

https://platypi.empla.io
1•pokot0•34m ago•1 comments

Show HN: Bloomfilter – A service for AI agents to register and manage domains

https://bloomfilter.xyz/
1•eronmmer•36m ago•1 comments

Examining Bias and AI in Latin America

https://elpais.com/america/lideresas-de-latinoamerica/2026-02-25/genero-racismo-y-xenofobia-asi-s...
1•shakiness3383•36m ago•0 comments

Show HN: WebMCP Core – AI agent tool definitions from any site

https://github.com/keak-ai/webmcp-core
2•eman11•36m ago•0 comments

Tell HN: Cursor has an agent CLI, and it's better than Claude Code

2•melecas•37m ago•1 comments

Anthropic is dropping its signature safety pledge amid a heated AI race

https://www.businessinsider.com/anthropic-changing-safety-policy-2026-2
1•rahulskn86•38m ago•1 comments

Eleven Freedoms for Free AI

https://elevenfreedoms.org/
1•pabs3•41m ago•0 comments

Average Typing Speeds based on 221k user typing sessions

https://www.typequicker.com/average-typing-speed
1•absoluteunit1•43m ago•0 comments

WTF Happened in 2025?

https://wtfhappened2025.com/
4•swyx•46m ago•0 comments