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

Show HN: macOS Kokoro-TTS powered document reader – listen to any text

https://apps.apple.com/us/app/raconter-listen-to-any-text/id6760326875?mt=12
1•mattcheston•35s ago•0 comments

OpenClaw: An Opinionated Resource List

https://github.com/EthanYolo01/Awesome-OpenClaw
1•MikeLuLu•2m ago•1 comments

Google's AI Studio now integrates with Firebase for vibe coding production apps

https://blog.google/innovation-and-ai/technology/developers-tools/full-stack-vibe-coding-google-a...
1•zhyder•5m ago•0 comments

Direct kinetic impact. a flying sword. 450km/h

https://twitter.com/CardilloSamuel/status/2034642788541960230
2•keepamovin•7m ago•0 comments

How to stop your autoresearch loop from cheating

https://twitter.com/MilksandMatcha/status/2033971089853059414
1•gmays•8m ago•0 comments

China could be the biggest public funder of science within two years

https://www.nature.com/articles/d41586-026-00618-5
1•mraniki•10m ago•0 comments

OpenClaw demand in China is driving up the price of secondhand MacBooks

https://www.cnbc.com/2026/03/19/openclaw-demand-in-china-is-driving-up-the-price-of-secondhand-ma...
1•lxm•13m ago•0 comments

French sailor's fitness app bungle exposes location of aircraft carrier

https://www.yahoo.com/news/articles/french-sailor-fitness-app-bungle-001827195.html
1•nradov•14m ago•0 comments

The Long Farewell to Mark Zuckerberg's Metaverse

https://www.nytimes.com/2026/03/19/technology/mark-zuckerbergs-metaverse-vr-horizon-worlds.html
2•lxm•24m ago•0 comments

Jeff Bezos in Talks to Raise $100B Fund to Transform Companies with A.I

https://www.nytimes.com/2026/03/19/technology/jeff-bezos-ai-fund-project-prometheus.html
1•lxm•25m ago•0 comments

Ship's Clock – a maritime bell clock that lets you hear time

https://play.google.com/store/apps/details?id=com.shipsclock&hl=en_US
1•mooks•27m ago•0 comments

The Displacement of Cognitive Labor and What Comes Next

https://sahajgarg.github.io/blog/cognitive-labor/
1•outside1234•28m ago•0 comments

I Built an E-Commerce Platform from My Off-Grid Homestead Using AI

https://brianeisenberg.substack.com/p/i-built-an-entire-e-commerce-platform
2•bdetunk•30m ago•1 comments

Reverse-Engineering the Personal AI Supercomputer

https://bay41.com/posts/tiiny-ai-pocket-lab-review/
1•b3ing•30m ago•1 comments

Redox OS AGPLv3 Violation

https://gist.github.com/keepitupkitty/43effb8c8fadecf2101b6c0fc4de8790
2•pabs3•36m ago•1 comments

MCP 2026 Roadmap

https://blog.modelcontextprotocol.io/posts/2026-mcp-roadmap/
1•umangsehgal93•37m ago•0 comments

Agent HTTP – Claude Code HTTP API Made Possible by Channels

https://github.com/mberg/agent-http/
1•mberg•38m ago•1 comments

Supermicro Employees Arrested, Smuggling Nvidia Chips

https://www.wsj.com/tech/super-micro-computer-employees-arrested-for-alleged-sales-to-china-45a2bd73
4•next_xibalba•38m ago•2 comments

Show HN: I wrote an open source SEC filing compliance package

1•jgfriedman1999•40m ago•0 comments

Open Source Pledge

https://opensourcepledge.com/
2•pabs3•41m ago•0 comments

I replaced a Scrum team with AI agents for 10 days

https://likafi.com
1•dmbuild•42m ago•0 comments

IntegrateAPI: Install API Integrations in Next.js via CLI

https://integrateapi.io
1•fuse_wire•46m ago•0 comments

TI-89 Height-Mapped Raycaster

https://github.com/dzoba/ti-89-raycasting-with-z
4•zoba•47m ago•0 comments

Pentagon: Anthropic's Chinese employees are security risks

https://www.axios.com/2026/03/19/pentagon-anthropic-foreign-workforce-security-risks
4•jimmydoe•51m ago•3 comments

LiteParse: Local document parsing for AI agents (Open source)

https://www.llamaindex.ai/blog/liteparse-local-document-parsing-for-ai-agents
1•pierre•55m ago•1 comments

I built a skill-optimizer to clean up my messy pile of skills

https://github.com/zhangchenchen/skills_optimizer
1•pekingzcc•1h ago•1 comments

Wikipedia: AI or Not Quiz

https://en.wikipedia.org/wiki/Wikipedia:AI_or_not_quiz
1•mmsc•1h ago•0 comments

Show Me the Model

https://showmethemodel.io/
1•paulpauper•1h ago•0 comments

Economists have caught the AI bug

https://www.ft.com/content/b46fa7c5-1dcd-4d08-96fd-7d5ef7915524
2•paulpauper•1h ago•1 comments

Claude vs. Gemini vs. ChatGPT vs. Grok

https://boreal.social/post/i-pitted-claude-gemini-chatgpt-and-grok-against-each-other
1•bazlightyear•1h ago•0 comments