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.

Show HN: Blur Reveal Input – CSS blur for password fields (hover/touch)

https://github.com/iLoveMyCat/blur-reveal-input
1•shalito•48s ago•0 comments

Go the right way: the Zen of Go coding

https://bitfieldconsulting.com/posts/go-right-way
1•ingve•1m ago•0 comments

Show HN: I built a tool to check if someone is real online

https://nexid.id
1•idsearcher•2m ago•0 comments

Show HN: PIrateRF – Turn a $20 Raspberry Pi Zero into a 12-mode RF transmitter

https://github.com/psyb0t/piraterf
1•metadescription•2m ago•0 comments

Doctor Xælong, or: How I learnt to stop worrying and love AI

https://www.tweag.io/blog/2026-02-12-doctor-xaelong/
1•Xophmeister•2m ago•0 comments

A C compiler in TypeScript, Written by Claude

https://github.com/Rajeev-K/c-compiler
1•rajeev-k•2m ago•0 comments

Show HN: WC26-MCP – 18 tools for World Cup 2026 data for your AI

https://wc26.ai
1•jordanlyall•3m ago•1 comments

Imagecli: A single-binary Rust CLI for image processing

https://github.com/mlaprise/imagecli
1•laprise•4m ago•1 comments

Search, not AI, is still king

https://babin.posthaven.com/search-not-ai-is-still-king
1•nibab•4m ago•0 comments

We've become aware of legal proceedings in Spain that affect Proton VPN

https://twitter.com/ProtonVPN/status/2023737986899472551
1•akyuu•4m ago•1 comments

My Courses Site Is Moving to a New Home

https://blog.miguelgrinberg.com/post/my-courses-site-is-moving-to-a-new-home
1•ibobev•5m ago•0 comments

Planetary Scientists Discover Recent Tectonic Activity on the Moon

https://www.si.edu/newsdesk/releases/smithsonian-planetary-scientists-discover-recent-tectonic-ac...
1•geox•5m ago•0 comments

Why I'm Worried About Job Loss and Thoughts on Comparative Advantage

https://www.lesswrong.com/posts/YPJHkciv6ysgsSiJC/why-i-m-worried-about-job-loss-thoughts-on-comp...
1•cubefox•6m ago•0 comments

Using agents to prevent slop, not produce it

https://rieble.com/blog/hands-off-coding/
1•riebnik•6m ago•0 comments

Type-based alias analysis in the Toy Optimizer

https://bernsteinbear.com/blog/toy-tbaa/
1•ibobev•6m ago•0 comments

Fortran Parsing Algorithm

https://buttondown.com/jaffray/archive/fortran-parsing-algorithm/
1•ibobev•7m ago•0 comments

Kakveda v1.0.3: SDK-first governance layer for AI agents

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

Task Factory: A lean manufacturing inspired task queue for AI coding

https://github.com/patleeman/task-factory
1•patleeman•8m ago•0 comments

Show HN: Rm-MCP – Give Claude/OpenClaw access to your reMarkable tablet

https://github.com/wavyrai/rm-mcp
2•thijsverreck•10m ago•0 comments

Show HN: Podscript – Podcast/YouTube Transcription CLI

https://github.com/timf34/podscript
1•timf34•11m ago•0 comments

Everything looks like a nail (*2023)

https://www.wheresyoured.at/everything-looks-like-a-nail/
1•hansmayer•11m ago•0 comments

Don't trust people who don't use Claude Code

https://theredline.versionstory.com/p/dont-trust-people-who-dont-use-claude
2•jpbryan•12m ago•0 comments

Hpke-HTTP – End-to-end encrypt HTTP API bodies, even behind Cloudflare

https://github.com/dualeai/hpke-http
1•clemlesne•12m ago•1 comments

Omniscient – Never forget a CLI command again (AI-assisted, local-only)

https://crates.io/crates/omniscient
1•danebalia•13m ago•1 comments

Python on Erlang/OTP

https://hornbeam.dev/
1•wowi42•13m ago•0 comments

Undo in Vi and Its Successors

https://utcc.utoronto.ca/~cks/space/blog/unix/ViUndoMyViews
8•todsacerdoti•15m ago•2 comments

Iran closing parts of Hormuz Strait for few hours during drill

https://www.timesofisrael.com/liveblog_entry/iran-closing-parts-of-hormuz-strait-for-few-hours-du...
2•ukblewis•15m ago•0 comments

Irish Data Watchdog Opens Inquiry into X over Grok AI Images

https://www.wsj.com/tech/ai/irish-data-watchdog-opens-inquiry-into-x-over-grok-ai-images-bdfe6c51
2•reaperducer•17m ago•0 comments

Show HN: First live UCP demo – see how AI agents shop your WooCommerce store

https://app.ucphub.ai/
1•vladeta•18m ago•1 comments

Show HN: Mtb – An MCP sanity checker for vibe coding

https://github.com/dbravender/mtb
1•dbravender•19m ago•0 comments