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

Life is like riding a bicycle, to keep your balance you must keep moving

https://economictimes.indiatimes.com/news/new-updates/quote-of-the-day-by-einstein-life-is-like-r...
1•teleforce•1m ago•0 comments

Show HN: A self-assessment quiz to measure software development seniority level

https://mylevel.dev/
1•mr_mig•1m ago•0 comments

Implementing Basic Refinement Types for Caffeine

https://caffeine-lang.run/blog/refinement-types
1•bob-surfs•7m ago•0 comments

Humankind's 10 million year love affair with booze might end

https://www.economist.com/christmas-specials/2025/12/18/how-humankinds-10m-year-love-affair-with-...
3•andsoitis•9m ago•0 comments

AI coding is now everywhere but not everyone is convinced

https://www.technologyreview.com/2025/12/15/1128352/rise-of-ai-coding-developers-2026/
2•jnord•15m ago•0 comments

Native NVMe in Windows Server 2025: Ushering in a New Era of Storage Performance

https://techcommunity.microsoft.com/blog/windowsservernewsandbestpractices/announcing-native-nvme...
1•akyuu•16m ago•0 comments

Show HN: VenvAUTO – Make Python venv setup on macOS (zsh) a one-liner

https://github.com/jdcampolargo/venvAUTO
1•jdcampolargo•25m ago•0 comments

London 1600s (AI Reconstruction) [video]

https://www.youtube.com/watch?v=994nGl4m-VM
4•mkl95•27m ago•0 comments

Paraplegic engineer becomes the first wheelchair user to blast into space

https://www.abc.net.au/news/2025-12-21/first-paraplegic-engineer-in-space/106167430
2•defrost•31m ago•0 comments

Retailers are pushing store brands. Why wings and macarons are big money makers

https://www.barrons.com/articles/retailers-private-label-brands-price-walmart-target-costco-060df...
1•hhs•32m ago•0 comments

File System as Claude Code's Memory

https://backnotprop.com/blog/file-system-as-memory/
2•ramoz•33m ago•0 comments

Show HN: Wingspan Games: Arrow – a multiplayer game built in Elixir / Phoenix

https://wingspan.games/arrow
2•calflegal•34m ago•1 comments

The Pointe Shoe Makers of Hackney

https://spitalfieldslife.com/2018/01/25/the-pointe-shoe-makers-of-hackney-x/
1•thunderbong•36m ago•0 comments

Could public domain software be the key to world freedom?

2•kerravon86•38m ago•0 comments

Show HN: Circuit Simulating Amp Plugin

https://www.youtube.com/watch?v=GcdyOtO5Id0
1•jsd1982•39m ago•0 comments

FSF Criticize New Nintendo DRM

https://www.fsf.org/bulletin/2025/winter/new-nintendo-drm-bans-consoles-makes-users-beg-for-forgi...
5•MilnerRoute•39m ago•1 comments

ComfyTrade: Build Your AI Trading Agent – Open-Source Like ComfyUI

https://github.com/tomtomtong/comfyTrade
1•tomtomtongtong•40m ago•0 comments

Freedom University: The right-wing group rallying youth in South Korea

https://www.bbc.com/news/articles/c5y27ekr26xo
1•maxloh•41m ago•0 comments

Thorium Fuel Cycle

https://en.wikipedia.org/wiki/Thorium_fuel_cycle
1•rolph•43m ago•0 comments

Show HN: Run Claude Code CLI with Azure&open source LLMs saving costs

https://github.com/Fast-Editor/Lynkr
1•vishalveera•43m ago•0 comments

Anatomy of US inequality

https://www.nber.org/papers/w34558
4•hhs•46m ago•1 comments

Constructive (2010)

https://xkcd.com/810/
2•Wowfunhappy•51m ago•0 comments

Ant societies rose by trading individual protection for collective power

https://entomology.umd.edu/news-events/news/ant-societies-rose-trading-individual-protection-coll...
2•hhs•57m ago•0 comments

Ask HN: Why do QR codes need so much visual real estate?

1•rishikeshs•1h ago•3 comments

Everyone should be using Claude Code more

https://www.lennysnewsletter.com/p/everyone-should-be-using-claude-code
4•bilsbie•1h ago•0 comments

Apple didn't have to go this hard [video]

https://www.youtube.com/watch?v=x4_RsUxRjKU
1•igravious•1h ago•0 comments

Show HN: Research repo for a time-based macroeconomic valuation model

https://github.com/ArturGrandi/grand-time-architecture
1•AGsist•1h ago•0 comments

On British Roads, Chinese Cars Are Racing Ahead

https://www.nytimes.com/2025/12/17/business/britain-china-cars-byd.html
2•bookofjoe•1h ago•1 comments

Show HN: Discord bot that reminds you to commit daily

https://github.com/NKMAK/commit-reminder-discord-bot
1•nkmak•1h ago•0 comments

China Seen Overtaking U.S. as Global Superpower (2011)

https://www.pewresearch.org/global/2011/07/13/china-seen-overtaking-us-as-global-superpower/
3•lawrenceyan•1h ago•0 comments