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.

Show HN: Launch – A Mac Script Launcher

https://staunchapps.com/launch/
1•andrewjk•17s ago•0 comments

Solving the Multi-Plane Telemetry Challenge with Argo CD and OSS MyDecisive

https://www.mydecisive.ai/blog/multi-plane-telemetry-argo-cd
1•jratkevic•1m ago•0 comments

LLMs Can't Jump

https://openreview.net/pdf?id=klU4737opt
1•gmays•3m ago•0 comments

Why did we wait so long for the bicycle? (2019)

https://blog.rootsofprogress.org/why-did-we-wait-so-long-for-the-bicycle
1•frozenseven•3m ago•0 comments

Robinhood Private Company Fund to Back Y Combinator Startups

https://finance.yahoo.com/small-business/articles/robinhood-private-company-fund-back-145137332.html
1•PKop•5m ago•0 comments

This Week in AI Native Companies #2: The context layer gets funded

https://www.insideainative.com/p/this-week-in-ai-native-companies-555
2•mmayernick•8m ago•0 comments

When the apartment listing is too good to be true

https://blog.denv.it/posts/when-the-apartment-listing-is-too-good-to-be-true/
3•denysvitali•11m ago•0 comments

Palantir soars 12% on blowout quarter, with US commercial revenue soaring ~150%

https://www.cnbc.com/2026/08/03/palantir-pltr-earnings-q2-2026.html
2•gslin•11m ago•0 comments

Chiral diffraction from aperiodic monotile structure

https://www.nature.com/articles/s41467-026-75023-7
1•sciences44•11m ago•0 comments

Agent needs a computer, not a container – introducing Cloudflare/computer

https://blog.cloudflare.com/cloudflare-computer/
1•mattzcarey•15m ago•0 comments

AI website builders: 10 prompt-to-app tools compared by pricing and code export

https://github.com/umairalisadaqat/awesome-ai-website-builders
1•umairalisadaqat•15m ago•0 comments

Show HN: mob.so – vibecode with friends in Discord

https://mob.so
1•david_shi•19m ago•0 comments

The Shape of Things to Come, Part 2: Model Welfare for Agentic Engineers

https://yegge.ai/essays/model-welfare/
1•networked•20m ago•0 comments

There Will Come Soft Rains [pdf]

https://users.wpi.edu/~zrbutzke/Docs/BradburyStories(1).pdf
4•pmg101•23m ago•1 comments

A Dad's Solution to His Son's Difficulty with Watches

https://www.nytimes.com/2026/07/21/fashion/watches-dyslexia-darren-sher.html
1•bookofjoe•24m ago•1 comments

ASML's hold over the future of chipmaking is weakening

https://www.ft.com/content/af959faa-115d-4073-b9a2-68d11018d05b
1•sigma5•32m ago•1 comments

Review: Goodnight, Goodnight, Construction Site, by Sherri Duskey Rinker

https://www.thepsmiths.com/p/review-goodnight-goodnight-construction
1•jger15•40m ago•0 comments

Conflict-Freedom as a Progress Condition

https://arxiv.org/abs/2505.03627
1•otrack•41m ago•0 comments

Meat allergy is on the rise – what scientists want to know

https://www.nature.com/articles/d41586-026-02362-2
2•geneticdrifts•41m ago•0 comments

Why does everyone suddenly hate data centers?

https://kenlacorte.substack.com/p/why-does-everyone-suddenly-hate-data
2•duck•44m ago•2 comments

AI First Ethical Code

https://lastcopy.ai/code/70
1•itsthecourier•50m ago•1 comments

Gmail support for sending from third-party email addresses ends January 2027

https://support.google.com/mail/answer/17101213?hl=en
5•RagingCactus•52m ago•1 comments

Buildline: One timeline for cargo, ninja, Webpack, tsc, Bazel

https://github.com/nabsei/buildline
1•nabsei•53m ago•0 comments

Anger over Data Centers Is Fueling a New Political Movement

https://www.politico.com/news/magazine/2026/08/02/the-new-luddites-01017824
1•mapping365•53m ago•0 comments

How OpenAI built a realtime system for responsive voice AI in six months

https://openai.com/index/continuous-voice-interaction-with-gpt-live/
1•juberti•53m ago•0 comments

Compiler-Grounded Hierarchical Diagnosis for LLM Triton Kernel Optimization

https://arxiv.org/abs/2607.23089
1•matt_d•54m ago•0 comments

I learned to stop worrying and love the bomb (at least a little)

https://beeb6502.com/blog/how-i-learned-to-stop-worrying-and-at-least-like-the-bomb-a-bit/
1•idw•54m ago•0 comments

21-year-old Quebecer creates new social media platform to stop doom scrolling

https://www.cbc.ca/news/canada/montreal/new-social-media-app-to-defeat-doom-scrolling-9.7289312
1•hettygreen•55m ago•0 comments

NIIN: NVSHMEM Implemented In NCCL

https://github.com/NVIDIA/nccl/tree/staging/contrib/niin
1•matt_d•58m ago•0 comments

Its super freaking cool, I hope

https://lee-ai.com/
3•eschwalme•1h ago•0 comments