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.

Designing a Personal Pebble Watchface

https://www.jonashietala.se/blog/2026/06/26/designing_a_personal_pebble_watchface/
1•dzogchen•2m ago•0 comments

UN Charter – United Nations

https://www.un.org/en/about-us/un-charter
1•jeeee•6m ago•0 comments

Fintech Engineering Handbook

https://w.pitula.me/fintech-engineering-handbook/
2•signa11•7m ago•0 comments

Show HN: Mcpify – Turn any REST API into an MCP server in one command

https://github.com/Amanbig/mcpify
1•harpreetsingh80•8m ago•0 comments

Properties of AI

https://claude.com/resources/tutorials/the-4-properties-of-ai
2•vinhnx•8m ago•0 comments

I'd Build a 864K Motivation Page a $225K/Year App [video]

https://www.youtube.com/watch?v=Y2AWF9xFuKE
1•Harro123•9m ago•0 comments

AI data centers are supercharging a new battery market

https://wpintelligence.washingtonpost.com/topics/energy-climate/2026/06/24/ai-data-centers-are-su...
1•bookofjoe•14m ago•1 comments

Rewriting the World in Rust

https://bitfieldconsulting.com/posts/rewrite-in-rust
1•vinhnx•14m ago•0 comments

Ask HN: How do we measure software in LLM era?

1•bonigv•18m ago•0 comments

Arbitraging the global trademark treaty system

https://filedmark.com
1•infiniteAdmin•19m ago•1 comments

Texas makes Bible passages required reading for public school students

https://www.theguardian.com/us-news/2026/jun/26/texas-bible-required-reading-public-school
1•geox•22m ago•1 comments

Show HN: Open-Source API for Asynchronous Tasks Using Agents

https://meerkatagents.com/
1•kannanreghu•32m ago•0 comments

Show HN: Play puzzle games in a feed like TikTok

https://puzzle.express
4•trancence•44m ago•2 comments

Pixar's Believable People

https://animationobsessive.substack.com/p/pixars-believable-people
2•vinhnx•46m ago•0 comments

One More Thing

https://take.surf/2026/06/07/one-more-thing
1•Udo_Schmitz•48m ago•0 comments

Getting LLMs Drunk to Find Remote Linux Kernel OOB Writes (and More)

https://heyitsas.im/posts/drinking-llms/
1•schmuhblaster•49m ago•0 comments

Ask HN: What GUI/desktop app do you use to keep track of different AI sessions?

2•howToTestFE•52m ago•0 comments

Padel disrupted the genteel world of lawn tennis

https://theconversation.com/how-padel-disrupted-the-genteel-world-of-lawn-tennis-285867
2•zeristor•53m ago•0 comments

NVMe-CLI v3.0B.1 ships per-cycle sanitize verification

https://github.com/linux-nvme/nvme-cli/releases/tag/v3.0-b.1
1•yonasabeselom•56m ago•0 comments

Show HN: The TypeScript Semantic Layer for ClickHouse

https://github.com/hypequery/hypequery
2•lureilly1•59m ago•0 comments

Bulk image and file compressor & converter.

https://squeezes.vercel.app
1•marpe•1h ago•2 comments

NodeQuest – a browser puzzle game that teaches n8n workflow automation

https://nodequest.io
1•pusucip•1h ago•0 comments

End-to-end model that listens, sees, thinks and responds on video in real time

https://twitter.com/minchoi/status/2070347790115565792
1•dawkins•1h ago•1 comments

A debugging story: Learning debugging principles from a production outage

https://www.iinuwa.xyz/blog/a-debugging-story/
1•dorianniemiec•1h ago•0 comments

How do you handle high-stakes decisions when your brain is at 99% capacity?

1•piyushk95•1h ago•1 comments

Browser agent that reads a page in ~2k tokens, not ~180k

https://www.npmjs.com/package/pixelpi
2•josharsh•1h ago•0 comments

Badge of Infamy, by Lester del Rey (1957) [pdf]

https://ebook-mecca.com/online/Badge%20of%20Infamy%20-%20Lester%20Del%20Rey.pdf
1•joebig•1h ago•0 comments

DeepSeek open-sources inference optimizations with 60–85% faster generation [pdf]

https://github.com/deepseek-ai/DeepSpec/blob/main/DSpark_paper.pdf
176•aurenvale•1h ago•20 comments

The White House's post-quantum executive order is an important milestone

https://blog.cloudflare.com/post-quantum-eo-2026/
1•taubek•1h ago•1 comments

Beer CSS – Build material design in record time

https://www.beercss.com
5•Seb-C•1h ago•0 comments