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.

The SaaS Subscription Trap: How "Forgot to Cancel" Became a Business Model

https://www.indiehackers.com/post/the-saas-subscription-trap-how-forgot-to-cancel-became-a-busine...
1•soltanov•2m ago•0 comments

Slime moulds and the bitter debate over the nature of intelligence

https://www.theguardian.com/news/ng-interactive/2026/sep/08/this-is-dangerous-slime-moulds-and-th...
1•tosh•2m ago•0 comments

Show HN: Wirebot – talk to your Codex in messengers

https://wirebot.ai/codex
1•sadfun•4m ago•0 comments

TrustFinder: Deep Search AI

https://play.google.com/store/apps/details?id=com.popyakter.cheaterbusterai&hl=en_US
1•pranto12345•4m ago•0 comments

1.5M lines of code: Software becomes a key factor in Porsche's new Formula E car

https://e-formula.news/news/formula-e-news/formula-e-news-detail/1-5-million-lines-of-code-softwa...
1•xeonmc•5m ago•0 comments

Show HN: I made Artle – a quick, daily art guessing game

https://artle.eu
1•steinvakt2•5m ago•0 comments

Try DuckDB v2.0-Alpha

https://duckdb.org/2026/09/02/try-duckdb-20-alpha
1•tamnd•5m ago•0 comments

Maak.el: Lisp machine command runner in Emacs, infinitely extensible and Scheme

https://codeberg.org/jjba23/maak.el
1•jjba23•8m ago•0 comments

PicWish – AI photo editing for product images

https://picwish.com/
1•VolaRmb•9m ago•0 comments

Ask HN: CLI vs. GUI, what's your preferred way of using coding agents?

1•pranshuchittora•10m ago•0 comments

The Computer Moves In (1983)

https://time.com/archive/6699317/the-computer-moves-in/
1•glimshe•12m ago•0 comments

Arguments in Favor of AI Fair Use

https://kevinkelly.substack.com/p/arguments-in-favor-of-ai-fair-use
2•jger15•14m ago•0 comments

Prolog knowledge base over HTTP/JSON API, with an OpenAPI description

https://github.com/Christopher22/charon
1•triska•14m ago•0 comments

A Digital Duty of Care for Australia

https://www.infrastructure.gov.au/department/media/publications/digital-duty-care-australia-devel...
1•falsepolymath•15m ago•1 comments

Use the Canvas API to speed up image uploads without losing EXIF data

https://ptrchm.com/posts/why-pixelpeeper-image-uploads-feel-fast/
1•pchm•19m ago•0 comments

Which platform to use for idea validation?

https://proventrips.com
1•rohitnrll•19m ago•1 comments

Howold.me – Fast, no-nonsense exact age and life stats calculator

https://howold.me/en
1•kickmunkeez•20m ago•2 comments

the appeal

https://sunilpai.dev/posts/the-appeal/
1•tosh•20m ago•0 comments

Ghost Imaging: Who Needs a Double Slit Anyway?

https://sciencespectrumu.com/who-needs-a-double-slit-anyway-47b903579252?sharedUserId=r.hendriks
1•armchairquantum•21m ago•0 comments

Nepal-Tibet disaster becomes latest victim of China's 'Clean Internet' campaign

https://www.theguardian.com/world/2026/sep/08/nepal-tibet-flood-disaster-china-clean-internet-med...
1•robaato•22m ago•0 comments

Arch Linux on a OnePlus 12R, Powered by Denial Wayland and Flutter Compositor

https://www.reddit.com/r/mobilelinux/comments/1w80kvt/arch_linux_on_a_oneplus_12r_powered_by_the_...
1•dazhbog•28m ago•0 comments

A team-oriented UI for Beads

https://www.npmjs.com/package/beadcyte
1•objx•31m ago•0 comments

Official tutorial how to be crazy, hehe [video]

https://www.youtube.com/watch?v=xIn_wS2zwDk
1•modinfo•33m ago•0 comments

Kent Beck: 90% of My Skills Are Now Worth $0, the Other 10% Are Worth 1000x

https://newsletter.kentbeck.com/p/90-of-my-skills-are-now-worth-0
2•AntonZ234•33m ago•0 comments

Simple Is Expensive

https://www.damianmr.com/posts/simple-is-expensive
1•Pattaya•34m ago•0 comments

Operating Memory – turn a folder of Markdown notes into a queryable local store

https://github.com/FrancisMarzynski/operating-memory-public
2•francismarzynsk•38m ago•0 comments

Show HN: Pomeroy v1, give any AI assistant secure access to native macOS apps

https://pomeroy.app/connect
2•joesaunderson•38m ago•0 comments

cadjoint: Differentiable Implicit CAD in the Browser

https://github.com/andrinr/cadjoint
1•cl3misch•39m ago•0 comments

Knuth: Literate Programming

https://www-cs-faculty.stanford.edu/~knuth/lp.html
2•so-cal-schemer•40m ago•2 comments

What Markdown tool do you use?

https://mddock.com
1•edwinhao•40m ago•0 comments