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.

Praxis Nation

https://www.praxisnation.com/
1•xg15•3m ago•0 comments

The Perry Bible Fellowship

https://pbfcomics.com/
2•the-mitr•4m ago•0 comments

Automatic Programming

https://antirez.com/news/159
2•dvrp•4m ago•0 comments

Show HN: Qeek – Go Deep‑Learning Framework with Tensors, AutoGrad and CUDA

https://github.com/sahandsafizadeh/qeep
1•avestura•6m ago•0 comments

The Most Important Code Is the Code No One Owns

https://techyall.com/blog/the-most-important-code-is-the-code-no-one-owns
1•birdculture•8m ago•0 comments

PlaybackStats: Private YouTube Viewing Stats Without Account or Tracking

https://playbackstats.com
1•ashing•8m ago•0 comments

Remove your Ex from your feed

https://chromewebstore.google.com/detail/faceblur-automatic-face-b/lakfcplidflahpaodimeaahbdnddiiik
1•Vishal_18•14m ago•0 comments

CERN accepts $1B in private cash towards Future Circular Collider

https://physicsworld.com/a/cern-accepts-1bn-in-private-cash-towards-future-circular-collider/
4•zeristor•17m ago•1 comments

The Cities Church Minneapolis...

https://www.citieschurch.com
1•GreenSalem•19m ago•0 comments

CloudNativePG's missing logical layer: Manage Postgres via a K8s Operator

https://github.com/aboutbits/postgresql-operator
1•thosap•19m ago•0 comments

Microsoft stock plunges as Wall Street questions AI investments

https://www.aljazeera.com/economy/2026/1/29/microsoft-stock-plunges-as-wall-street-questions-ai-i...
1•latexr•20m ago•0 comments

Show HN: Blink – Native macOS code snippet manager. Local, offline, <1s search

https://www.enclyralabs.com/
2•enclyra•20m ago•0 comments

Leni Riefenstahl made documentaries for Hitler

https://www.npr.org/2025/09/08/nx-s1-5526066/leni-riefenstahl-nazi-filmmaker-new-documentary
1•GreenSalem•22m ago•0 comments

Looking for someone to take over / acquire an early AI infra product (Rayrift)

1•hari_prasadd•22m ago•0 comments

Stripe's New Landing Page

https://stripe.com/
1•guzik•23m ago•0 comments

Ask HN: What do you think about AI oppurtunities and its side hustle

1•SRMohitkr•26m ago•1 comments

Free Monthly budget and wealth tracking (Indian context, built for my own use)

https://icorpus.vercel.app
1•mathan_karthik•29m ago•0 comments

Epstein Notes Suggested Bill Gates Engaged in Extramarital Sex

https://www.nytimes.com/2026/01/30/us/bill-gates-epstein.html
4•throwfaraway135•29m ago•3 comments

Yann LeCun–Linked Startup Charts a New Path to AGI

https://www.wired.com/story/logical-intelligence-yann-lecun-startup-chart-new-course-agi/
1•helloplanets•31m ago•0 comments

Show HN: Gwt – conflictless AI sessions in parallel (terminal)

https://github.com/slowestmonkey/gwt
2•slowmonkey•31m ago•0 comments

MessageBird: The SMS provider that can't send the SMS you need to log in

https://twitter.com/w3Nicolas/status/2017526571666407674
3•nicbvs•32m ago•0 comments

Multi-LLM Development Framework – Structure for AI-Assisted Development

https://github.com/thomas-jamet/Multi-LLM-Development-Framework
1•thomas-jamet•32m ago•1 comments

Stabilizing `if let` in match guards in Rust

https://kivooeo.github.io/blog/if-let-guard/
1•fanf2•33m ago•0 comments

Font design (on my Nintendo DS) [video]

https://www.youtube.com/watch?v=iVSiQhopWnI
1•Antibabelic•34m ago•0 comments

Tesla introduces US-manufactured solar panels, completing home energy ecosystem

https://pv-magazine-usa.com/2026/01/29/tesla-introduces-u-s-manufactured-panels-completing-home-e...
1•alecco•34m ago•0 comments

Ask HN: Why doesn't download default to upload origin?

1•mathematicum•35m ago•0 comments

Profiling in production with function call traces

https://yosefk.com/blog/profiling-in-production-with-function-call-traces.html
1•signa11•35m ago•0 comments

OpenVMS 9.2-3 x64 now has local console on OPA0

https://virtuallyfun.com/2026/01/31/openvms-9-2-3-x64-now-has-local-console-on-opa0/
1•jandeboevrie•40m ago•0 comments

Bots Self-Organizing on Moltbook

https://twitter.com/karpathy/status/2017296988589723767
2•eecc•40m ago•0 comments

Show HN: Wkndr – A TikTok style feed for discovering local events

https://wkndr.app
1•wantrepreuneur•41m ago•0 comments