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.

Nvidia backs AI data center startup Nscale as it hits $14.6B valuation

https://www.cnbc.com/2026/03/09/nscale-ai-data-center-nvidia-raise.html
1•voxadam•46s ago•0 comments

Building a system to track market narratives and behavioral signals

1•mindquantai•47s ago•0 comments

Tiny Terminal

https://meimakes.com/tiny-terminal/
1•the-mitr•3m ago•0 comments

Production query plans without production data

https://boringsql.com/posts/portable-stats/
1•todsacerdoti•5m ago•0 comments

Russia targets Signal and WhatsApp accounts in cyber campaign

https://english.aivd.nl/latest/news/2026/03/09/russia-targets-signal-and-whatsapp-accounts-in-cyb...
1•HelloUsername•5m ago•0 comments

Mahjong Mentor

https://mj-mentor.lovable.app/
1•dpzl•7m ago•1 comments

Fear Is Destroying Your Org

https://yanivpreiss.com/2026/03/08/fear-is-destroying-your-org/
2•PretzelFisch•8m ago•0 comments

Show HN: Yawn – Yet Another Worktree Navigator (CLI, Pipes into Fzf)

https://github.com/ComeBertrand/yawn
1•ComeBertrand•10m ago•0 comments

Show HN: Unpinched – open-source PinchTab and CDP bridge detector

https://github.com/Helixar-AI/Unpinched
1•Siri_D•11m ago•0 comments

API Traffic Analyzer for Kubernetes

https://kubeshark.com/
1•l1am0•14m ago•0 comments

Hermes Agent

https://github.com/NousResearch/hermes-agent
1•tosh•15m ago•0 comments

Show HN: commitgen-cc – Generate Conventional Commit message locally with Ollama

https://github.com/Eaglemann/commitgen-cc
1•eagleman•15m ago•1 comments

Ask HN: What is your oldest living presence on the World Wide Web?

2•dhruv3006•17m ago•0 comments

The Economy of Loneliness

https://app.dateseriously.com/the-economy-of-loneliness.html
1•skanderbm•18m ago•0 comments

Show HN: Think Better – Inject Decision Frameworks into Claude and Copilot

https://github.com/HoangTheQuyen/think-better
1•hoangthequyen01•22m ago•0 comments

35 days in. 28 training cycles across 3 base models

https://forgeintelligence.substack.com/p/forge-intelligence-edition-5
1•beakmull•22m ago•0 comments

Returning to Rails in 2026

https://www.markround.com/blog/2026/03/05/returning-to-rails-in-2026/
4•todsacerdoti•23m ago•2 comments

Russian hackers breach Signal and WhatsApp accounts officials, Netherlands warns

https://www.reuters.com/world/europe/russia-backed-hackers-breach-signal-whatsapp-accounts-offici...
2•repelsteeltje•23m ago•0 comments

Gyro-Claw – Secure execution runtime for AI agents

4•gyroscape•24m ago•0 comments

Building GREMLIN's Lair

https://peebs.org/building-gremlins-lair/
2•nemesisj•24m ago•0 comments

Every language should have a UUID type

https://nafees.bearblog.dev/every-language-should-have-a-uuid-type/
2•mnafees•29m ago•0 comments

Building a Stripe dashboard with an ESP32 desktop clock and Rust

https://duggan.ie/posts/building-a-stripe-dashboard-with-an-esp32-desktop-clock-and-rust
1•duggan•30m ago•1 comments

Show HN: VS Code Agent Kanban: Task Management for the AI-Assisted Developer

https://www.appsoftware.com/blog/introducing-vs-code-agent-kanban-task-management-for-the-ai-assi...
2•gbro3n•30m ago•0 comments

Show HN: SubstanceWiki – Open-source encyclopedia of psychoactive substances

https://substancewiki.org
2•toprak123•35m ago•0 comments

What if you never had to get an API key ever again?

https://stevekrouse.com/x402
2•Tiberium•36m ago•0 comments

A willingness to look stupid is the most underrated moat in doing creative work

https://sharif.io/looking-stupid
2•Samin100•37m ago•0 comments

Why use F# for scripting and automation?

https://iev.ee/blog/why-use-fsharp/
2•nsm•40m ago•2 comments

Custom Agents in Visual Studio

https://devblogs.microsoft.com/visualstudio/custom-agents-in-visual-studio-built-in-and-build-you...
1•ankitg12•41m ago•1 comments

Advice for Operating a Public-Facing API (2023)

https://jcs.org/2023/07/12/api
2•wrxd•42m ago•0 comments

Show HN: TemplUI v1.7.0 – UI components for Go and templ, now with import mode

https://github.com/templui/templui
1•axadrn•42m ago•0 comments