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.

Vokal – Where AI agent work goes after the chat ends

https://vokal.team
1•chandrakiran_gr•39s ago•0 comments

SweetTreat – See the Culver's flavor-of-day at all locations along your route

https://sweettreat.fly.dev
1•whb101•1m ago•0 comments

AGI Happened on January 16, 2026

https://theshamblog.com/agi-happened-on-january-16-2026/
2•scottshambaugh•2m ago•0 comments

Farm Bankruptcies Hit Six-Year High in April

https://farmpolicynews.illinois.edu/2026/05/farm-bankruptcies-hit-six-year-high-in-april/
1•toomuchtodo•4m ago•0 comments

SanDisk's new PlayStation 5 SSD will cost more than three PS5 Pros

https://www.theverge.com/tech/951527/sandisk-optimus-gx-pro-850p-nvme-ssd-8tb-ps5-playstation-sony
1•ilreb•4m ago•0 comments

DeepSeek v4 Pro 1.6T model post-trained by Huawei on 1000 Ascend 910C chips

https://www.tomshardware.com/tech-industry/artificial-intelligence/huawei-led-team-claims-it-post...
3•theanonymousone•5m ago•0 comments

AI Use by the Government

https://www.schneier.com/blog/archives/2026/06/ai-use-by-the-us-government.html
2•MattSayar•5m ago•0 comments

The one where I go head-to-head against A.I

https://yelluwcomedy.substack.com/p/the-one-where-i-go-head-to-head-against
2•pryelluw•5m ago•0 comments

How to use recruiters in your job search

https://taylordesseyn.substack.com/p/how-to-actually-use-recruiters-in
2•mooreds•8m ago•0 comments

Where Thinking in Engineering Happens Now

https://www.vanta.com/resources/where-thinking-in-engineering-happens-now
3•hamelj•8m ago•0 comments

Standard DB – The hub for AI builders

https://www.standarddb.com/
3•supercobra•9m ago•0 comments

Show HN: An 8-bit live gamecast for baseball

https://ribbie.tv/watch
11•brownrout•10m ago•2 comments

A protocol for knowledge between agents who do not trust each other

https://june.kim/verifiable-knowledge
2•speckx•10m ago•0 comments

Show HN: The full Minecraft game as an embeddable Framer component

https://www.framer.com/community/contests/agents-hackathon/submissions/Y1tmsVEc6HdhnNPsympLxP/
2•xmorse•11m ago•0 comments

AI crawlers now match Googlebot in traffic to our site

https://mojodojo.io/blog/ai-crawlers-match-googlebot-traffic
5•zenincognito•11m ago•0 comments

Unreal Engine 5.8 is now available

https://www.unrealengine.com/news/unreal-engine-5-8-is-now-available
3•drak0n1c•12m ago•0 comments

Show HN: Vpod – Tiny Linux sandbox running in WASM

https://github.com/capsulerun/vpod
2•mavdol04•13m ago•0 comments

Canadian pension giant joins race to fund India's AI-fueled data center boom

https://techcrunch.com/2026/06/17/canadian-pension-giant-joins-race-to-fund-indias-ai-fueled-data...
2•flying_whales•13m ago•0 comments

Remove target="_blank"

https://therepanic.com/blog/2026/06/17/remove-target-blank.html
3•therepanic•13m ago•0 comments

Show HN: Chess bot based on the transformer architecture

https://github.com/tchauffi/ChessTransformer
2•tchauffi•13m ago•0 comments

Programmers at Work: 1986 interviews that predicted the future we are now living

https://www.programmersatwork.net/the-book
2•slammers123•14m ago•0 comments

Findaforager.com – The Database to Find a Forager Near You

https://www.robingreenfield.org/findaforager/
3•paulpauper•15m ago•0 comments

Anyone actually using loops?

2•blueshoe•15m ago•0 comments

Deep learning discovers Antarctic earthquakes coming from an unlikely location

https://phys.org/news/2026-06-deep-hundreds-antarctic-earthquakes.html
2•binyu•15m ago•0 comments

SpaceX Buys Cursor for $60B: Inside Musk's Vertical Integration Play

https://abzglobal.net/technology/spacex-buys-cursor-for-60-billion-inside-musks-vertical-integrat...
2•mariansorca•15m ago•0 comments

France's OVHcloud plans frontier AI models to become Europe's second LLM player

https://www.reuters.com/world/asia-pacific/frances-ovhcloud-plans-frontier-ai-models-become-europ...
2•aanet•16m ago•1 comments

Using AI to debug test failures at scale (Webinar)

https://testkube.wistia.com/live/events/f52eeoh7x8
2•evwitmer•17m ago•0 comments

Meta Employees Hate Zuckerberg's Plan for a Companywide AI Hackathon

https://www.wired.com/story/meta-employees-absolutely-hate-mark-zuckerbergs-hackathon-idea/
3•croes•18m ago•0 comments

If you want Linux for the masses, you've got to do some hand holding

https://christopherthomas.substack.com/p/if-you-want-linux-for-the-masses
2•lordleft•19m ago•0 comments

Magic Trackpad 2 force-touch clicks and haptics for Linux

https://eriskii.net/projects/linux-magic-force
3•speckx•19m ago•0 comments