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.

Ask HN: Do provisional patents matter for early-stage startups?

1•gdad•39s ago•0 comments

The Cost of Truth

https://www.samrian.com/blog/cost-of-truth
1•Abdulhafiz_F•3m ago•1 comments

Show HN: Self-hosted WhatsApp archive viewer with chat analytics

https://github.com/sabrieker/whatsapp-archive
1•sabri_eker•3m ago•0 comments

JSONata: A JSON query and transformation language

https://jsonata.org/
1•fanf2•3m ago•0 comments

Vibe coding an RSS feed – how hard can it be?

https://blog.fortrabbit.com/vibe-coding-an-rss-feed/
1•esher•4m ago•0 comments

Writing an LLM from scratch, part 32a – Interventions: training a baseline model

https://www.gilesthomas.com/2026/02/llm-from-scratch-32a-interventions-baseline-model
1•ibobev•6m ago•0 comments

Why Is the Sky Blue?

https://explainers.blog/posts/why-is-the-sky-blue/
2•udit99•6m ago•0 comments

Writing an LLM from scratch, part 32B – Interventions: gradient clipping

https://www.gilesthomas.com/2026/02/llm-from-scratch-32b-interventions-gradient-clipping
1•ibobev•6m ago•0 comments

Child internet safety campaign accused of censoring teenagers' speeches

https://www.theguardian.com/technology/2026/feb/08/childnet-internet-safety-campaign-accused-cens...
1•beardyw•6m ago•0 comments

Writing an LLM from scratch, part 32c – Interventions: removing dropout

https://www.gilesthomas.com/2026/02/llm-from-scratch-32c-interventions-removing-dropout
1•ibobev•6m ago•0 comments

Hello, Dada!

https://smallcultfollowing.com/babysteps/blog/2026/02/09/hello-dada/
2•weinzierl•7m ago•0 comments

Microbial Olympics: Super-duper one-celled athletes

https://knowablemagazine.org/content/article/living-world/2026/welcome-to-the-microbial-olympic-g...
1•PaulHoule•8m ago•0 comments

Trumpedia: Wiki Articles Rewritten by Trump

https://trumpedia.org/
1•nbaronia•10m ago•0 comments

How to Quiet a Ugreen 4800 Plus Without Sacrificing Drive Temps

https://blog.tymscar.com/posts/ugreen4800plusquiet/
1•tymscar•10m ago•0 comments

OpenClaw: I gave an AI my credit card and let it loose on Amazon

https://www.codedojo.com/?p=3243
1•surrTurr•10m ago•0 comments

Taiwan rejects possibility of transferring 40% of semiconductor capacity to US

https://www.tomshardware.com/tech-industry/semiconductors/taiwan-rejects-possibility-of-transferr...
1•pseudolus•10m ago•0 comments

Identification of Chlamydia pneumoniae in Alzheimer's disease retina

https://www.nature.com/articles/s41467-026-68580-4
1•bookofjoe•11m ago•0 comments

Tarot: XVII the Star: Quantum Computing

https://www.suzannetreister.net/HEXEN2/TAROT_COL/TAROT_Star-Quantum.html
1•isomorph•11m ago•0 comments

The Crank Spectrum

https://exple.tive.org/blarg/2026/02/07/on-the-crank-spectrum/
1•speckx•12m ago•0 comments

Show HN: ChatKeepsake – Turn iMessage Conversations into Printable Keepsakes

https://chatkeepsake.com/
1•ryan_gaudet•13m ago•0 comments

Hexen 2.0

https://www.suzannetreister.net/HEXEN2/TAROT_COL/HEXEN_2_TAROT.html
1•isomorph•14m ago•0 comments

The AGAT (Adventure Game Aptitude Test)

https://theagat.co/
1•JohnHendrix•14m ago•1 comments

Show HN: Open source setup to self-host OpenClaw instances on any host

https://github.com/Agent-3-7/openclaw-host-kit
7•vishnukool•14m ago•6 comments

Ask HN: What is this "boilerplate" of which you speak?

3•qwesfaqsfg•14m ago•1 comments

Sandboxels

https://neal.fun/sandboxels/
1•2sf5•14m ago•0 comments

Plausible – Find the definition of an obscure word among fake definitions

https://plausiblegame.com/en
1•alexdobrenko•17m ago•0 comments

How Does Truffle Taste? Strategic Lessons for Introducing Agentic Engineering

https://www.robert-glaser.de/the-elastic-loop-introducing-agentic-engineering-strategically/
1•youngbrioche•18m ago•0 comments

Show HN: AI Seedance 2 – Solving the "jump-cut" problem in AI video

https://www.aiseedance2.app
1•TurnItOffAndOn0•18m ago•0 comments

Twenty Five Percent Without Thinking

https://fakepixels.substack.com/p/twenty-five-percent-without-thinking
1•dmonay•19m ago•0 comments

New compliance page – open-source

https://compliance.getprobo.com/overview
1•ArthurMx•19m ago•0 comments