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.

Don't Call It a Moat

https://99d.substack.com/p/dont-call-it-a-moat
1•herbertl•4m ago•0 comments

A satellite-smashing chain reaction could spiral out of control

https://www.theguardian.com/science/ng-interactive/2026/mar/31/this-feels-fragile-how-a-satellite...
1•andrewshadura•4m ago•0 comments

LinkedIn uses 65GB of RAM with 7 tabs opened

3•daniele_dll•7m ago•0 comments

Introducing Simple Mode

https://docs.eventsourcingdb.io/blog/2026/04/01/introducing-simple-mode/
2•goloroden•8m ago•0 comments

TerraLenses – Explore Countries – cultures, landscapes, facts, and comparisons

https://terralenses.com/
1•Badassbob•9m ago•1 comments

Make your own GitHub health indicator and LED lamp

https://github.com/davenicoll/usermod-github-health
1•binarysneaker•11m ago•1 comments

Wastrelly Wabbits

https://wingolog.org/archives/2026/03/31/wastrelly-wabbits
1•davexunit•11m ago•0 comments

How we chose Positron's Python type checker

https://positron.posit.co/blog/posts/2026-03-31-python-type-checkers/
2•nomial•12m ago•0 comments

Logan Bartlett's Reflections on the State of the Software and AI Market

https://twitter.com/loganbartlett/status/2037638091671035994
1•nadis•13m ago•0 comments

Show HN: I'm making it much easier to sell your side project / small business

https://weensy.xyz
1•mjhcodes•13m ago•0 comments

Forgotten Italian CPU – The Genesys B52 MMX (2021)

https://www.cpushack.com/2021/08/12/forgotten-italian-cpu-the-genesys-b52-mmx/
1•WaluigiBSOD•13m ago•0 comments

Show HN: Virtui – TUI session automation and recording for agents

https://github.com/honeybadge-labs/virtui
3•rotemtam•15m ago•0 comments

Weeks After Denouncing Censorship, Zuckerberg Texted Musk to Remove DOGE Content

https://www.techdirt.com/2026/03/31/weeks-after-denouncing-government-censorship-on-rogan-zuckerb...
3•tastyface•15m ago•0 comments

Show HN: Bulk posting with CSV for your interns

https://info.bundle.social/api-reference/bulk-posts-csv
2•marcelbundle•15m ago•0 comments

In-process circuit breaker that kills runaway AI agents before they go rogue

https://github.com/aeneassoft/aeneassoft
2•aeneassoft•16m ago•0 comments

Package Upgrades Feel Like Russian Roulette

https://ziva.sh/blogs/npm-supply-chain-roulette
1•OsrsNeedsf2P•17m ago•0 comments

Meta-Harness: End-to-End Optimization of Model Harnesses

https://yoonholee.com/meta-harness/
1•forthwall•17m ago•0 comments

Show HN: King Louie a local multi-machine AI assistant

https://github.com/the-banana-tool/king-louie
1•sethito•20m ago•1 comments

Ordinary Lab Gloves May Have Skewed Microplastic Data

https://nautil.us/ordinary-lab-gloves-may-have-skewed-microplastic-data-1279386
2•WaitWaitWha•20m ago•0 comments

NASA Teams Readying Artemis II Moon Rocket for Launch

https://www.nasa.gov/blogs/missions/2026/03/31/nasa-teams-readying-artemis-ii-moon-rocket-for-lau...
3•benlarweh•21m ago•0 comments

Pretext: Dynamic Layout

https://chenglou.me/pretext/dynamic-layout/
1•niraj-agarwal•21m ago•0 comments

1-Bit Bonsai: The First Commercially Viable 1-Bit LLMs

https://prismml.com/news/bonsai-8b
1•wmf•22m ago•0 comments

Nah – Free tools. No catch

https://nah.tools/
3•vrennat•22m ago•0 comments

Node Banana – Open, Local Alternative to Weavy/Flora

https://github.com/shrimbly/node-banana
1•falloon•23m ago•0 comments

Samsung's new app claims to alleviate motion sickness using sound

https://www.theverge.com/tech/904579/samsung-hearapy-mobile-app-galaxy-buds-motion-sickness-symptoms
1•jerlam•25m ago•1 comments

Xenv.sh – the first secrets manager built for AI agents

https://xenv.sh/
1•brettgo1•28m ago•0 comments

A dot a day keeps the clutter away

https://scottlawsonbc.com/post/dot-system
2•scottlawson•28m ago•0 comments

Oracle reportedly cuts jobs to fund its AI infrastructure push

https://the-decoder.com/oracle-reportedly-lays-off-thousands-of-employees-to-bankroll-its-massive...
1•alwillis•28m ago•0 comments

Breaking into a Govee Smart Display: From UART Shell to Device Impersonation

https://blog.kulkan.com/breaking-into-a-govee-smart-display-from-uart-shell-to-device-impersonati...
1•rmast•31m ago•0 comments

Hex editor should color-code bytes

https://simonomi.dev/blog/color-code-your-bytes/
1•sedatk•33m ago•0 comments