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

Show HN: PixelRipple – AI ads agent for e-commerce

https://www.pixelripple.ai/
1•zxzxy1988•52s ago•0 comments

Poolsuite CLI – Ultra-summer internet radio from your terminal

https://github.com/jamespember/poolsuite-cli
2•jep888•5m ago•1 comments

WordWalker Spanish

https://wordwalker.ca/
1•petedrinnan•5m ago•0 comments

Show HN: A 6.9B Moe LLM in Rust, Go, and Python

https://github.com/fumi-engineer/machine_learning
2•fumi2026•9m ago•1 comments

The Stirling Engine: A Wave of the Future Ago [video]

https://www.youtube.com/watch?v=KbnGlcQiL1c
1•akshatjiwan•10m ago•0 comments

Show HN: AI Tryon Product to Video Generator

https://aitryon.art/ai-product-to-video/
1•AITryon•14m ago•0 comments

Watch Cursor build a 3M+ line browser in a week

https://twitter.com/mntruell/status/2012825801381580880
2•hentrep•17m ago•0 comments

The Convolutional Neural Network

https://cocakoala.substack.com/p/the-convolutional-neural-network
1•imranmk•19m ago•0 comments

Writing Your First Compiler

https://popovicu.com/posts/writing-your-first-compiler/
2•thunderbong•21m ago•0 comments

Meta has discontinued its metaverse for work, too

https://www.theverge.com/tech/863209/meta-has-discontinued-its-metaverse-for-work-too
2•prawn•26m ago•0 comments

The Computational Web and the Old AI Switcharoo

https://www.fromjason.xyz/p/notebook/the-computational-web-and-the-old-ai-switcharoo/
1•jayveeone•31m ago•0 comments

Greenland Crisis

https://en.wikipedia.org/wiki/Greenland_crisis
2•handfuloflight•32m ago•0 comments

MH370 operational search reports

https://www.atsb.gov.au/mh370-pages/updates/reports
2•teleforce•38m ago•0 comments

Nushell 0.110.0

https://www.nushell.sh/blog/2026-01-17-nushell_v0_110_0.html
1•Fervicus•41m ago•0 comments

The AI revolution is here. Will the economy survive the transition?

https://post.substack.com/p/the-ai-revolution-is-here-will-the
3•mooreds•50m ago•0 comments

Show HN: 2FA2FA – 2FA Live Auth (Real-Time TOTP Authentication)

https://2fa2fa.com
1•SongDeYu•51m ago•1 comments

Show HN: Ops-Tools – a Rust-Based DevOps CLI Swiss Army Knife

https://github.com/DennySORA/Ops-Tools
1•dennysora•51m ago•0 comments

A fast Rust port of Steve Yegge's beads

https://github.com/Dicklesworthstone/beads_rust
1•sorenbs•55m ago•0 comments

CD Projekt issue DMCA takedown notice against popular Cyberpunk VR mod

https://www.patreon.com/posts/another-one-dust-148437771
6•wjdp•57m ago•0 comments

Air traffic control: the IBM 9020

https://computer.rip/2026-01-17-air-traffic-control-9020.html
2•pinewurst•1h ago•0 comments

Show HN: Anti-Detect.com – Browser Fingerprint Scanner

https://anti-detect.com/
1•SongDeYu•1h ago•0 comments

In Defense of Data Centers

https://www.deeplearning.ai/the-batch/issue-336/
1•nl•1h ago•1 comments

Why the Best AI Systems Are Still So Bad at Pokémon

https://time.com/7345903/ai-chatgpt-claude-gemini-pokemon/
1•26d0•1h ago•0 comments

Ask HN: How to find a sponsor?

1•TySchultz•1h ago•1 comments

San Francisco coyote swims to Alcatraz

https://www.sfgate.com/local/article/san-francisco-coyote-alcatraz-21302218.php
4•kaycebasques•1h ago•0 comments

People cannot "just pay attention" to (boring, routine) things

https://utcc.utoronto.ca/~cks/space/blog/tech/PeopleCannotPayAttention
3•todsacerdoti•1h ago•0 comments

All your OpenCodes belong to us

https://johncodes.com/archive/2026/01-18-all-your-opencodes/
3•jpmcb•1h ago•0 comments

The Code-Only Agent

https://rijnard.com/blog/the-code-only-agent
10•emersonmacro•1h ago•1 comments

Bring Back Ops Pride

https://charitydotwtf.substack.com/p/bring-back-ops-pride
3•mooreds•1h ago•2 comments

Show HN: Knowhere – Rust-Based SQL Engine with TUI and GUI (Built on DataFusion)

https://saivarunk.github.io/knowhere/
1•waxsum8•1h ago•0 comments