frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

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•8mo 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•8mo 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•8mo 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.

Hand-stitched Indian ship arrives in Oman to rousing welcome

https://www.bbc.com/news/articles/cwyn15110gvo
1•breve•1m ago•0 comments

Show HN: An AI assistant you can text via Apple satellite messaging

https://olly.bot/travel.html
1•mmoustafa•3m ago•0 comments

Commodore 64 Ultimate review (2026)

https://www.theguardian.com/games/2026/jan/15/commodore-64-ultimate-review-computer
1•limbicsystem•4m ago•0 comments

Why can't I bank a solar generated summer kWh to use in the winter?

https://www.philiprsteele.co.uk/post/why-can-t-i-bank-a-solar-generated-summer-kwh-to-use-in-the-...
1•domh•4m ago•0 comments

Where should portability stop? (OpenBSD)

http://miod.online.fr/software/openbsd/stories/tcx.html
1•bw86•6m ago•0 comments

Show HN: MindMapp – Mind mapping app built by AI in 12 hours

https://mindm.app
1•ChopSticksPlz•8m ago•0 comments

Show HN: Built an AI turns security scan results into human-readable insights

https://www.appcan.io/
1•mrcloudxiao•10m ago•0 comments

Clone Wars: IBM Edition

https://hackaday.com/2026/01/14/clone-wars-ibm-edition/
1•rbanffy•12m ago•0 comments

Transferring books and progress between Kindles

https://sighery.com/posts/transferring-content-between-kindles/
1•Sighery•12m ago•0 comments

Show HN: CharacterTest.app–Scientific character matching using Big Five and LLMs

https://www.charactertest.app/
1•echoadam•14m ago•0 comments

Show HN: I built a game on my old phone without knowing what I was building

https://www.kikkupico.com/posts/vibe-discovery/
1•kikkupico•15m ago•0 comments

What I Tell Colleagues About Using LLMs for Engineering

https://pierrezemb.fr/posts/llms-for-engineering/
2•cnivolle•16m ago•0 comments

A Tribute to Stewart Cheifet and the Computer Chronicles [video]

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

Who Moderates Stack Overflow?

https://meta.stackoverflow.com/questions/437934/2025-a-year-in-moderation
1•braiamp•16m ago•1 comments

EuroPython 2026 Location Announcement [video]

https://www.youtube.com/watch?v=laSzm-raS5A
1•rbanffy•17m ago•0 comments

How to stick with your projects, even when they're janky – Wilkerson [video]

https://www.youtube.com/watch?v=Alfq8RG80Ns
2•adityaathalye•19m ago•1 comments

Treatment of Head lI.C.E.

https://www.cdc.gov/lice/treatment/index.html
1•marysminefnuf•20m ago•1 comments

High-Level Is the Goal

https://bvisness.me/high-level/
1•tobr•23m ago•0 comments

Show HN: Bazinga – Enforced engineering practices for AI coding

https://github.com/mehdic/bazinga
1•mehditch•23m ago•0 comments

The 3D Software Rendering Technology of 1998's Thief: The Dark Project

https://nothings.org/gamedev/thief_rendering.html
2•suioir•25m ago•0 comments

Google's First TPU – Architecture (2024)

https://thechipletter.substack.com/p/googles-first-tpu-architecture
1•klelatti•31m ago•0 comments

Show HN: AI Code Guard – Detect security vulnerabilities in AI-generated code

https://github.com/ThorneShadowbane/ai-code-guard
2•ajujaans•31m ago•0 comments

How to (simply) host a production WordPress blog

https://docs.codecapsules.io/tutorials/how-to-simply-host-a-production-wordpress-blog
1•sixhobbits•36m ago•0 comments

Neural Scaling and the Quanta Hypothesis

https://ericjmichaud.com/quanta/
1•0lmer•38m ago•0 comments

Kahan on the 8087 and designing Intel's floating point (2016) [video]

https://www.youtube.com/watch?v=L-QVgbdt_qg
1•bananaboy•41m ago•0 comments

The RTX 5070 Ti Has Been Killed Off [video]

https://www.youtube.com/watch?v=yteN21aJEvE
1•mariuz•42m ago•0 comments

Ask HN: How can a new startup succeed in Europe in 2026?

2•roschdal•46m ago•2 comments

Building a Tweetdeck-style interface for LiveATC feeds

https://ianservin.com/2026/01/13/building-a-tweetdeck-style-interface-for-liveatc-feeds/
1•sdoering•46m ago•0 comments

Imperial Boomerang

https://en.wikipedia.org/wiki/Imperial_boomerang
2•thunderbong•50m ago•0 comments

Why AI Divides Programmers

https://techne98.com/blog/why-ai-divides-programmers/
1•fixedprog•51m ago•0 comments