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.

Dancing Baby Screensaver. 1996 (original music) [video]

https://www.youtube.com/watch?v=LlG9yYW6Bi8
1•Anon84•34s ago•0 comments

Zero-infra AI agent memory using Markdown and SQLite

https://github.com/sachinsharma9780/memweave
1•r2d2_•39s ago•0 comments

Microsoft Publisher will no longer be supported after October 2026

https://support.microsoft.com/en-us/office/microsoft-publisher-will-no-longer-be-supported-after-...
1•dsego•54s ago•0 comments

XLA

https://openxla.org/xla
1•tosh•2m ago•0 comments

Qwen-3.6-Plus is the first model to break 1T tokens processed in a day

https://twitter.com/openrouter/status/2040239467865489874
2•Alifatisk•2m ago•1 comments

Show HN: I made a cute, open-source Japanese learning app inspired by Monkeytype

https://github.com/lingdojo/kana-dojo/
2•thebababak•4m ago•0 comments

jax

https://github.com/jax-ml/jax
1•tosh•5m ago•0 comments

Policy on adding AI generated content to my software projects

https://joeyh.name/blog/entry/policy_on_adding_AI_generated_content_to_my_software_projects/
1•frizlab•6m ago•0 comments

32-bit Y2038 survival: live-seeded continuity and cold

https://zenodo.org/records/19423703
1•gal-2•7m ago•0 comments

Pika's FAQ says "we won't train on your likeness", their ToS say the opposite

https://pika-not-me.vercel.app/
1•not-chatgpt•10m ago•0 comments

Man-Computer Symbiosis

https://www.organism.earth/library/document/man-computer-symbiosis
1•handfuloflight•11m ago•0 comments

Agents.md – a schema standard for LLM-compiled knowledge bases

https://github.com/arturseo-geo/llm-knowledge-base
1•thegeolab•12m ago•0 comments

Pakistan's solar surge lifts it into rarefied 25% club

https://www.reuters.com/markets/commodities/pakistans-solar-surge-lifts-it-into-rarefied-25-club-...
1•neehao•12m ago•0 comments

Anti-distill tool, digitize your colleague before they digitize you

https://twitter.com/MilkRoadAI/status/2040656457524298020
2•dandaka•12m ago•0 comments

Digital abundance doesn't replace physical presence. It creates demand for it

https://www.wanderingwonderingstar.com/p/the-demand-for-bodies
1•jlzsignal•14m ago•0 comments

A genius built the backbone of video–then vanished – Part 2

https://roughcut.heyeddie.ai/p/a-genius-built-the-backbone-of-videothen
1•shamirallibhai•18m ago•0 comments

2003 Angola Boeing 727 disappearance

https://en.wikipedia.org/wiki/2003_Angola_Boeing_727_disappearance
1•chistev•20m ago•0 comments

UK intelligence censored report on global warming and homeland security

https://theoryofchange1.substack.com/p/from-global-warming-to-homeland-security
5•ewidar•21m ago•0 comments

Teens Sick of Their iPhones Are 'Mallmaxxing'

https://www.bloomberg.com/news/features/2026-03-29/how-tiktok-got-teens-to-fall-in-love-with-the-...
1•mindcrime•21m ago•0 comments

That Vanished (2010)

https://www.smithsonianmag.com/air-space-magazine/the-727-that-vanished-2371187/
1•downbad_•23m ago•1 comments

What do you guys currently use for recording demos?

1•SoldierSacha•23m ago•0 comments

OCR tool in C using SDL2 and LLMs (rectangle select –> text)

https://github.com/haschka/ocr_tool
1•haschka•23m ago•1 comments

AI Native book – 135 pages, samples, free

https://stagent.io/book/
1•navam_io•24m ago•0 comments

Doing: Git for Scatterbrains

https://github.com/ttscoff/doing
1•tolerance•31m ago•0 comments

We made significant improvements to the Kokoro TTS trainer

https://github.com/BovineOverlord/kvoicewalk-with-GPU-CUDA-and-GUI-queue-system
1•SainzA•31m ago•1 comments

LLM Router – MCP server that routes Claude Code tasks to cheaper models

https://github.com/ypollak2/llm-router
2•ypollak2•32m ago•0 comments

Sow HN: LLMeter – Track per-customer LLM costs across OpenAI, Anthropic,and more

https://www.llmeter.org/
2•johalmed•33m ago•0 comments

Bazel is not scary anymore

https://stanislav.blog/bazel-is-not-scary-anymore/
1•spanferov•35m ago•0 comments

Soulrealms.ai an AI roleplay platform with persistent memory across sessions

https://soulrealms.ai
2•lapalapa•37m ago•0 comments

Don't Yell at Your LLM

https://marvin.beckers.dev/blog/dont-yell-at-your-llm/
3•embik•39m ago•0 comments