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

Framework Computer to Announce Their Next-Gen Hardware Later This Month

https://www.phoronix.com/news/Framework-2026-Hardware
2•Brajeshwar•55s ago•0 comments

Chimpanzees in Uganda locked in vicious 'civil war', say researchers

https://www.bbc.com/news/articles/cr71lkzv49po
2•neversaydie•1m ago•0 comments

Charges filed after fire destroys Kimberly-Clark toilet paper warehouse

https://www.bbc.com/news/videos/c7vqmvg0e0zo
1•achierius•6m ago•0 comments

Watgo – A WebAssembly Toolkit for Go

https://eli.thegreenplace.net/2026/watgo-a-webassembly-toolkit-for-go/
4•ibobev•7m ago•0 comments

The Biological Basis of Imagination

https://nautil.us/the-biological-basis-of-imagination-1279716
1•rbanffy•8m ago•0 comments

A brief history of C/C++ programming languages

https://lemire.me/blog/2026/04/09/a-brief-history-of-c-c-programming-languages/
1•ibobev•8m ago•0 comments

The uncomfortable truth about vibe coding

https://developers.redhat.com/articles/2026/02/17/uncomfortable-truth-about-vibe-coding
2•macote•8m ago•0 comments

Fast CASPaxos

https://reubenbond.github.io/posts/fast-caspaxos/
1•tanelpoder•9m ago•0 comments

Claude for Word in Now in Beta

https://twitter.com/claudeai/status/2042670341915295865
1•armcat•9m ago•0 comments

US Government trying to unmask ICE critical redditor

https://arstechnica.com/tech-policy/2026/04/trump-admin-hounds-reddit-to-reveal-identity-of-user-...
4•golf_mike•11m ago•0 comments

Real Maps for Imaginary Places: the cartography of literature

https://lcm.loc.gov/issue/march-april-2026/real-maps-for-imaginary-places/
2•ohjeez•11m ago•0 comments

Claude is powerful but the memory issue makes it painful for real projects

https://nubira3.gumroad.com/l/claude-code-manual
2•ovexro•12m ago•0 comments

AIs can now do easy-to-verify SWE tasks, I've shortened timelines

https://www.lesswrong.com/posts/dKpC6wHFqDrGZwnah/ais-can-now-often-do-massive-easy-to-verify-swe...
1•gmays•12m ago•0 comments

Rational Social Animals and Addiction

http://edwardfeser.blogspot.com/2026/04/rational-social-animals-and-addiction.html
1•danielam•13m ago•0 comments

Mapping my reading log by author birthplace

https://wip.tf/posts/map-your-read-books-list-by-author-birthplace/
2•nbr23•13m ago•0 comments

We're Open-Sourcing Our Investor Updates [video]

https://www.youtube.com/watch?v=EWYoielyDuY
1•JoiDegn•15m ago•0 comments

Survival of the Wittiest

https://nautil.us/survival-of-the-wittiest-1279720
1•rbanffy•16m ago•0 comments

Microsoft starts removing Copilot buttons from Windows 11 apps

https://www.theverge.com/news/909640/microsoft-removing-copilot-windows-11-buttons
2•Brajeshwar•18m ago•0 comments

We May No Longer Need Kafka Compatibility

https://medium.com/@yingjunwu/we-may-no-longer-need-kafka-compatibility-f197ef91abaa
2•yingjunwu•20m ago•0 comments

Spnndr – Subscription tracking and spend management for solo founders

https://www.spnndr.com
2•dmnlaali•21m ago•2 comments

Cognitive Debt: How AI-Generated Code Introduces a More Dangerous Kind of Debt

https://substack.com/home/post/p-193808795
1•ixeption•22m ago•0 comments

Molotov Cocktail Is Hurled at Home of OpenAI CEO Sam Altman

https://www.nytimes.com/2026/04/10/us/open-ai-sam-altman-molotov-cocktail.html
30•enraged_camel•23m ago•12 comments

Ask HN: Hiring in the age of AI-assisted coding: what works?

4•nitramm•23m ago•1 comments

IU Bio Researcher Guilty of Smuggling Ecoli DNA from China Concealed in Clothing

https://www.justice.gov/usao-sdin/pr/iu-biology-researcher-pleads-guilty-smuggling-e-coli-dna-chi...
2•737min•23m ago•1 comments

Aadam Jacobs Collection at the Live Music Archive

https://archive.org/details/aadamjacobs
1•cdrnsf•23m ago•0 comments

Amazon Luna Shuts Down without refunds?

1•abtinf•25m ago•0 comments

Ray-tracing–guided myopic LASIK

https://lww.com/_layouts/1033/OAKS.Journals/Error/JavaScript.html
1•MrBuddyCasino•27m ago•0 comments

Carol's Causal Conundrum: a zine intro to causally ordered message delivery

https://decomposition.al/zines/
1•evakhoury•28m ago•0 comments

Show HN: Gravity Garden, an Interactive Simulator

https://tortured-metaphor.github.io/Gravity-Garden/
2•DavidCanHelp•29m ago•0 comments

Chinese Calligraphy Is a Frontier Task

https://twitter.com/leonardtang_/status/2042671198471901494
1•leonardtang•29m ago•0 comments