frontpage.
newsnewestaskshowjobs

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•1y 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•1y 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•1y 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.

Welcome to our benchmark, where everything's made up and the points don't matter [video]

https://www.youtube.com/watch?v=UwqyN-6tPKo
1•izzymiller•1m ago•0 comments

High Performance Distributed Inference with Ray Serve LLM

https://www.anyscale.com/blog/high-performance-distributed-inference-ray-serve-llm-vllm-google-ku...
1•robertnishihara•2m ago•0 comments

Localize your next sass with i18.dev

1•sacsandk•2m ago•0 comments

Ask HN: Do you find vibe coding / agentic engineering to be fulfilling?

1•uejfiweun•2m ago•0 comments

Cactus is being rewritten for Linux/FreeBSD in Zig/DVUI. Windows support dropped

https://ziggit.dev/t/cactus-is-being-completely-rewritten-for-linux-and-freebsd-in-zig-dvui-and-w...
1•fearedbliss•3m ago•0 comments

Foundry-5: browser puzzle game that teaches you real RISC-V assembly

https://atticarun.itch.io/foundry-5
1•self•3m ago•0 comments

UK Environment Agency threatens to prosecute campaigner after waterway cleanup

https://www.theguardian.com/environment/2026/jun/17/campaigner-threatened-prosecution-environment...
1•mellosouls•4m ago•0 comments

Qantas plans a 22-hour London-Sydney nonstop flight, set for October next year

https://apnews.com/article/australia-qantas-longest-flight-sydney-london-4909f75c692b83cbe3b9e443...
1•wyclif•5m ago•0 comments

The Century Safe

https://99percentinvisible.org/episode/100-objects-001-the-century-safe/
1•gmays•6m ago•0 comments

Facing LLM-Gen-AI in FOSS

https://sfconservancy.org/llm-gen-ai/
1•kristianpaul•7m ago•0 comments

An AI teammate that builds itself: how we wired Avery into our company's DNA

https://buildforever.com/engineering/posts/an-ai-teammate-that-builds-itself
2•fishpham•7m ago•0 comments

Kubernetes in the Browser

https://github.com/ngrok/webernetes
1•FelipeCortez•7m ago•0 comments

Quantifying LLM Cost Savings from Cache-Aware Inference Routing

https://www.auriko.ai/reports/llm-cost-arbitrage
3•zxy-action•8m ago•1 comments

Leak Hunt: Find the leaked secret

https://hunt.infisical.com/
3•FinnLobsien•8m ago•0 comments

Modeling the Performance of the Burevestnik Nuclear-Powered Cruise Missile

https://text.npr.org/2026/06/18/nx-s1-5843252/russia-nuclear-powered-missile-burevestnik
2•js2•8m ago•1 comments

I Was Spending More Time Looking for Clients Than Doing the Work

https://www.leadlu.com
1•brevn•10m ago•0 comments

Looking Ahead to Postgres 19

https://www.snowflake.com/en/blog/engineering/postgresql-19-features-beta/
2•craigkerstiens•15m ago•0 comments

A Missing Piece in Climate Models: Nature's Own Emissions

https://e360.yale.edu/features/warming-induced-ecosystem-emissions
1•Brajeshwar•15m ago•0 comments

Eot-bench: Open benchmark suite for end-of-turn detection in voice AI

https://github.com/livekit/eot-bench
1•codestackr•15m ago•0 comments

GPT-5 writing a Singularity scenario (2025)

https://www.lesswrong.com/posts/dT3StLjeJG7ordQGm/gpt-5-writing-a-singularity-scenario
2•Gooblebrai•18m ago•0 comments

iOS 27 Adds Four New Features to Notes App, Including Markdown Copy-and-Paste

https://www.macrumors.com/2026/06/17/ios-27-apple-notes-app-new-features/
2•Tomte•18m ago•0 comments

Infection found in wildlife evolved to spread between humans

https://www.dailymail.com/health/article-15911213/virus-dermatophilosis-human-transmission-europe...
2•Bender•19m ago•0 comments

PyQt6 now ships the Designer plugin on conda-forge, fixing a 6-year gap

https://github.com/conda-forge/pyqt-feedstock/pull/184
2•ludmilaklenova•19m ago•0 comments

Migrating from GNU Stow to Chezmoi

https://rednafi.com/misc/chezmoi/
3•speckx•19m ago•0 comments

Opus and regression when you go past state of the art

1•dleech•20m ago•2 comments

The Download: a new hunt for dark matter and Kenya's case for going solar

https://www.technologyreview.com/2026/06/18/1139261/the-download-dark-matter-hunt-kenya-solar-power/
2•joozio•20m ago•0 comments

Show HN: Prompt Foundry-tasks with focused context + instructions = sharper AI

https://marketplace.visualstudio.com/items?itemName=sdevries.prompt-foundry
1•espresso_dev•21m ago•0 comments

Why Deleted Mac Apps Leave Files Behind

https://crufti.app/blog/why-deleted-mac-apps-leave-files-behind
2•gbourne•21m ago•0 comments

Performance Has Layers

https://oxide.computer/blog/performance-has-layers
1•robin_reala•21m ago•0 comments

A PostgreSQL Database for Every Agent: In-Database RAG, Graph, and Multitenancy

https://www.yugabyte.com/blog/a-postgresql-database-for-every-agent/
2•bug2man•24m ago•0 comments