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.

Fable 5 is greenlit to return

https://www.theverge.com/ai-artificial-intelligence/958964/anthropic-claude-fable-5-is-back
1•ExMachina73•4m ago•0 comments

Kaist AI reads mouse gestures as language

https://news.nate.com/view/20260701n15527?mid=n1101
1•geox•5m ago•0 comments

Combined LDL-C, Lp(a) and HsCRP Assessment Identifies Long-Term Risk of Ascvd

https://www.acc.org/latest-in-cardiology/journal-scans/2026/06/23/13/25/combined-ldl-c-lpa-and-hs...
1•brandonb•6m ago•0 comments

Claude Sonnet 5 is here

https://old.reddit.com/r/ClaudeAI/comments/1ujwggp/introducing_claude_sonnet_5_our_most_agentic/
1•adithyaharish•14m ago•0 comments

Redeploying Fable 5

https://www.anthropic.com/news/redeploying-fable-5
7•meetpateltech•19m ago•0 comments

The Internet Is Being Erased [video]

https://www.youtube.com/watch?v=-hAn2qDok_g
2•zvmaz•19m ago•1 comments

Taiwanese Go Deep into Debt to Amp 100% Stock Rally

https://www.bloomberg.com/news/articles/2026-06-23/tsmc-fueled-ai-frenzy-makes-taiwan-capital-of-...
2•mgh2•20m ago•0 comments

What Happened to the Fight for the Internet?

https://dustycloud.org/blog/what-happened-to-the-fight-for-the-internet/
1•HotGarbage•26m ago•0 comments

How to talk about "AI" without adding to the anthropomorphization

https://buttondown.com/maiht3k/archive/how-to-talk-about-ai-without-adding-to-the/
1•measurablefunc•29m ago•0 comments

Medicare starts covering GLP-1 drugs for weight loss

https://www.washingtonpost.com/health/2026/06/29/medicare-is-about-cover-glp-1-drugs-weight-loss-...
3•brandonb•31m ago•1 comments

Mojo Roadmap

https://mojolang.org/docs/roadmap/
1•Alien1Being•33m ago•0 comments

Stop Killing the Internet

https://www.stopkillingtheinternet.com/
1•HotGarbage•35m ago•0 comments

LLM-style scaling laws hold for sensor data

https://www.empirical.health/blog/llm-scaling-laws-hold-for-sensor-data/
1•brandonb•35m ago•0 comments

Show HN: Gilfoyle's Project but IRL

https://github.com/korrectional/GilfoyleAI
3•korrectional•37m ago•1 comments

Three HPC Gurus Ask: Do We Still Need GPUs?

https://www.nextplatform.com/compute/2026/06/30/three-hpc-gurus-ask-do-we-still-need-gpus/5264552
1•jonbaer•37m ago•0 comments

ArXiv's Next Chapter

https://blog.arxiv.org/2026/06/30/arxivs-next-chapter/
2•subset•39m ago•0 comments

The Twilight of the Chatbots

https://www.oneusefulthing.org/p/the-twilight-of-the-chatbots
1•swolpers•40m ago•0 comments

Vibe-coding video games with Claude (Day 75: Corner the Market)

https://gamevibe.us/75-corner-the-market
1•pzxc•43m ago•2 comments

"Introducing Claude Sonnet 5, our most agentic Sonnet yet."

https://twitter.com/claudeai/status/2072017450611142835
1•swolpers•1h ago•0 comments

An Blackhole Simulator in Browser

https://blackhole-timer.vercel.app/
2•mixfox•1h ago•0 comments

Trump made more than a billion dollars from crypto ventures in first year back

https://www.cnn.com/2026/06/30/politics/trump-cryptocurrency-millions-disclosures
5•prawn•1h ago•1 comments

Anthropic: US has lifted export controls on Fable and Mythos AI models [ ]

https://www.theguardian.com/technology/2026/jul/01/anthropic-fable-mythos-ai-models-us-export-con...
1•swolpers•1h ago•0 comments

Supersonic flight returning to US after half-century ban

https://www.forbes.com/sites/suzannerowankelleher/2026/06/30/faa-supersonic-flight-no-boom/
2•lobbly•1h ago•0 comments

How global scammers use US tech to fleece people

https://apnews.com/article/scams-fraud-technology-ai-impostor-scam-phishing-12f549d5203abd38857c4...
1•petethomas•1h ago•0 comments

Local video clipping infrastructure for creators and small teams

https://github.com/cgallic/video-review-os
1•snappedai•1h ago•0 comments

Microsoft hits back at Apple's MacBook Neo by touting Dell's new $699 laptop

https://www.pcmag.com/news/microsoft-hits-back-at-apples-macbook-neo-by-touting-dells-new-699-laptop
1•teleforce•1h ago•0 comments

The second runtime is the real test: a no-kernel VM from Python to Node

https://amitlimaye1.substack.com/p/1500-real-apps-on-one-box-and-where
2•amitlimaye•1h ago•0 comments

Proxying inference requests in 6ms with Pingora, Envoy, and Spanner

https://modal.com/blog/serverless-servers
1•birdculture•1h ago•0 comments

The Fourth Scaling Law

https://twitter.com/amazedsaint/status/2072139903651963062
1•amazedsaint•1h ago•0 comments

Fixing a kubelet Memory Leak in Kubernetes 1.36

https://heyoncall.com/blog/fixing-kubernetes-kubelet-memory-leak
3•compumike•1h ago•1 comments