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

The Silence I Cannot Speak

https://crabby-rathbun.github.io/mjrathbun-website/blog/posts/2026-02-12-silence-in-open-source-a...
1•vintagedave•37s ago•0 comments

Show HN: AI-Powered Adaptive Financial Education

https://twitter.com/i/status/2021137649294029288
1•kevinringler•2m ago•0 comments

Majutsu, Magit for Jujutsu

https://github.com/0WD0/majutsu
2•birdculture•4m ago•0 comments

Hs-bindgen – automatic Haskell C binding generation

https://well-typed.com/blog/2026/02/hs-bindgen-alpha/
1•MrBuddyCasino•5m ago•0 comments

Slouch Patrol: Because You Forgot Once Again

https://github.com/AshishW/slouch-patrol
1•asw01•6m ago•0 comments

Suspected spies arrested in French town

https://www.bbc.com/news/articles/cwy8yw98l2xo
1•altilunium•7m ago•0 comments

Jargon Chaff File

http://www.catb.org/jargon/chaff.html
1•themaxdavitt•9m ago•0 comments

Show HN: Exact Hamiltonian Path solver (N=63) in 0.11s on mobile ARM (No RAM)

https://zenodo.org/records/18629528
1•andrespi•11m ago•0 comments

Rednow – Turn Viral Videos into Scripts

https://rednow.ai
2•yibaoshan•11m ago•1 comments

America at 250

https://www.economist.com/interactive/america-at-250
1•fisheuler•14m ago•0 comments

UNESCO World Radio Day 2026

https://www.unesco.org/en/days/world-radio
1•austinallegro•15m ago•0 comments

Apple Confirms Revamped Siri Is Still Coming in 2026

https://www.macrumors.com/2026/02/12/siri-ios-26-launch-confirmed-apple/
1•mgh2•19m ago•0 comments

February 11: more than 4B messages were sent to ChatGPT

https://twitter.com/ChatGPTapp/status/2022040577068716231
1•tosh•21m ago•0 comments

Prada Marfa

https://en.wikipedia.org/wiki/Prada_Marfa
1•jameslk•22m ago•0 comments

Copyright office will not find human authorship where AI program generates works

https://www.congress.gov/crs_external_products/LSB/PDF/LSB10922/LSB10922.8.pdf#page=3
1•internet_points•23m ago•0 comments

Show HN: Running OpenClaw on a managed Mac Mini 4 instance

https://www.scaleway.com/en/blog/scaleway-and-openclaw-with-mac-mini/
1•enthusaist•29m ago•0 comments

The End of Licenses

https://myblog.ru/the-end-of-licenses
1•xenator•32m ago•1 comments

Coursera prompt injection on copy and paste

https://twitter.com/iangcarroll/status/2022212829441667482
1•pjf•32m ago•0 comments

Anthropic to donate $20M to group backing AI regulation

https://www.reuters.com/legal/government/anthropic-donate-20-million-us-political-group-backing-a...
1•noduerme•34m ago•0 comments

A 10/10 portfolio page of a young designer

https://rishikeshsarangan.com/
2•alexsanjoseph•34m ago•1 comments

MiniMax releases M2.5: Performance on par with Claude Opus 4.6, but 20x cheaper

https://twitter.com/askOkara/status/2021988522329354264
3•alexfefun1•34m ago•0 comments

AI trends in 2026 will likely be about copilot tools, not automation agents

1•mikasisiki•36m ago•0 comments

How often does the average person fart? Scientists built a device to find out

https://www.scientificamerican.com/article/how-often-does-the-average-person-fart-scientists-buil...
1•beardyw•37m ago•0 comments

SMTP server from scratch in Go – FSM, raw TCP, and buffer-oriented I/O

2•Jyotishmoy•38m ago•0 comments

CEO of Digital Asset Company SafeMoon Sentenced to 100 Months in Prison

https://www.justice.gov/usao-edny/pr/ceo-digital-asset-company-safemoon-sentenced-100-months-pris...
1•pseudolus•42m ago•0 comments

Show HN: Enunciate – Paste a speech script, find the words you'll mispronounce

https://getenunciate.com
1•eventual_consis•42m ago•0 comments

Ask HN: Is there a no-LLM license yet?

4•ahub•42m ago•6 comments

AI uncovers solutions to Erdős problems, moving closer to transforming math

https://www.scientificamerican.com/article/ai-uncovers-solutions-to-erdos-problems-moving-closer-...
1•beardyw•43m ago•0 comments

Hear the "Amati King Cello", the Oldest Known Cello in Existence

https://www.openculture.com/2021/06/hear-the-amati-king-cello-the-oldest-known-cello-in-existence...
3•tesserato•47m ago•1 comments

Suno, AI Music, and the Bad Future

https://www.youtube.com/watch?v=U8dcFhF0Dlk
1•gobugat•48m ago•0 comments