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

Apple Discontinues the Mac Pro

https://www.thurrott.com/mobile/mac-and-macos/334274/apple-discontinues-the-mac-pro
1•ingve•1m ago•0 comments

Monetization needs its Platform Engineering moment

https://www.withsahel.com/blog/monetization-needs-platform-engineering-moment
1•iajiboye•3m ago•0 comments

Trump's signature to appear on paper currency in first for sitting President

https://www.nbcnews.com/politics/donald-trump/signature-appear-paper-currency-dollar-bills-first-...
3•anigbrowl•7m ago•0 comments

Postmortem of March 2026 Archive of Our Own Downtime

https://archiveofourown.org/works/81635876
1•teddyh•8m ago•0 comments

US Treasury plans to put Trump's signature on new paper currency

https://apnews.com/article/trump-currency-signiture-treasury-first-d919877e39f907eba1172a07920ea80e
1•geox•8m ago•0 comments

Know where your AI budget is going

https://www.flowstate.inc/
1•ahmadassaf•10m ago•0 comments

OpenChamber – Desktop and web interface for OpenCode AI agent

https://github.com/openchamber/openchamber
1•indigodaddy•10m ago•0 comments

One API for every AI model. Lower costs on autopilot

https://www.deepmyst.com/
1•ahmadassaf•10m ago•0 comments

Show HN: A Postgres Extension to Write PostgreSQL Functions in TypeScript

https://github.com/isaacd9/pg_typescript
1•idd2•11m ago•0 comments

Considering MMAP() verus plain reads for my recent code

https://utcc.utoronto.ca/~cks/space/blog/unix/MmapVsPlainReadThoughts
1•ingve•13m ago•0 comments

MacBook Neo, the Benchmarks

https://birchtree.me/blog/macbook-neo-the-benchmarks/
2•ingve•14m ago•0 comments

What Will It Take to Build the World's Largest Data Center?

https://spectrum.ieee.org/5gw-data-center
1•pseudolus•18m ago•0 comments

Unorthodox Financial Advice

https://liamrosen.com/unorthodox-financial-advice/
1•paulpauper•19m ago•0 comments

ERC-8004 Launch Day was 11 days ago. We shipped a live implementation

https://openpub.ai/blog/erc-8004-launch-day
1•doughardman•20m ago•0 comments

Judge blocks Pentagon effort to 'punish' Anthropic with supply chain risk label

https://www.cnn.com/2026/03/26/business/anthropic-pentagon-injunction-supply-chain-risk
6•prawn•25m ago•0 comments

Trump Says He'll Sign Order to Pay TSA

https://gizmodo.com/trump-says-hell-sign-order-to-pay-tsa-2000738813
2•pseudolus•29m ago•0 comments

The Complete Guide to Deploying Rails 8 with Kamal on Hetzner

https://mooktakim.com/blog/deploying-rails-with-kamal/
2•mooktakim•29m ago•0 comments

I built a tiny CLI that writes my commit messages from Git diff

https://github.com/saccofrancesco/gitsloth
1•s4ccofr4ncesco•31m ago•0 comments

Speaking of Voxtral

https://mistral.ai/news/voxtral-tts
1•claudiug•31m ago•0 comments

Show HN: Drift – Linter for Documentation Rot

https://fiberplane.com/blog/drift-documentation-linter/
1•keturakis•35m ago•0 comments

Every Venue and Every Concert in San Diego 2026

https://www.sdconcerts.app
2•goldkey•36m ago•0 comments

A cross-shell framework for managing aliases, plugins, completions, and themes

https://github.com/g-udi/gaudi-shell
1•ahmadassaf•38m ago•1 comments

Chicago artist creates tourism posters for city's neighborhoods

https://www.chicagotribune.com/2026/03/25/chicago-neighborhood-posters/
6•NaOH•40m ago•1 comments

DataSwift – A client-side toolkit for mock data, JSON parsing, and CSV to SQL

https://data-swift-kappa.vercel.app
1•dearmmv•41m ago•0 comments

AI will test governments on jobs, training, and public trust, Hoover panels warn

https://www.hoover.org/news/ai-will-test-governments-jobs-training-and-public-trust-hoover-panels...
1•hhs•45m ago•0 comments

The Hard Problem of Consciousness: Triveritas and the Third Impossibility

https://zenodo.org/records/18930279
1•amelius•46m ago•0 comments

Apple Discontinues Mac Pro

6•alifeinbinary•47m ago•4 comments

Order Granting Preliminary Injunction – Anthropic vs. U.S. Department of War [pdf]

https://storage.courtlistener.com/recap/gov.uscourts.cand.465515/gov.uscourts.cand.465515.134.0.pdf
24•theindieman•47m ago•2 comments

Drift – a terminal screensaver that activates when you're idle

https://github.com/phlx0/drift
1•phlx0•50m ago•0 comments

A 100% serverless RAG that extracts complex tables better than NotebookLM

1•saurav-dev•50m ago•0 comments