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.

The Ferrari of Espresso Machines Is Fueling a Hot Resale Market

https://www.nytimes.com/2026/04/20/dining/la-marzocco-espresso-machine.html
2•mitchbob•4m ago•1 comments

Voice to Instrument

1•starkiron•5m ago•0 comments

Wormhall

http://iladelf.org/wormhall/index.html
1•madprops•5m ago•0 comments

Claude Desktop Works with OpenCode Go

https://gist.github.com/avarayr/a9a35354aa6d7d8430ce0c27cd9aff3f
1•mikamika83•6m ago•0 comments

Mathematician Collapses All Functions to One Weird Formula [video]

https://www.youtube.com/watch?v=hwtqJaS42xk
2•darepublic•14m ago•0 comments

The SF Group Chat

https://twitter.com/daniel_dhawan/status/2041913527045386447
1•nowflux•17m ago•0 comments

It's not just one thing – it's another thing

https://techcrunch.com/2026/04/20/ai-writing-its-not-just-this-its-that-barrons/
1•davikr•18m ago•0 comments

Show HN: I built an AI that assigns YOU tasks

https://www.pause.build/
1•chaidhat•37m ago•1 comments

Apple iPhone texting changes: they fixed everything and changed nothing

https://webmatrices.com/post/apple-iphone-texting-changes-they-fixed-everything-and-changed-nothing
1•bishwasbh•38m ago•0 comments

Show HN: pg_roast – A Postgres extension that harshly judges your database

https://github.com/samirketema/pg_roast
1•samirketema•40m ago•1 comments

Homeland Security is making "smart glasses" to collect intelligence on Americans

https://www.kenklippenstein.com/p/exclusive-ice-glasses
4•c420•44m ago•0 comments

Red Queen Hypothesis

https://en.wikipedia.org/wiki/Red_Queen_hypothesis
4•Hooke•44m ago•0 comments

FanDuel wants to carve a sports niche in the prediction market business

https://www.cnn.com/2026/04/19/tech/fanduel-prediction-markets-app
1•1659447091•46m ago•0 comments

"You're mad Lad figured it out " – OpenClaw creator [video]

https://www.youtube.com/watch?v=7rzYDM6vMtI
2•0xAntonioo•47m ago•0 comments

String Seed of Thought: Prompting for Distribution-Faithful, Diverse Generation

https://pub.sakana.ai/ssot/
1•hardmaru•48m ago•0 comments

Show HN: Palmier – bridge your AI agents and your phone

https://github.com/caihongxu/palmier
1•caihongxu•49m ago•0 comments

pnpm v11 is almost here

https://twitter.com/pnpmjs/status/2045901598006690244
1•bpierre•51m ago•0 comments

Futuristic analyser tool? – what is this – omg

https://rogmash.neocities.org/3drein
1•rogmash•53m ago•0 comments

KMDS, now with natural language ingestion and search

https://github.com/rajivsam/kmds
1•rsva•1h ago•1 comments

Amazon behind on jobs promised for funding to build Virginia headquarters

https://www.washingtonpost.com/dc-md-va/2026/04/20/amazon-h2q-virginia-headquarters/
2•reaperducer•1h ago•0 comments

Digital Ecosystems: Interactive Multi-Agent Neural Cellular Automata

https://pub.sakana.ai/digital-ecosystem/
2•hardmaru•1h ago•0 comments

A Pragmatic Approach to Thorny People Problems

https://witnesstodestruction.blogspot.com/p/a-pragmatic-approach-to-thorny-people.html
2•basilikum•1h ago•0 comments

San Francisco Solved Metro Vandalism with One Neat Trick

https://www.theatlantic.com/ideas/2026/04/fare-gate-society-bart/686868/
7•mmcclure•1h ago•2 comments

KV Cache Compression 900000x Beyond TurboQuant and Per-Vector Shannon Limit

https://arxiv.org/abs/2604.15356
42•EGreg•1h ago•20 comments

Technological Phylogenetics: Modeling Tech Evolution Like Git (Paper)

https://zenodo.org/records/19673425
1•xsytrance•1h ago•1 comments

What Does a VPN Protect You From

https://anonymous-proxies.net/posts/what-does-a-vpn-protect-you-from/
2•sabrinacarpen•1h ago•0 comments

Show HN: Real-time visualization of Claude Code agent orchestration

https://github.com/patoles/agent-flow
1•daco•1h ago•0 comments

Show HN: NeuG – High-performance Embedded graph DB, one line to serve

2•robeenly•1h ago•0 comments

Front End Is Edge Computing

https://edge.jmaleonard.com/01-frontend-is-edge-computing.html
1•jmaleonard•1h ago•0 comments

Show HN: Weekly Log, Old-school journaling social media

1•bobbies-treats•1h ago•0 comments