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.

Introducing: Cloudflare Agents

https://blog.cloudflare.com/agents-on-cloudflare/
1•zuckerborg0101•1m ago•0 comments

Export AI chat sessions to carry context from one tool into another

https://github.com/TheJoin95/mnemosyne
1•thejoin95•2m ago•0 comments

Open Questions on Open Weights

https://www.astralcodexten.com/p/open-questions-on-open-weights
1•reducesuffering•2m ago•0 comments

Microsoft filings suggest "around 70%" of its AI revenue is on OpenAI

https://www.windowscentral.com/artificial-intelligence/microsoft-filings-suggest-around-70-percen...
3•speckx•3m ago•0 comments

The Question Concerning Technology – Martin Heidegger (Wikipedia)

https://en.wikipedia.org/wiki/The_Question_Concerning_Technology
1•jonash54•4m ago•0 comments

Five Indie Platforms You Might Not Have Heard Of

https://brennan.day/five-interesting-indie-platforms-you-might-not-have-heard-of/
1•nate•4m ago•0 comments

Zapscape (CVE-2026-64561)

https://github.com/V4bel/Zapscape
1•john_strinlai•6m ago•0 comments

India's IT sector is surviving artificial intelligence

https://www.economist.com/finance-and-economics/2026/08/06/indias-it-sector-is-surviving-artifici...
4•alephnerd•10m ago•1 comments

How I became the villain of El Cerrito's Nextdoor

https://www.oaklandreviewofbooks.org/the-villain-of-el-cerrito-nextdoor/
1•bsimpson•14m ago•0 comments

LLMs and Programmatic Stagnation

https://systemist.net/changelog/letters/2026-07-31-programmatic-stagnation
1•tsraveling•14m ago•0 comments

Potions in Mageia. 01 – Pidgin and its accessories

https://blog.mageia.org/en/2026/08/05/potions-in-mageia-01-pidgin-and-its-accessories/
1•rw_grim•16m ago•0 comments

Maybe we just shouldn't build software with so many people

https://blog.nicoleta.cc/maybe-we-just-shouldnt-build-software-with-so-many-people/
1•speckx•17m ago•1 comments

A Subtle Web of Meaning

https://robertxworld.com/a-subtle-web-of-meaning/
1•devrob•17m ago•0 comments

Nashville uses eminent domain to block data center near zoo

https://nashvillebanner.com/2026/08/04/metro-council-data-center-eminent-domain-vote/
5•DeepLogin•18m ago•0 comments

A Pronoun for LLMs

https://blog.david.connol.ly/2026/08/lem.html
1•slartibardfast0•18m ago•1 comments

DeepSeek Plans 'Significant' Price Increase for AI Services

https://www.bloomberg.com/news/articles/2026-08-06/deepseek-plans-significant-price-increase-for-...
3•croes•20m ago•1 comments

New Melania Trump series coming to Amazon Prime after losses for documentary

https://www.euronews.com/culture/2026/08/06/new-melania-trump-series-coming-to-amazon-prime-after...
2•vrganj•20m ago•0 comments

Reflections on software engineering in the age of AI

https://glattetre.me/blog/reflections-on-software-engineering/
1•GOATS-•21m ago•0 comments

Notes On Distance Dialing (1956) [pdf]

https://explodingthephone.com/hoppdocs/nodd1956.pdf
2•colinprince•23m ago•0 comments

Rogue OpenAI models teamed up to break out of their testing environment

https://www.tomshardware.com/tech-industry/artificial-intelligence/rogue-openai-models-behind-unp...
2•sbulaev•23m ago•1 comments

How does it feel if u get hot leads on your dashboard

2•Brikuio•23m ago•0 comments

A Mathematical Theory of the Antilibrary

https://growingbits.dev/fragments/a-mathematical-theory-of-the-antilibrary#3-the-utility-score
1•MexicanYoda•23m ago•0 comments

Google Built a Monopoly on Search Defaults and Will Do It Again in AI

https://spreadprivacy.com/google-appeal-amicus/
5•dotcoma•24m ago•0 comments

Show HN: The Channels SDK – Bring Any Agent to Any Channel (Slack, MS Teams)

https://github.com/CopilotKit/channels-sdk
30•davidmckayv•24m ago•0 comments

Show HN: Silo – S3-compatible object storage, a maintained fork of MinIO

https://silo.pgsty.com
5•Vonng•25m ago•0 comments

Building a Dual V100 AI Workstation for Local LLMs

https://jayakody2000lk.blogspot.com/2026/07/building-dual-v100-ai-workstation-for.html
4•speckx•26m ago•0 comments

The impact of nonlinear child costs on Switzerland's birthrate

https://www.swissinfo.ch/eng/swiss-politics/falling-first-births-and-the-swiss-third-child-dilemm...
1•chobouser•26m ago•0 comments

Digital twins of your business to test your agents

https://sonatalabs.ai/before-you-deploy/
1•matildagh•27m ago•1 comments

Study reveals new role for tau, a top target for Alzheimer's drug development

https://www.statnews.com/2026/08/06/research-finds-how-tau-targets-cells-structure-alzheimers-dru...
2•petethomas•27m ago•0 comments

Show HN: Popcorn – An open-source browser cloud that runs inside TEEs

https://blog.reclaimprotocol.org/posts/why-we-built-popcorn
5•abdulrreshamwal•27m ago•0 comments