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.

Googe AI Pro plan upgraded to 5TB storage, up from 2TB

https://twitter.com/shimritby/status/2039461584771440782
1•Handy-Man•32s ago•1 comments

Supabase Docs over SSH

https://supabase.com/blog/supabase-docs-over-ssh
1•podoman•2m ago•0 comments

AI is making me question my value as a human

https://old.reddit.com/r/CodingJobs/comments/1s9a6b4/ai_is_making_me_question_my_value_as_a_human/
1•Gualdrapo•8m ago•0 comments

Machine translations of Georges Perec's La Disparition (no "e" constraint)

https://quinndupont.github.io/void/
1•quinndupont•8m ago•0 comments

"Special 301" Comments on Nintendo Game Piracy in Asia and Latin America (1994)

https://archive.gamehistory.org/item/8aa9a6fb-1593-47ce-bdf0-aa79abdcb0e6
2•Lammy•8m ago•0 comments

The 80% Nobody Celebrates

https://eversole.dev/blog/the-80-percent-nobody-celebrates/
1•gpi•10m ago•0 comments

The Subprime AI Crisis Is Here

https://www.wheresyoured.at/the-subprime-ai-crisis-is-here/
2•saucymew•10m ago•0 comments

What adaptations to high-sugar diets reveal about bird metabolism

https://phys.org/news/2026-02-birds-sweet-success-high-sugar.html
1•PaulHoule•11m ago•0 comments

Flags of the World

https://www.crwflags.com/fotw/flags/
1•breppp•13m ago•0 comments

Does Syntax Matter?

https://www.gingerbill.org/article/2026/02//does-syntax-matter/#heading-2-13
1•ogogmad•13m ago•0 comments

Slugging it Out in Open Source [video]

https://www.youtube.com/watch?v=1zti-n6DnT0
1•helmut_hed•15m ago•1 comments

Show HN: Calorie tracker for people who hate tracking

https://www.gotreat.app/
1•varnethic•15m ago•0 comments

TideSQL – An alternative storage engine for MariaDB

https://github.com/tidesdb/tidesql
1•alexpadula•17m ago•2 comments

7.8 Magnitude Earthquake in Indonesia

https://earthquaketrack.com/quakes/2026-04-01-22-48-15-utc-7-8-10
1•philip1209•18m ago•0 comments

Bank denies liability after $343K misdirected deposit

https://www.ctvnews.ca/winnipeg/article/bank-denies-liability-after-alleged-343k-deposited-into-w...
8•luu•26m ago•0 comments

FY24 Federal Program Inventory (?)

https://aprilharding.com/fpi-home/
2•rmason•28m ago•1 comments

A three year long unfruitful struggle to publish an official image on dockerhub

https://github.com/docker-library/official-images/pull/14107
3•henk53•31m ago•0 comments

The Great Convergence of Technology Companies

https://nicholascharriere.com/blog/the-great-convergence/#fn1
2•nichochar•36m ago•0 comments

Tracing goroutines in realtime with eBPF

https://sazak.io/articles/tracing-goroutines-in-realtime-with-ebpf-2026-03-31
3•sazak•36m ago•0 comments

Show HN: Cling 2.0 – fuzzy find any file in less than 50ms on macOS

https://github.com/FuzzyIdeas/Cling
1•alin23•37m ago•0 comments

Hershey says it will shift back to classic recipe for all Reese's products

https://apnews.com/article/hershey-reeses-chocolate-peanut-butter-cups-recipe-1c17247e190eb03952e...
8•1659447091•39m ago•0 comments

Artemis II lifts off: four astronauts begin 10-day lunar mission

https://www.theguardian.com/science/live/2026/apr/01/artemis-ii-launch-nasa-orion-moon-trip-live-...
157•Philpax•40m ago•49 comments

Scientists Figured Out How Eels Reproduce (2022)

https://www.intelligentliving.co/scientists-finally-figured-out-how-eels-reproduce/
2•thunderbong•44m ago•0 comments

Open macro placement benchmark and $20k challenge (HRT-sponsored)

https://github.com/partcleda/macro-place-challenge-2026
2•anonymousmoos•45m ago•0 comments

Open source CAD for Windows 2000 (SolveSpace)

https://github.com/solvespace/solvespace/issues/1036
1•ruevs•46m ago•1 comments

Show HN: place-clone – A nostalgic revisiting of r/place

https://github.com/ch4bes/place-clone
1•chabes•47m ago•1 comments

The End of Chatbots: AI Is Moving into the Workflow

https://twitter.com/theOpusLABS/status/2037612856372580531
1•opuslabs•47m ago•0 comments

Ask HN: What's your cool use case for ChatGPT Containers?

2•_doctor_love•48m ago•1 comments

A Memoir of Spreadsheets: From VisiCalc to Google Sheets

https://blog.venturemagazine.net/a-memoir-of-spreadsheets-from-visicalc-to-google-sheets-eada89bb...
1•kamphey•48m ago•0 comments

Droid TW 12.7

https://devdroid.tech/en/catalog/droid-tw
1•vrganj•49m ago•0 comments