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.

Perplexity Computer – The Age of AI Agents Is Here

https://medium.com/seeds-for-the-future/perplexity-computer-the-age-of-ai-agents-is-here-958b3388...
1•hungryminded•51s ago•0 comments

Architectural Decisions That Will Make or Break Your AI Product

https://kb-it.net/5-architectural-decisions-that-will-make-or-break-your-ai-product/
1•better-it•1m ago•0 comments

Show HN: Httap – intercept and inspect HTTP traffic from your shell or agent

https://github.com/mtford90/httap
1•mtford•4m ago•0 comments

Best books/guides to learn about Stable coins in 2026

1•karti03•4m ago•0 comments

Lawmakers say US Military used laser to take down Border Protection drone in TX

https://apnews.com/article/military-laser-border-drone-texas-airport-55aaab7093f7d6dd174f909f3875...
1•thinkcontext•4m ago•0 comments

How Neoliberalism Broke Britain (2023)

https://tribunemag.co.uk/2023/10/breaking-britain-neoliberalism
1•robtherobber•5m ago•0 comments

Show HN: Shannon – Local desktop app to orchestrate Claude Code agent teams

1•lydionfinance•5m ago•0 comments

ChatGPT Advanced Data Analysis vs. Local Alternatives: A Privacy Comparison

https://www.queryveil.com/blog/chatgpt-data-analysis-privacy-comparison
1•david-rodriguez•6m ago•1 comments

Anomaly Detection in Web Traffic:Comparing Z-Score, Tukey, Grubbs Methods with R

https://www.gironi.it/blog/en/anomaly-detection-how-to-identify-outliers-in-your-data/
1•dj-trondheim•10m ago•0 comments

Show HN: ClawDaddy – Deploy OpenClaw by chatting with one on Telegram

https://clawdaddy.run/
1•ken2049•12m ago•0 comments

Block Layoffs

https://finance.yahoo.com/news/jack-dorsey-block-slashes-nearly-041816081.html
1•lyfeninja•14m ago•1 comments

Show HN: We built a public CTF to stress-test AI agent guardrails

https://vault.aport.io/
1•uchibeke•14m ago•1 comments

Show HN: AliveUI – CSS framework with motion and depth as first-class primitives

https://www.aliveui.dev/
1•pratikshadake•16m ago•0 comments

Show HN: I built a mortgage repayment strategy comparison tool

https://repay.mortgage/
1•ifeld•17m ago•0 comments

Bully

1•patrickvillamor•18m ago•0 comments

Nintendo's partners are selling $2B in company shares

https://hanafuda.report/articles/nintendo-partners-selling-2-billion-in-shares-buyback-stock/
1•brandrick•21m ago•0 comments

How China is masking drone flights in potential Taiwan rehearsal

https://www.reuters.com/world/china/how-china-is-masking-drone-flights-potential-taiwan-rehearsal...
1•giuliomagnifico•22m ago•0 comments

Show HN: Minima.js – a web-standards back end framework with req context via ALS

https://minimajs.com
1•md-adil•22m ago•0 comments

The Twilight of the Smartphone

https://www.dezeen.com/2025/06/26/smartphone-era-jony-ive-ai
1•_reza•23m ago•0 comments

Coding Agents Wrote a Chess Engine in Pure TeX

https://blog.mathieuacher.com/TeXCCChessEngine/
1•morgangiraud•23m ago•0 comments

PewDiePie trains his own AI coding model [video]

https://www.youtube.com/watch?v=aV4j5pXLP-I
2•mliezun•28m ago•0 comments

Mnet, a new TCP/IP stack in pure OCaml for unikernels

https://discuss.ocaml.org/t/ann-mnet-a-new-tcp-ip-stack-for-unikernels-in-ocaml/17851
2•dinosaure•31m ago•0 comments

Field Artillery Training. 1914

https://gutenberg.org/cache/epub/78053/pg78053-images.html
1•petethomas•38m ago•1 comments

Open Source Handheld Linux Device [video]

https://www.youtube.com/watch?v=QxqeU8ZfaYg
5•machinehum•43m ago•4 comments

A Living Personal Website

https://www.youtube.com/watch?v=TNnr_Esk3BQ
3•indigodaddy•47m ago•0 comments

Show HN: Inktide – Dead simple reading tracker with fast book search

https://inktide.com/welcome
2•sd9•50m ago•1 comments

MitID, Denmarks sole digital ID, has been down for over an hour and counting

https://www.digitaliser.dk/mitid/nyt-fra-mitid/2026/feb/driftsforstyrrelser-mitid
41•mousepad12•50m ago•41 comments

Best way to hire software developer – a better way to test AI skills

1•reeeesab•52m ago•1 comments

Show HN: My brother and I built a BI tool with zero UI for data consumers

https://bonnard.dev
5•maxmealing•55m ago•3 comments

Show HN: Rynko Playground – 400ms JSON-to-PDF and Excel Engine

https://app.rynko.dev/playground
1•ksrijith•57m ago•0 comments