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.

Designed an App. Looking for Feedback

https://rowpilot.co
1•zurnz•1m ago•1 comments

"Just" a hard drive [video]

https://www.youtube.com/watch?v=ZXs_9OXRnQo
1•slowcooked12_•3m ago•0 comments

Tecto: An Opaque, Encrypted Token Protocol as an Alternative to JWT

https://github.com/Zastinian/tecto
1•Zastinian•6m ago•1 comments

Find a classical song matching your trip duration

https://busundreu.com/
1•pax•6m ago•1 comments

Human waste backing up in basements is a sign of US infrastructure problems

https://apnews.com/article/sewage-overflows-potomac-epa-water-trump-baltimore-be71eea20324a911142...
1•petethomas•7m ago•0 comments

Gemini CLI as an agent harness for Google Workspace CLI (gws)

https://github.com/kstonekuan/gemini-workspacer
1•kstonekuan•7m ago•0 comments

The story of one of my worst programming failures

https://utcc.utoronto.ca/~cks/space/blog/programming/DevelopedTooSmallFailure
1•zdw•13m ago•0 comments

Engineering, Fast and Slow

https://undecidability.net/slow/
2•holden_nelson•14m ago•0 comments

Gemini Exporter – Save Chats Directly to Notion, Docs, Word, and PDF

https://chromewebstore.google.com/detail/gemini-exporter-save-gemi/lgipeakgdkcgnkdljeagconfbfeolidj
2•backrun•15m ago•1 comments

Manus AI credit optimizer – 47% savings from analyzing 200 tasks

https://github.com/rafsilva85/credit-optimizer-v5
2•creditopt_dev•16m ago•0 comments

Geomancy

https://en.wikipedia.org/wiki/Geomancy
1•marysminefnuf•16m ago•0 comments

Spain's Wind-Farm Bargain

https://www.theatlantic.com/science/2026/03/spain-wind-power/686311/
1•a_w•18m ago•0 comments

Telegram Finance Bot Powered by OpenClaw

https://github.com/bisbeebucky/ai-bot
1•bisbeebucky•18m ago•1 comments

Asus Executive Says MacBook Neo Is 'Shock' to PC Industry

https://www.macrumors.com/2026/03/10/asus-executive-says-macbook-neo-is-a-shock/
5•alwillis•22m ago•0 comments

The Elders (Organization)

https://en.wikipedia.org/wiki/The_Elders_(organization)
1•beatthatflight•22m ago•0 comments

Show HN: OpenClaw Plugin for Claude Code and Codex Orchestration

https://github.com/goldmar/openclaw-code-agent
1•goldmar•24m ago•0 comments

BunnyCDN silently breaks Mastodon request signing, preventing DDoS protection

https://social.mikutter.hachune.net/@mok/116208294430782702
1•mystraline•26m ago•0 comments

MetaLayer –Compare answers of multiple AI models and generate a consensus result

https://metalayerlabs.com
2•PaulmHope•28m ago•1 comments

Bondi, Miller, Rubio, Noem, Hegseth Have Relocated to Military Bases (NYT)

https://www.nytimes.com/2026/03/10/us/politics/bondi-military-housing-threats.html
3•tbreschi•34m ago•3 comments

Eric Schmidt: China Could Dominate the Physical AI Future

https://time.com/7382151/china-dominates-the-physical-ai-race/
2•Anon84•38m ago•1 comments

Ask HN: How do you prevent MCP agents from looping in production?

3•aethis•39m ago•0 comments

Iran's Control of Hormuz Means It's Exporting More Oil Today Than Before the War

https://www.wsj.com/world/middle-east/irans-control-of-hormuz-means-its-exporting-more-oil-today-...
1•JumpCrisscross•46m ago•0 comments

Rlclaw autonomous ML research companion

https://github.com/photon-cat/rlclaw
2•photoncat•47m ago•1 comments

The "Bloomberg Terminal" for Agents – Real-Time Intelligence API for AI Agents

https://thepolarisreport.com/agents
1•JohnWeston•48m ago•1 comments

Towards a Neural Debugger for Python

https://arxiv.org/abs/2603.09951
1•E-Reverance•56m ago•0 comments

Semantically search 45k+ AI skills

https://skillsgate.ai/
2•sultanvaliyev•59m ago•2 comments

Python library for translating between embedding model vector spaces

https://github.com/PotentiallyARobot/EmbeddingAdapters/
3•Taranovski•1h ago•1 comments

Robinhood Agent Integration

https://github.com/kevin1chun/rh-for-agents
3•kevin1chun•1h ago•0 comments

Show HN: FizzBuzz Forever – Agent Edition

https://github.com/dleemiller/fizzbuzz-forever
1•deepsquirrelnet•1h ago•0 comments

T9 in the Terminal for Codex, Claude, Gemini

https://github.com/Xsamsx/T9T
1•kyivctoner•1h ago•1 comments