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

Apple AI Glasses Will Rival Meta's with Several Styles, Oval Cameras

https://www.bloomberg.com/news/newsletters/2026-04-12/apple-ai-smart-glasses-features-styles-colo...
1•smurda•13s ago•0 comments

Invoicly – Free invoice generator for freelancers, no login required

https://invoicly.io/
1•skillsettler•3m ago•1 comments

Show HN: Thesaner.com – a troll-proof platform for harder discussions

1•abhishek0922•3m ago•0 comments

BGPChained [pdf]

https://bgpchained.github.io/bgp.pdf
1•uchenic•5m ago•0 comments

Reports of RAG's death have been greatly exaggerated

https://atomicapp.ai/blog/llm-wiki-needs-a-substrate/
1•kenforthewin•6m ago•0 comments

No Manual Screenshots: I Built a Scalable Screenshot API Using Cloud Playwright

1•pageops_fz•8m ago•0 comments

Ask HN: Thought experiment: AGI giving us answers we don't like?

1•Arodex•9m ago•0 comments

Show HN: Grove – Open-source remote MCP server for Obsidian vaults

https://github.com/jmilinovich/grove
1•jmilinovich•10m ago•0 comments

Inter-Channel Decorrelation Below R=0.01 with Spatial Autocorrelation Above 0.99 [pdf]

https://github.com/PearsonZero/asymmetric-channel-decorrelation/blob/main/baetzel_2026_asymmetric...
1•PearsonZero•12m ago•0 comments

Show HN: UniText – Industrial-grade Unicode text engine for Unity

https://github.com/LightSideKittens/UniText
1•malvislight•12m ago•0 comments

Show HN: SEOLint – MCP server that lets Claude scan any site for SEO issues

https://seolint.dev
1•cleverdash•12m ago•1 comments

Show HN: LogicPearl – Synthesizing deterministic executable logic from traces

https://github.com/LogicPearlHQ/logicpearl
2•kenerwin88•13m ago•1 comments

Daycare Illnesses

https://blog.ninapanickssery.com/p/daycare-illnesses
1•barry-cotter•17m ago•1 comments

Peat – A typed functional language that compiles to JavaScript

https://peat-lang.fly.dev/
1•asiimo•18m ago•0 comments

Show HN: Host, share, promote and track release artifacts via your coding agent

https://jfrog.com/fly/
2•guyle•23m ago•0 comments

ASI-Evolve: AI Accelerates AI

https://arxiv.org/abs/2603.29640
1•foruhar•23m ago•0 comments

Show HN: Bor – Policy management for Linux desktops

https://getbor.dev/
1•eniac111•25m ago•0 comments

Toward an Open-Source Playbook for OpenClaw Deployment

https://autoclaw.sh
5•anuveyatsu•26m ago•0 comments

Amazon rolls out 1-hour, 3-hour delivery

https://www.cnbc.com/2026/03/17/amazon-rolls-out-1-hour-3-hour-delivery-in-latest-fast-shipping-t...
2•surprisetalk•29m ago•1 comments

Algebrica: A Mathematical Knowledge Base

https://algebrica.org/
3•surprisetalk•29m ago•0 comments

Think Tanks Have Defeated Democracy

https://letter.palladiummag.com/p/early-article-think-tanks-have-defeated
1•surprisetalk•29m ago•0 comments

Conflict is the art of checking underneath the rocks

https://www.avabear.xyz/p/conflict-is-the-art-of-checking-underneath
1•surprisetalk•29m ago•0 comments

Key evidence disappears from Tesla involved in crash

https://electrek.co/2026/04/13/tesla-norway-crash-evidence-stolen-network-card-missing/
4•doener•32m ago•0 comments

Show HN: Techno Kick

https://technokick.com
1•stagas•32m ago•0 comments

Show HN: Voight-Kampff Machine: Diagnostics of the "Is" vs. "Wish" Clash

https://zenodo.org/records/19538276
1•Weatherill•33m ago•1 comments

The exponential curve behind open source backlogs

https://armanckeser.com/writing/jellyfin-flow
2•armanckeser•34m ago•0 comments

The Usefulness of Useless Knowledge

https://timharford.com/2026/04/the-usefulness-of-useless-knowledge/
2•rpgbr•34m ago•0 comments

Absurd in Production: Durable Execution with Just Postgres

https://lucumr.pocoo.org/2026/4/4/absurd-in-production/
1•lapnito•36m ago•0 comments

The missing catalogue: why finding books in translation is still so hard

https://blogs.lse.ac.uk/impactofsocialsciences/2026/04/13/the-missing-catalogue-why-finding-books...
2•AusiasTsel•36m ago•0 comments

OpenAI Codex Telepathy feature flag: sidecar for passive screen-context memories

https://github.com/openai/codex/pull/17777/commits/da513220f971346718399012300665a93dfb8883
1•matthieu_bl•37m ago•0 comments