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.

California tax blitz in 2026 hits everyone – and it's only the start

https://nypost.com/2026/02/12/us-news/californians-have-justified-outrage-over-2026-tax-ideas/
1•SunshineTheCat•32s ago•0 comments

WinGet Configuration: Set up your dev machine in one command

https://developer.microsoft.com/blog/winget-configuration-set-up-your-dev-machine-in-one-command
1•ibobev•42s ago•0 comments

Instagram's URL Blackhole

https://medium.com/@shredlife/instagrams-url-blackhole-c1733e081664
1•tkp-415•2m ago•1 comments

Show HN: An API for on-chain swap

https://roissingue.com/
1•lakonguina•2m ago•0 comments

What happens inside Postgres when IOPS runs out

https://frn.sh/bio/
1•shellpipe•2m ago•0 comments

Sharp temperature contrasts seen in the Northern Hemisphere in January

https://climate.copernicus.eu/sharp-temperature-contrasts-seen-northern-hemisphere-january
1•geox•2m ago•0 comments

Frogbull Recreates Minecraft on Saturn

https://www.segasaturnshiro.com/2026/02/13/frogbull-recreates-minecraft-on-saturn/
1•MBCook•3m ago•0 comments

Remember to occasionally sass back at LLMs

https://www.globalnerdy.com/2026/02/13/remember-to-occasionally-sass-back-at-llms/
1•speckx•3m ago•0 comments

In Defense of SaaS

https://finbarr.site/2026/02/12/in-defense-of-saas.html
1•Finbarr•3m ago•0 comments

TypeScript 6.0 Beta

https://devblogs.microsoft.com/typescript/announcing-typescript-6-0-beta/
1•ibobev•4m ago•0 comments

Show HN: Flemma – a Neovim plugin where the .chat buffer is the conversation

2•StanAngeloff•5m ago•0 comments

Why does request.remote_IP work on Heroku but not Render?

https://rohitpaulk.com/articles/render-rails-remote-ip
1•rohitpaulk•6m ago•0 comments

Only use agents for tasks you know how to do

https://zknill.io/posts/only-ai-tasks-you-know-how-to-do/
1•zknill•6m ago•0 comments

How teaching molecules to think is revealing what a 'mind' is

https://www.newscientist.com/article/2513815-how-teaching-molecules-to-think-is-revealing-what-a-...
1•pella•6m ago•1 comments

Home Sales in January Posted Biggest Monthly Decline in Nearly Four Years

https://www.wsj.com/economy/housing/homes-sales-in-january-post-biggest-monthly-decline-in-nearly...
1•gmays•7m ago•0 comments

Most white-collar tasks will be automated by AI within 18 months

https://www.businessinsider.com/microsoft-ai-ceo-mustafa-suleyman-white-collar-tasks-automation-p...
1•afshinmeh•8m ago•0 comments

Scientific sleuthing solves vaccine side-effect

https://news.flinders.edu.au/blog/2026/02/12/scientific-sleuthing-solves-vaccine-side-effect/
2•gmays•9m ago•0 comments

Sunlight extracts oxygen from regolith using solar chemistry

https://phys.org/news/2026-02-sunlight-oxygen-regolith-solar-chemistry.html
1•krunck•9m ago•0 comments

Building context-efficient AI agents with Bash and a CLI

https://tool.store/blog/building-context-efficient-agents#references
3•appcypher•10m ago•0 comments

Show HN: Codex HUD – Claude-HUD Style Status Line for Codex CLI

https://github.com/anhannin/codex-hud
2•anhm720•12m ago•0 comments

A Deep Dive into Apple's .car File Format

https://dbg.re/posts/car-file-format/
2•todsacerdoti•13m ago•0 comments

Helion achieves new fusion energy milestones

https://www.helionenergy.com/articles/helion-achieves-new-fusion-energy-milestones/
2•bottombutton•14m ago•0 comments

Why is Bezos trolling Musk on X with turtle pics? Because he has a new Moon plan

https://arstechnica.com/space/2026/02/why-is-bezos-trolling-musk-on-x-with-turtle-pics-because-he...
2•themgt•14m ago•0 comments

Before the Super Bowl, Seahawks kicker Jason Myers was so calm he felt nervous

https://www.nytimes.com/athletic/7041544/2026/02/13/seahawks-jason-myers-super-bowl-routine/
1•Mernit•15m ago•0 comments

Researchers: The insights drones can provide by monitoring corn on small farms

https://phys.org/news/2026-01-insights-drones-corn-small-farms.html
1•PaulHoule•15m ago•0 comments

Relationship Wrapped with Claude Code and iMessage

https://claudentines.ai/
1•ajspencer•16m ago•0 comments

URLs with Trailing Punctuation

https://www.redblobgames.com/blog/2026-02-12-urls-with-trailing-punctuation/
1•ibobev•16m ago•0 comments

GitButler CLI Is Good

https://matduggan.com/gitbutler-cli-is-really-good/
1•birdculture•16m ago•0 comments

Toolspotting: Earn cash for speaking about AI tools

https://www.toolspotting.com/
3•p2pai•16m ago•0 comments

Amazon cosplayed the villain from my sci-fi novel on launch day

https://elidorascodex.com/product/the-elidoras-codex-books-1-2-bundle/
2•Elidorascodex•17m ago•1 comments