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.

Our $445M Series D

https://oxide.computer/blog/our-445m-series-d
3•ahlCVA•42s ago•0 comments

Chip-hex:cost-benefit, energy efficiency and hexagonal

https://github.com/lzprograma/Chip-Hexa
1•Engineercom•2m ago•0 comments

Data Engineering Is the Cache Invalidation Problem Ft. Josh Wills

https://motherduck.com/blog/cache-invalidation-problem-data-engineering-josh-wills/
2•whatsthatandwhy•6m ago•0 comments

A16Z Invests in Jev Maker

https://www.bloomberg.com/news/articles/2026-10-09/andreessen-horowitz-backs-jev-maker-at-7-5-bil...
1•gk1•6m ago•0 comments

OpenAI withdraws 3 preprints after releasing 722 manuscripts

https://retractionwatch.com/2026/10/08/openai-withdraws-preprints-722-manuscripts-unsolved-math-p...
3•DeepLogin•6m ago•0 comments

Defining Auth for Agents

https://www.keycard.ai/blog/defining-auth-for-agents/
1•ianl•6m ago•0 comments

Linux kernel dropping Assisted-by tag

https://lore.kernel.org/lkml/20261009083137.3-1-sashal@kernel.org/
1•ahlCVA•8m ago•0 comments

Microsoft 365 Cuts Family OneDrive Storage from 6 TB to 2 TB

https://www.techpowerup.com/353548/microsoft-365-cuts-family-onedrive-storage-from-6-tb-to-2-tb
1•speckx•8m ago•0 comments

Opus 5.5 Took Fable's Job. Haiku 5.5 Proved Me Wrong

https://thoughts.jock.pl/p/anthropic-5-5-lineup-opus-haiku-max-credits-2026
1•joozio•8m ago•0 comments

Show HN: FetchDue, chases overdue invoices from your own mailbox

https://thecompound.tech
1•kyisaiah47•8m ago•0 comments

Deno Is Joining Cloudflare

https://deno.com/blog/cloudflare
11•ilreb•9m ago•0 comments

Why statutory laws fail against code: A critique of the EU AI Act

https://medium.com/@kate8382/the-ai-security-paradox-why-old-laws-create-digital-enclosures-ff745...
1•kate8382•9m ago•0 comments

Feeds and speeds calculator for CNC milling, metric and imperial

https://thespoollist.com/tools/feeds-speeds
1•TheSpoolList•10m ago•0 comments

There are many themes, but this one is yours

https://earendil.com/posts/system-theme/?cf_history_state=%7B%22guid%22%3A%22C255D9FF78CD46CDA4F7...
1•coloneltcb•11m ago•0 comments

Tech Hype Is Cannibalizing the Future

https://www.techpolicy.press/tech-hype-is-cannibalizing-the-future/
2•DeepLogin•11m ago•0 comments

Claude Dashboards: The Jupyter Notebooks of Agent Age

https://www.ssp.sh/brain/claude-dashboards/
2•zazuke•11m ago•0 comments

Anthropic bans users from being 'cruel' to its AI systems

https://www.bbc.com/news/articles/c6j9k1l72wkgo
3•pluc•13m ago•0 comments

Deno Is Joining Cloudflare

https://blog.cloudflare.com/deno-joins-cloudflare/
15•m-app•13m ago•2 comments

Choose Europe: Advance your research career in the EU

https://commission.europa.eu/topics/research-and-innovation/choose-europe_en
3•TechTechTech•13m ago•0 comments

How to automate offsite encrypted backups with Proton Drive CLI

https://proton.me/business/blog/offsite-backup
1•teekert•14m ago•0 comments

Artificial Intelligence in the Firm: Bottlenecks in Software Production [pdf]

https://fion.ac/jellyfish.pdf
1•fauigerzigerk•15m ago•0 comments

Show HN: UserAlertX – let your AI agent text you (only you)

https://useralertx.com
1•jclmn•17m ago•0 comments

"They're Targeting Your Home Computer Now"- Loyal Moses [video]

https://www.youtube.com/watch?v=L1Gn3WChZjI
2•Kevin_Flynn•19m ago•0 comments

CompatNav – find what breaks in a WordPress site before a PHP upgrade

https://wordpress.org/plugins/compatnav-php-upgrade-checker/
1•wpwp•20m ago•0 comments

Voxlocal: A minimal voice agent written in Rust

https://samkhawase.com/blog/voxlocal-minimal-voice-agent/
8•FlyingSnake•21m ago•0 comments

Study: Exercise increases cancer survival rates

https://www.nejm.org/doi/10.1056/NEJMoa2502760
2•RickJWagner•23m ago•0 comments

Native Support for Rust on the GPU

https://lwn.net/Articles/1095731/
1•sohkamyung•24m ago•0 comments

Is CoreWeave the New MicroStrategy?

https://knowtrend.ai/blog/price-to-compute
1•codevs•26m ago•0 comments

The $3T AI Debt Hiding in the Lease Footnote

https://www.ainvest.com/news/3-trillion-ai-debt-hiding-lease-footnote-2610/
2•sillyfluke•27m ago•0 comments

Open-source ESP32-C3 DNS ad blocker supports over 500K domains without PSRAM

https://www.cnx-software.com/2026/10/09/open-source-esp32-c3-dns-ad-blocker-supports-up-to-over-5...
1•iamnothere•28m ago•0 comments