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

Claude Code Now Hides the Way It Works-But There's a Workaround

https://www.i-programmer.info/news/105-artificial-intelligence/18709-claude-code-now-hides-the-wa...
1•aquastorm•28s ago•0 comments

How AI is being used in war – and what's next

https://www.nature.com/articles/d41586-026-00710-w
1•geox•1m ago•0 comments

The iPod Classic Cheatsheet: A guide to our iPod world

http://www.yuuiko.space/iPodGuide/
1•luispa•1m ago•0 comments

Modernizing swapping: virtual swap spaces

https://lwn.net/Articles/1059201/
1•voxadam•1m ago•0 comments

Show HN: Cruxible Core – Deterministic decision engine with receipts for agents

https://github.com/cruxible-ai/cruxible-core
1•rmalone1097•2m ago•0 comments

Ask HN: Pricing model for internal OpenClaw agents others now ask to buy?

1•liaai0630•2m ago•0 comments

I regained control over the code my AI writes for me

https://archtocode.com
1•grzelazny•3m ago•1 comments

Show HN: LLM Price to Performance Tool

1•StratusBen•3m ago•0 comments

My coding agent built Figma from scratch

https://twitter.com/itsandrewgao/status/2029624157181497743
2•agtestdvn•4m ago•0 comments

What went wrong before anyone noticed

https://callitearly.substack.com/p/what-went-wrong-before-anyone-noticed
1•NickDouglas•5m ago•0 comments

Remotely unlocking an encrypted hard disk

https://jyn.dev/remotely-unlocking-an-encrypted-hard-disk/
1•janandonly•5m ago•0 comments

OpenAI's Codex is "now" on Windows

https://thenewstack.io/openais-codex-is-now-on-windows/
1•theanonymousone•6m ago•0 comments

GPT 5.4 is Launching

https://twitter.com/sama/status/2029622732594499630
2•jbegley•7m ago•0 comments

Wgsl-rs: Rust as a shader language

https://renderling.xyz/articles/introducing-wgsl-rs.html
1•fanf2•7m ago•0 comments

A Dream to Make an ERP System Come True Inside a Medical Device Facility

https://www.paxerp.com/blog/pax-origins
1•robeym•8m ago•1 comments

Docs Considered Harmful

https://tornikeo.com/docs-considered-harmful/
1•tornikeo•9m ago•0 comments

IntelliJ IDEA: The Documentary – An origin story [video]

https://www.youtube.com/watch?v=Kourq_Lz03U
1•blufish•9m ago•1 comments

Yet another job scheduler bug

https://iafisher.com/notes/2026/03/scheduler-bug
1•todsacerdoti•10m ago•0 comments

GPT-5.4 Thinking System Card

https://deploymentsafety.openai.com/gpt-5-4-thinking
1•vinhnx•10m ago•0 comments

Accepting user-supplied code is mostly fine

https://dimden.dev/blog/?id=15-webtiles-its-fine-to-accept-user-supplied-code-actually
2•birdculture•10m ago•0 comments

Built my first ever open-source project: Decision Guardian

1•poor_husteler•11m ago•0 comments

Show HN: Nexus Gateway – Reduce LLM API Costs Using Semantic Caching

https://www.nexus-gateway.org/
1•Sunnyanand_dev•12m ago•0 comments

Show HN: Aimux – tmux for AI coding agents

https://github.com/zanetworker/aimux
1•zanetworker•12m ago•0 comments

Show HN: GovernsAI – unified auth, memory, and PII guard across AI providers

https://www.governsai.com/
1•shaivpidadi•15m ago•0 comments

Telemetry helps. you still get to turn it off

https://ritter.vg/blog-telemetry.html
2•todsacerdoti•15m ago•0 comments

Moon Reactors (2026)

https://nmof.app.box.com/s/dhk54nhfonwr2g3jgbwubj5s4ip4rroy
2•joebig•16m ago•0 comments

Show HN: Pypistats – Real-time PyPI trends, AI insights and badges

https://pypistats.com
1•diverdale•17m ago•1 comments

Gorilla in the Node.js Ecosystem

https://thoughtzip.substack.com/p/the-gorilla-in-the-nodejs-ecosystem
1•deostroll•17m ago•0 comments

Ageless Linux: A Debian-based distro that is illegal to distribute in California

https://goblincorps.com/ageless-linux.html
2•vicethal•17m ago•1 comments

The A.I. disruption we've been waiting for has arrived

https://www.nytimes.com/2026/02/18/opinion/ai-software.html
3•pramodbiligiri•18m ago•0 comments