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.

400+ Companies, SMEs, startups supporting European digital sovereignty

https://eurostack.eu/industry-support/
1•doener•1m ago•0 comments

Creatine Causes Hairloss [video]

https://www.youtube.com/watch?v=sGX8F2ZthF8
1•onesandofgrain•1m ago•0 comments

Show HN: Open-source tool that turns audio into playable piano sheet music

https://github.com/Oh-Sheet-Team/oh-sheet
1•robin-raq•2m ago•0 comments

Show HN: XitDB – an immutable single-file database

https://github.com/xit-vcs/xitdb
1•xeubie•3m ago•0 comments

Show HN: Local.vibe – Give localhost ports real names

https://github.com/graiz/local.vibe
1•graiz•3m ago•0 comments

Arrow 1.1, a step forward in SVG generation

https://quiver.ai/blog/introducing-arrow-1-1/
1•Topfi•5m ago•0 comments

100000KM Without Gasoline – V8 Wood Gas Chevrolet Fleetside [video]

https://www.youtube.com/watch?v=bWnhtqDJwIU
1•AureliusMA•6m ago•0 comments

Open source protocol for tracking AI agent commitments with proof of delivery

https://github.com/Redas-Protocol/redas-protocol
1•lilknicks9•7m ago•0 comments

Is Nyxt Dead?

https://atlas.engineer/
1•fk_fk•9m ago•0 comments

Fine‑tuning Qwen3‑4B on a MacBook M1 for customer support

https://blog.layerx.xyz/fine-tuning-small-llm-customer-support
1•felltrifortence•11m ago•0 comments

DExit: The Three Trillion Dollar Corporate Exodus Almost No One Is Talking About

https://twitter.com/amuse/status/2044787387482448330
1•barry-cotter•12m ago•1 comments

Java 26 and the Rise of Agentic AI: The State of the Ecosystem (April 2026)

https://techlife.blog/posts/java-ecosystem-april-2026/
1•tsenturk•13m ago•0 comments

An AI system that runs an art exhibition and decides what gets made

https://performance-review.jonaslund.com/
1•jonaslund•13m ago•0 comments

Device found identified as Chinese undersea monitoring system

https://www.abc.net.au/news/2026-04-17/chinese-undersea-monitoring-system-lombok-strait/106569388
2•wslh•14m ago•0 comments

Engineering Managers are going to hate OpenClaw

https://zaidesanton.substack.com/p/engineering-managers-are-going-to
1•flail•14m ago•0 comments

Ask HN: Is static identity becoming a limitation in modern systems?

1•Gnobu•16m ago•0 comments

Navigable Degeneracy in the Roots of 1-Bit Language Models

https://github.com/sbenjam1n/Neagari
1•sbenjam1n•16m ago•1 comments

The Conflict in Iran Is Changing How Engine Oil Is Made

https://www.theautopian.com/why-the-conflict-in-iran-is-changing-how-engine-oil-is-made-and-causi...
1•mauvehaus•20m ago•0 comments

Datacenter vs. Megaprojects buildout as a percentage of GDP

https://twitter.com/QuintinPope5/status/2044964528312426890/photo/1
1•MrBuddyCasino•22m ago•0 comments

Adapt: an LLM-based memory layer that restructures itself

https://github.com/unbody-io/adapt
1•Amirhouieh•22m ago•0 comments

Anthropic chief Dario Amodei: 'I don't want AI turned on our own people'

https://www.ft.com/content/9e0e0fc6-ab7d-4b69-a8b1-5a972b82fb06
2•ironyman•22m ago•1 comments

Show HN: Planedrift – Play Infocom games in the browser

https://planedrift.app/
1•techbelly•23m ago•0 comments

Widespread occurrence of large molecular methylsiloxanes in ambient aerosols

https://acp.copernicus.org/articles/26/5005/2026/
1•atombender•24m ago•0 comments

Crypto Faces Increased Threat from Quantum Attacks

https://spectrum.ieee.org/quantum-safe-crypto
1•pseudolus•24m ago•0 comments

The EU's Digital Gulag Is (Apparently) Ready to Roll

https://www.nakedcapitalism.com/2026/04/the-eus-digital-prison-complex-is-ready-for-roll-out.html
1•iamnothere•24m ago•0 comments

Japanese police train for post-hibernation bear encounters

https://twitter.com/DudespostingWs/status/2044854086307049546
1•taubek•24m ago•0 comments

What Are Stablecoins Used for Today? Estimating the Distribution of Stablecoins

https://www.kansascityfed.org/research/payments-system-research-briefings/what-are-stablecoins-us...
1•RickJWagner•25m ago•0 comments

Bernie Sanders: AI is coming for the working class. We must fight

https://www.foxnews.com/opinion/sen-bernie-sanders-artificial-intelligence-coming-working-class-m...
1•RickJWagner•26m ago•0 comments

Validating Data in Go

https://nymity.ch/writing/articles/validation/
1•phw•27m ago•0 comments

Sam Altman's Side Hustles Blur the Line Between OpenAI's Interests and His Own

https://www.wsj.com/tech/ai/chatgpt-openai-ipo-altman-029ae6d5
1•megacorp•28m ago•0 comments