frontpage.
newsnewestaskshowjobs

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•1y 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•1y 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•1y 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.

4B Capable Agent in the Browser

https://alexwortega-my-pi-agent.hf.space/
1•Alexwortega•31s ago•0 comments

Living with Depression: The Part I Never Say Out Loud About Depression

https://medium.com/freedomofthought/living-with-depression-the-part-i-never-say-out-loud-3e9c218b...
1•raynchad•36s ago•1 comments

A Walkable ASCII Cyberpunk City in One HTML File [video]

https://www.youtube.com/watch?v=3YtygAx_C6A
1•yboris•1m ago•0 comments

Memories Mysteriously Survive After Brain Shutdown

https://www.404media.co/memories-mysteriously-survive-after-brain-shutdown-and-scientists-dont-kn...
1•Jimmc414•1m ago•0 comments

Dryas: A Reprogrammable Engine for High-Speed Interconnect Tracing and Analysis

https://arxiv.org/abs/2608.12934
1•Jimmc414•1m ago•0 comments

Show HN: Personal Stock – share a stake in your lifetime wealth

https://github.com/onrootnet/personal-stock
1•koopuluri•2m ago•0 comments

The Enshittification of Everything (Part 3)

https://robertreich.substack.com/p/the-enshittification-of-everything-c94
1•rbanffy•3m ago•0 comments

How Samsung's Privacy Screen Works

https://www.ifixit.com/News/117498/the-secrets-behind-samsungs-privacy-screen
1•gnabgib•3m ago•0 comments

Show HN: Open-source skill to run Matt Pocock's skills in bulk AFK

https://github.com/rvoertmann/barbequeue
1•remingtonv•5m ago•0 comments

Cornell: Pro Palestine Students Targeted by ICE: Come Back to US or Lose Funding

https://theintercept.com/2026/08/14/cornell-pro-palestine-student-targeting-ice/
2•Jimmc414•5m ago•0 comments

The unlikely opera star: How AI helped a nonspeaking performer find his voice

https://www.scientificamerican.com/podcast/episode/a-nonspeaking-person-is-the-star-of-this-opera...
1•e2e4•7m ago•0 comments

Stewart Brand's 6‑Part Series How Buildings Learn, with Music by Brian Eno

https://www.openculture.com/2026/08/watch-stewart-brands-6-part-series-how-buildings-learn.html
1•pauldelany•8m ago•0 comments

Show HN: Native experience for mobile web – Raylers

https://raylers.com
1•faruq_72_786•8m ago•0 comments

Show HN: A mobile app to keep up with most important news on Agentic Coding

https://apps.apple.com/de/app/agentic-coding-news-digest/id6797645176
1•remingtonv•8m ago•0 comments

Show HN: Open-source Grok Bot alternative

https://github.com/madebywelch/guaca
1•madebywelch•9m ago•0 comments

Emulating Terraform on Pulumi's Engine

https://www.pulumi.com/blog/terraforms-data-model-on-pulumis-engine/
1•cnunciato•12m ago•0 comments

Air traffic controller saves day when 2 flights with same call number converge

https://www.cbsnews.com/news/phoenix-air-traffic-controller-2-american-airlines-flights-same-call...
2•cf100clunk•13m ago•1 comments

The Podcast Where You Can Eavesdrop on the A.I. Elite

https://www.nytimes.com/2026/04/26/business/dwarkesh-patel-podcast-ai.html
1•paulpauper•15m ago•0 comments

Ozempic is not just a weight-loss story anymore

https://www.vox.com/future-perfect/499434/ozempic-glp1-wegovy-obesity-overweight-diabetes
1•paulpauper•18m ago•0 comments

Cultivating a state of mind where new ideas are born

https://www.henrikkarlsson.xyz/p/good-ideas
4•felixbraun•19m ago•0 comments

Successful Families Are Process Knowledge

https://steader.substack.com/p/successful-families-are-process-knowledge
1•paulpauper•21m ago•0 comments

TemporalStore: A disruptive open-source engine managing your LLM memory

https://temporalstore.ai/blog-context-management.html
2•matrixarkai•21m ago•1 comments

Every ESP32 has one of 4.3B doodle faces latent in its Mac address

https://evandroguedes.github.io/doodlesoul/
2•evandrog•22m ago•0 comments

Shadowy paper mills let you pay to be a published author of fraudulent research

https://www.theguardian.com/science/2026/aug/16/science-or-fiction-shadowy-paper-mills-let-you-pa...
3•billybuckwheat•24m ago•0 comments

The /Handoff Skill

https://www.aihero.dev/skills-handoff
1•evo_9•27m ago•0 comments

Show HN: Chrome extension that tracks job applications on your machine

https://github.com/RajaBabu15/job-focus-assist
1•rajacodes26•27m ago•0 comments

There's a reason why Israel has done little to rein in settler violence

https://apnews.com/article/israel-palestinians-settler-violence-us-siege-west-bank-bd4ae76cec1773...
3•johnbarron•27m ago•0 comments

How Powerful Is Maya?

https://www.quora.com/How-powerful-is-Maya
1•peter_d_sherman•29m ago•0 comments

Addrbook – A Contact Management Program

https://ratfactor.com/repos/addrbook/
1•smartmic•35m ago•0 comments

The little-known winstart.bat batch file

https://devblogs.microsoft.com/oldnewthing/20260811-00/?p=112605
1•ingve•36m ago•0 comments