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.

I built a voice AI chess companion for elderly players, in 3 languages

https://youai-chess.netlify.app/
1•Arkadii_on_AI•39s ago•0 comments

Show HN: Ratchet – safe SPI flash writes (polling, erase-verify) in Rust

https://github.com/jackulau/ratchet
3•JackLau•2m ago•0 comments

How the Peter Thiel-Linked Dialog Club Ranks Its Members

https://www.wired.com/story/how-peter-thiels-private-dialog-club-secretly-ranks-its-members/
2•ksec•2m ago•0 comments

Solo founding is at an all-time high: Top performers have these traits in common

https://stripe.com/blog/top-solo-founder-traits
1•herbertl•3m ago•0 comments

C.C. Filson: The Man, the Coat, and the Company He Left Behind

https://www.carryology.com/liking/brands/c-c-filson-the-man-the-coat-and-the-company-he-left-behind/
1•surprisetalk•3m ago•0 comments

Township Leaders Vow to Fight Nuclear AI Data Center

https://www.404media.co/we-will-fight-to-our-very-last-breath-township-leaders-vow-to-fight-nucle...
1•cdrnsf•4m ago•0 comments

Rotary Mouse: Scroll faster with full control

https://rotarymouse.com/
1•ksec•4m ago•0 comments

Show HN: Otto – drive real browser tabs over a relay instead of a headless farm

https://github.com/telepat-io/otto
1•sebivaduva•4m ago•0 comments

Show HN: OpenLanguage, open source conversational language tutor for iOS

https://github.com/challenga-org/openlanguage
1•willks•5m ago•0 comments

Most players never finish their games (median 36% completion)

https://www.twoaveragegamers.com/game-completion-rates/
1•ftwum•5m ago•0 comments

SSlow Roads – a chill drive through an endless, generated world [video]

https://www.youtube.com/watch?v=LOMRj-lM6Ic
1•coolwulf•5m ago•0 comments

A running list of reasons to move to open source

https://whyopensource.ai/
3•mezark•6m ago•0 comments

The economics of a one-person AI business

https://okaneland.com/ledger/economics-of-a-one-person-ai-business/
1•ermantrout•8m ago•2 comments

Steam accounted for 20% of Capcom's revenue, double PlayStation's share

https://automaton-media.com/en/news/steam-accounted-for-over-20-of-capcoms-total-revenue-nearly-d...
2•ksec•9m ago•0 comments

Show HN: The Room – a novel about life inside the C++ standards committee

https://wg21.org/books/
2•vinniefalco•9m ago•1 comments

Ask HN: Agents, comments, and harnesses – oh my

1•blinkbat•10m ago•0 comments

Show HN: Electric Sheep – A News Reader

https://electricsheep.news
2•richardfsr•10m ago•0 comments

World Cup 2026 qualification calculator from FIFA Docs

https://vosalearning.com/world-cup
1•dustincurrie•10m ago•1 comments

Git is forever. I'm building Oak anyways

https://oak.space/blog
5•zdgeier•11m ago•0 comments

Tools Are Harness Too

https://blog.tacoda.dev/tools-are-harness-too-41f631350af4
1•tacoda•13m ago•0 comments

World Models and Interpretability Are Two Sides of the Same Coin

https://twitter.com/soniajoseph_/status/2067402054092628379
2•astrobiased•14m ago•0 comments

Altermagnets can turn neighbouring materials altermagnetic, too

https://physicsworld.com/a/altermagnets-can-turn-neighbouring-materials-altermagnetic-too/
1•thunderbong•14m ago•0 comments

Show HN: FastUbu – An Ultrafast Video Archive

https://fastubu.com/
1•lukeigel•14m ago•0 comments

Show HN: Quake in the browser, with procedurally generated levels

https://leereilly.net/quakelike/
2•lee337•14m ago•0 comments

Neutron Holdings Inc [Lime] S-1

https://www.sec.gov/Archives/edgar/data/1699963/000162828026032523/neutronholdingsinc-sx1.htm
2•toomuchtodo•16m ago•1 comments

Seirawan Chess [video]

https://www.youtube.com/watch?v=Nht2TqabPr0
1•nomilk•16m ago•0 comments

Fused Agent Kernel: 4x Tuned SOTA on Benchmarks. MIT OSS

https://github.com/anthony-chaudhary/fak
2•anthonysarkis•16m ago•1 comments

Small island nation tries bold tech education strategy

https://www.theregister.com/offbeat/2026/06/22/small-island-nation-tries-bold-tech-education-stra...
2•rbanffy•16m ago•0 comments

How to build an AI agent in 2026: a practical step-by-step guide

https://www.execlave.com/blog/how-to-build-an-ai-agent
1•brl1313•17m ago•0 comments

Artificial

https://www.inkandswitch.com/tangents/artificial/
2•surprisetalk•18m ago•0 comments