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.

The Second Half of the Chessboard

https://joshs.bearblog.dev/the-second-half-of-the-chessboard/
1•psychedare•1m ago•0 comments

Peter Steinberger: I need AI that scans every PR and Issue and de-dupes

https://twitter.com/steipete/status/2023057089346580828
1•vibeprofessor•2m ago•0 comments

Show HN: VOOG – Moog-style polyphonic synthesizer in Python with tkinter GUI

https://github.com/gpasquero/voog
2•gpasquero•2m ago•0 comments

Accessibility Is All You Need – Why agent protocols for the web are redundant

https://github.com/webmachinelearning/webmcp/issues/91
1•lulzx•2m ago•1 comments

Miller – CLI tool for querying, shaping, and reformatting data in many formats

https://miller.readthedocs.io/en/6.16.0/
2•smartmic•3m ago•0 comments

What Happened in El Paso? – By James Fallows

https://fallows.substack.com/p/what-happened-in-el-paso
1•MaysonL•4m ago•0 comments

I made a real BMO local AI agent with a Raspberry Pi and Ollama

https://www.youtube.com/watch?v=l5ggH-YhuAw
1•emigre•8m ago•0 comments

Show HN: Let AI agents try things without consequences

https://github.com/multikernel/branching
1•wang_cong•8m ago•0 comments

California Drastically Reduces Creditor Exemptions for Qualified Accounts (2024)

https://www.forbes.com/sites/jayadkisson/2024/10/07/california-drastically-reduces-creditor-exemp...
1•dataflow•13m ago•0 comments

Show HN: A tool to keep dotfiles and system configs in sync with a Git repo

https://github.com/senotrusov/etcdotica
1•senotrusov•14m ago•0 comments

Show HN: Design Memory – Extract design systems from live websites via CLI

https://github.com/memvid/design-memory
1•saleban1031•15m ago•0 comments

Kimi Claw

https://twitter.com/Kimi_Moonshot/status/2023029674549596301
1•tosh•16m ago•0 comments

Show HN: GPU Perpetual Futures Prototype

https://github.com/zacharyfrederick/compex
1•ozzymandiaz96•22m ago•0 comments

Show HN: DoScript – Automation language with English-like syntax

https://github.com/TheServer-lab/DoScript
1•server-lab•22m ago•0 comments

Ideas for an Agent-Oriented Programming Language

https://davi.sh/blog/2026/02/markov-ideas/
1•davish•22m ago•0 comments

Show HN: I've Seen the Future of the Software "Engineer" Gig – It's Orwellian AF

3•burnerToBetOut•28m ago•0 comments

Attack. Attack. Attack

https://twitter.com/ADoricko/status/1868113416805814530
1•mold_aid•28m ago•1 comments

Dell XPS Core Ultra 7 355 Panther Lake: Still great, but not nearly as special

https://www.notebookcheck.net/Dell-XPS-14-Core-Ultra-7-355-review-Still-great-but-not-nearly-as-s...
1•cromka•29m ago•1 comments

DDD: Back to Basics

https://docs.eventsourcingdb.io/blog/2026/02/16/ddd-back-to-basics/
1•goloroden•30m ago•0 comments

Show HN: OpenContext – Bring Your Own Coding Agent, Local-First, No Vendor Lock

https://github.com/adityak74/opencontext
1•akarnam37•32m ago•0 comments

We Uncovered the Scheme Keeping Grocery Prices High [video]

https://www.youtube.com/watch?v=odhVF_xLIQA
4•dataflow•34m ago•0 comments

Show HN: iherb-CLI – An agent-optimized CLI for AI-driven supplement research

https://github.com/SeverinAlexB/iherb-cli
1•sebubu•35m ago•0 comments

Is End-to-End Encryption Optional for Large Groups?

https://soatok.blog/2026/02/14/is-end-to-end-encryption-optional-for-large-groups/
1•iamnothere•37m ago•0 comments

Defer Available in GCC and Clang

https://gustedt.wordpress.com/2026/02/15/defer-available-in-gcc-and-clang/
2•ingve•38m ago•0 comments

USB overclock Linux kernel module

https://github.com/p0358/usb_oc-dkms
1•rhim•39m ago•0 comments

AI-enabled stethoscope twice as efficient at detecting heart disease

https://www.escardio.org/news/press/press-releases/ai-stethoscope/
1•geox•42m ago•2 comments

Show HN: Nomousemode – keyboard window switcher for macOS

https://nomousemode.vercel.app/
1•ahalurooji•44m ago•0 comments

Utah homes are 3.5x the size of the typical British one

https://brilliantmaps.com/home-size-us-europe/
3•delichon•44m ago•2 comments

Show HN: Please hack my C webserver (it's a collaborative whiteboard)

https://ced.quest/draw/
1•cedric_h•46m ago•0 comments

Show HN: Refine.tools – 10 free AI career tools, no signup, no data stored

https://www.refine.tools/
1•HarakiriGod•48m ago•0 comments