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.

Browse Code by Meaning

https://haskellforall.com/2026/02/browse-code-by-meaning
1•todsacerdoti•42s ago•0 comments

Retrocomputing (2020)

https://blog.information-superhighway.net/retrocomputing
1•tosh•1m ago•0 comments

Show HN: Multi-provider iOS usage alerts for AI subscription usage caps

https://0raculo.github.io/aiusagetracker-site/
1•afonsoduarte•1m ago•0 comments

Height-Safe Peptides for Muscle Growth

https://peptideunlock.com/blog/height-safe-peptides-for-muscle-growth-clavicular-inspired-protoco...
1•avirflux•2m ago•0 comments

The AI pro­ductiv­ity take-off is finally vis­ible

https://ft.pressreader.com/article/281857239993429
1•simonebrunozzi•3m ago•0 comments

San Francisco's 24-Hour Diner Stops the Cosmic Clock (2023)

https://www.altaonline.com/culture/food-drink/a44939075/san-franciscos-24-hour-diner-silver-crest...
1•NaOH•4m ago•0 comments

Large language models provide unreliable answers about public services

https://www.computerweekly.com/news/366638829/Large-language-models-provide-unreliable-answers-ab...
1•ohjeez•4m ago•0 comments

Why Didn't AI Replace Novelists?

https://old.reddit.com/r/Fantasy/comments/1r1csca/why_didnt_ai_replace_novelists/
1•dsr_•4m ago•0 comments

Get a portable monitor, they're great

https://davidgerard.co.uk/blockchain/2025/02/11/get-a-portable-monitor-theyre-great/
2•bariumbitmap•5m ago•0 comments

Hilbert Map of IPv6 address space

https://observablehq.com/@vasturiano/hilbert-map-of-ipv6-address-space
1•miyuru•7m ago•0 comments

Show HN: Idea validation using real problem discussions

https://startupmapafrica.com/idea-validation
1•muriithiKabogo•8m ago•0 comments

First Paying Customer in 24h

https://www.founderspace.work
1•VladCovaci•10m ago•1 comments

Failure Intelligence for AI Systems

https://github.com/prateekdevisingh/kakveda
1•prateekdalal•10m ago•1 comments

Maestro – Autonomous dev platform with multi-reviewer AI safety pipeline

https://www.maestro-orchestrator.dev
1•Romricci•10m ago•0 comments

Which AI deep research agent is the current best?

https://newsletter.aimuscle.com/p/which-ai-deep-research-is-the-best
1•Sherveen•10m ago•0 comments

US Military used Anthropic's AI model Claude in Venezuela raid, report says

https://www.theguardian.com/technology/2026/feb/14/us-military-anthropic-ai-model-claude-venezuel...
1•krunck•10m ago•0 comments

Lobster: My Personal AI Assistant

https://www.omarknows.ai/p/meet-lobster-my-personal-ai-assistant
1•mooreds•10m ago•0 comments

Shielded x402 – private agent transactions

https://github.com/nhestrompia/shielded-x402
1•nhestrompia•10m ago•1 comments

Building a FOSS live streaming camera

https://blog.brixit.nl/building-a-custom-live-streaming-camera/
2•todsacerdoti•10m ago•0 comments

Website can help you find content that isn't AI-generated

https://www.theshortcut.com/p/this-website-can-help-you-find-content-that-isnt-ai-generated
1•dangle1•12m ago•0 comments

Find the Peak of an Array in C

https://lautarolobo.xyz/blog/find-peak-of-array-c/
1•lautarolobo•12m ago•0 comments

A 3-Instruction Forth for Embedded Systems Work (1991)

https://pages.cs.wisc.edu/~bolo/shipyard/3ins4th.html
2•tosh•12m ago•0 comments

Cognitive Scientist Writes a Startling Play About A.I. Authoritarianism

https://www.nytimes.com/2026/02/16/opinion/play-ai-authoritarianism.html
2•zzzeek•13m ago•0 comments

The Internet's Nihilism Crisis

https://www.theatlantic.com/technology/2026/02/internet-nihilism-crisis/686010/
1•throw0101a•13m ago•2 comments

Cherry, a filter for AI generated PRs

https://cherry.gethopp.app/
2•iparaskev•13m ago•1 comments

He worked on Wall Street for nearly 50 years

https://www.cnn.com/2026/02/16/business/us-stocks-dow-howard-silverblatt
1•mooreds•14m ago•0 comments

You Are Not Defined by Your Phone Number. It's OK to Change It

https://www.nytimes.com/2026/02/10/magazine/changing-your-phone-number.html
1•mooreds•15m ago•0 comments

Hubble Captures Clearest View Yet of Egg Nebula

https://www.sci.news/astronomy/hubble-egg-nebula-14546.html
1•bookofjoe•17m ago•0 comments

Can agentic coding raise the quality bar?

https://lpalmieri.com/posts/agentic-coding-raises-quality/
1•Philpax•17m ago•0 comments

Towards Fearless Macros

https://lambdaland.org/posts/2023-10-17_fearless_macros/
1•fanf2•19m ago•0 comments