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.

OpenAI Response to Apple [pdf]

https://storage.courtlistener.com/recap/gov.uscourts.cand.474095/gov.uscourts.cand.474095.59.0.pdf
1•sanj•11s ago•0 comments

Why America Won't Copy Sweden's Cheap Highway Fix That Saves Lives [video]

https://www.youtube.com/watch?v=jyNEnYaBszk
1•oatmeal1•2m ago•0 comments

Quake 4: The Awakening has been released

https://github.com/jmarshall23/Quake_4_Alpha
1•klaussilveira•3m ago•0 comments

See inside your agents to fix them

https://lexifina.com/blog/see-inside-your-agents-to-fix-them
2•alansaber•6m ago•0 comments

What an Improv Stage Can Teach You About Leading Cross-Cultural Teams in Tokyo

https://www.tokyodev.com/articles/yes-and-what-an-improv-stage-can-teach-you-about-leading-cross-...
2•pwim•11m ago•0 comments

A path tracer through the translation stack

https://ark.marianposaceanu.com/quake-ii-rtx-m4-crossover
2•marianposaceanu•11m ago•0 comments

Google Shakes Up A.I. Leadership

https://www.nytimes.com/2026/08/05/technology/google-ai-leadership.html
1•karakoram•12m ago•1 comments

Objects That Explain America

https://www.nytimes.com/interactive/2026/08/04/opinion/museum-of-america.html
2•mooreds•13m ago•0 comments

Google Shifts AI Power Back to Brin as DeepMind's Hassabis Steps Aside

https://www.ft.com/content/1453e9c2-4922-482f-8720-0bafd7e07df7
2•karakoram•13m ago•1 comments

Arbitrage Exists Between Kalshi and Polymarket but You Can't Exploit It

https://www.zhinit.dev/blog/kalshi-polymarket-arbitrage
3•zhinit•14m ago•0 comments

What I'm Watching So You Don't Have To

https://roninsana.substack.com/p/what-im-watching-so-you-dont-have-a4b
2•petethomas•15m ago•0 comments

Diana Pfeil: Building Confidence in Probabilistic Systems [audio]

https://maintainable.fm/episodes/diana-pfeil-building-confidence-in-probabilistic-systems
1•mooreds•15m ago•0 comments

Draupnir

https://en.wikipedia.org/wiki/Draupnir
2•petethomas•17m ago•0 comments

Louisiana AG Liz Murrill Keeps Opposing Compensation for Wrongfully Convicted

https://www.propublica.org/article/louisiana-wrongful-conviction-compensation-liz-murrill-elvis-b...
2•baddash•17m ago•0 comments

ArenaAllocators don't play nicely with ArrayLists

https://www.openmymind.net/Arena-Allocators-and-ArrayLists/
1•ibobev•17m ago•0 comments

Show HN: Draw.How – Learn to Draw Anything

https://draw.how/
2•nadermx•18m ago•0 comments

Zig's Io.Threaded Is Neat

https://matklad.github.io/2026/08/06/neat-io-threaded.html
1•ibobev•19m ago•0 comments

Equal-Area and Quasi-Conformal Mappings

https://jcgt.org/published/0015/02/02/
1•ibobev•20m ago•0 comments

Invisible Problems

https://idiallo.com/blog/invisible-problems
2•foxfired•23m ago•0 comments

The Monkey Supply Chain

https://www.chinatalk.media/p/the-monkey-supply-chain
2•chirau•23m ago•0 comments

Automatically Retrofitting JIT Compilers

https://www.infoq.com/presentations/yk-meta-tracing-jit-compiler/
1•matt_d•24m ago•0 comments

Reasons I [Gary Marcus] wouldn't count Google out

https://garymarcus.substack.com/p/seven-reasons-i-wouldnt-count-google
2•mdp2021•24m ago•1 comments

Gnome Shell Design Dreams – Tobias Bernard and Jakub Steiner Guadec 2026 [video]

https://www.youtube.com/watch?v=GcFMpc9WMdY
1•pizzaiolo•24m ago•0 comments

Show HN: Claude Code that renders Hebrew/Arabic/Persian in the terminal

https://github.com/noambrand/kivun-terminal-wsl
2•Noambbb•26m ago•0 comments

Fediverse Sovereignty and Patentable Experiences

https://future-secured.com/40904
2•adrianwaj•27m ago•0 comments

Quake: Dawn of the Machine – Launch Trailer [video]

https://www.youtube.com/watch?v=2Uf4PcgE8gA
1•boredemployee•28m ago•0 comments

Hackers Stalked Me by Hijacking a Smartwatch for Kids

https://www.wired.com/story/hackers-stalked-me-by-hijacking-a-smartwatch-for-kids/
2•worik•31m ago•0 comments

Trump again tries to limit US birthright citizenship with new executive orders

https://www.bbc.com/news/articles/cj63966j95yo
4•samaysharma•32m ago•0 comments

US agency ends 39% household cap on local TV station owners

https://www.reuters.com/business/media-telecom/us-agency-votes-end-39-local-tv-station-ownership-...
6•voxadam•32m ago•0 comments

Show HN: Developer Inbox

2•ricky300300•32m ago•0 comments